mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 22:35:35 +00:00
Update the parser to support the 'in' keyword for value lists
Bug #959560 Part 1/3 of fix Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -84,6 +84,7 @@ static struct keyword_table keyword_table[] = {
|
||||
{"umount", TOK_UMOUNT},
|
||||
{"unmount", TOK_UMOUNT},
|
||||
{"pivot_root", TOK_PIVOTROOT},
|
||||
{"in", TOK_IN},
|
||||
/* terminate */
|
||||
{NULL, 0}
|
||||
};
|
||||
@@ -1025,12 +1026,13 @@ void print_value_list(struct value_list *list)
|
||||
}
|
||||
}
|
||||
|
||||
struct cond_entry *new_cond_entry(char *name, struct value_list *list)
|
||||
struct cond_entry *new_cond_entry(char *name, int eq, struct value_list *list)
|
||||
{
|
||||
struct cond_entry *ent = calloc(1, sizeof(struct cond_entry));
|
||||
if (ent) {
|
||||
ent->name = name;
|
||||
ent->vals = list;
|
||||
ent->eq = eq;
|
||||
}
|
||||
|
||||
return ent;
|
||||
|
Reference in New Issue
Block a user