mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
More helpful error message for "aa-notify -p" if a user is not member of
the group configured in notify.conf / use_group=... Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
33c62acc5c
commit
986093cf8d
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ if (-s $conf) {
|
|||
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\n$conf if you want to use aa-notify.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue