mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
Add a case to the interface error reporting for -EACCES return, which
likely means that the admin attempted to load a policy while confined by apparmor.
This commit is contained in:
@@ -95,8 +95,11 @@ static void print_error(int error)
|
||||
case -ENOENT:
|
||||
PERROR(_("Profile doesn't exist\n"));
|
||||
break;
|
||||
case -EACCES:
|
||||
PERROR(_("Permission denied; attempted to load a profile while confined?\n"));
|
||||
break;
|
||||
default:
|
||||
PERROR(_("Unknown error\n"));
|
||||
PERROR(_("Unknown error (%d): %s\n"), -error, strerror(-error));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user