2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +00:00
Acked-By: Steve Beattie <sbeattie@suse.de>

Add mediation/keywords for locks.
This commit is contained in:
Steve Beattie
2007-07-27 20:38:43 +00:00
parent 95d6ab1b1b
commit 9df76dbcda
5 changed files with 24 additions and 13 deletions

View File

@@ -472,6 +472,11 @@ reeval:
mode |= AA_MAY_LINK;
break;
case COD_LOCK_CHAR:
PDEBUG("Parsing mode: found LOCK\n");
mode |= AA_MAY_LOCK;
break;
case COD_INHERIT_CHAR:
PDEBUG("Parsing mode: found INHERIT\n");
if (next != COD_EXEC_CHAR && tolower(next) != COD_EXEC_CHAR) {
@@ -734,6 +739,8 @@ void debug_cod_entries(struct cod_entry *list)
printf("%c", COD_APPEND_CHAR);
if (HAS_MAY_LINK(item->mode))
printf("%c", COD_LINK_CHAR);
if (HAS_MAY_LOCK(item->mode))
printf("%c", COD_LOCK_CHAR);
if (HAS_EXEC_INHERIT(item->mode))
printf("%c", COD_INHERIT_CHAR);
if (HAS_EXEC_UNCONSTRAINED(item->mode)) {