mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 00:14:44 +01:00
Merge branch 'aa-exec-fixups' into 'master'
aa-exec fixups See merge request apparmor/apparmor!129
This commit is contained in:
commit
d038eea1be
1 changed files with 5 additions and 2 deletions
|
@ -208,8 +208,11 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
if (rc) {
|
||||
if (errno == ENOENT || errno == EACCES) {
|
||||
error("%s '%s' does not exist\n",
|
||||
if (errno == ENOENT) {
|
||||
error("%s '%s' does not exist",
|
||||
opt_profile ? "profile" : "namespace", name);
|
||||
} else if (errno == EACCES) {
|
||||
error("insufficient permissions to change to the %s '%s'",
|
||||
opt_profile ? "profile" : "namespace", name);
|
||||
} else if (errno == EINVAL) {
|
||||
error("AppArmor interface not available");
|
||||
|
|
Loading…
Add table
Reference in a new issue