2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

Revert broken 64bit capabilities patch

This commit is contained in:
John Johansen
2009-08-20 15:26:12 +00:00
parent c80b2c9766
commit 747d7da402
5 changed files with 21 additions and 50 deletions

View File

@@ -806,9 +806,7 @@ static const char *capnames[] = {
"mknod",
"lease",
"audit_write",
"audit_control",
"setfcap",
"mac_override"
"audit_control"
};
const char *capability_to_name(unsigned int cap)
@@ -839,7 +837,7 @@ void debug_cod_list(struct codomain *cod)
printf("Capabilities:\t");
for (i = 0; i < (sizeof(capnames)/sizeof(char *)); i++) {
if (((1ull << i) & cod->capabilities) != 0) {
if (((1 << i) & cod->capabilities) != 0) {
printf ("%s ", capability_to_name(i));
}
}