[apparmor] [patch] aa-notify -p / better error message for wrong group
Christian Boltz
apparmor at cboltz.de
Sat Oct 15 22:57:05 UTC 2011
Hello,
the error message in aa-notify -p if a user is not member of the group
defined in notify.conf isn't too helpful.
This patch adds a hint what needs to be changed to get aa-notify -p
working.
=== modified file 'utils/aa-notify'
--- utils/aa-notify 2011-10-12 11:08:25 +0000
+++ utils/aa-notify 2011-10-15 11:59:06 +0000
@@ -151,7 +151,7 @@
if (defined($prefs{use_group})) {
my ($name, $passwd, $gid, $members) = getgrnam($prefs{use_group});
if (not defined($members) or not defined($login) or (not grep { $_ eq $login } split(/ /, $members) and $login ne "root")) {
- _error("'$login' must be in '$prefs{use_group}' group. Aborting");
+ _error("'$login' must be in '$prefs{use_group}' group. Aborting\nAsk your admin to add you to this group or to change the group in /etc/apparmor/notify.conf if you want to use aa-notify.");
}
}
}
Regards,
Christian Boltz
--
>cat `rpm -qpil *.rpm` > packtete.txt
*KREISCH*
Erst 7. Januar und schon ist der "Useless use of cat"-Award 2004
vergeben. [> Markus Wunder und David Haller in suse-linux]
More information about the AppArmor
mailing list