2
0
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:
Steve Beattie
2009-03-13 03:44:26 +00:00
parent 24ddc6f081
commit 947a77bcde

View File

@@ -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;
}
}