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

Update capabilities to support 64 bit caps

This commit is contained in:
John Johansen
2009-07-24 23:37:03 +00:00
parent b8cde97ab7
commit c8fa7815a6
5 changed files with 50 additions and 21 deletions

View File

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