]> git.armaanb.net Git - opendoas.git/commit
Improve error message on missing permission
authorkn <kn>
Fri, 9 Oct 2020 00:04:05 +0000 (00:04 +0000)
committerDuncan Overbruck <mail@duncano.de>
Thu, 5 Nov 2020 19:50:02 +0000 (20:50 +0100)
commit7441dfc4da8c9474ee767464dabe73ca90ff42ae
treeeda33700f01837c6eb3991ef59141f2d75bc6cdc
parent1ae55876daaf1d2d02e6261db7b6dd08c41b8fcb
Improve error message on missing permission

In case "cmd" (and "args") in doas.conf(5) mismatch, the log syslog(3)
message might be read as if the command was executed but failed, i.e.
returned non-zero.

Be unambiguous and help admins spot execution *attempts* as such:

-Oct  9 01:05:20 eru doas: failed command for kn: echo bar
+Oct  9 01:05:20 eru doas: command not permitted for kn: echo bar

OK tedu deraadt
doas.c