2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 22:05:27 +00:00
Files
apparmor/utils
Christian Boltz e5d38807df Store variables in active_profiles (ProfileList)
... instead of filelist[file]['lvar'], and also write them from there.

Also fix detection of variable definitions inside a profile, which is
not allowed.

Note that ProfileList has a different write order than the old code -
first includes, then variable definitions. This makes more sense because
typical profiles first include tunables/global, and then define
additonal variables (that might use variables from tunables/global) or
extend variables defined in tunables/global.

This change also fixes some problems with the simple_test test profiles.
The "adding to non-existing variable" check currently doesn't exist,
which "fixes" lp:1331856.

OTOH this also means that such cases are not detected, therefore add
vars_bad_add_assignment_1.sd to the exception_not_raised list.

The check will be re-added in a later commit
in get_all_merged_variables().
2020-05-27 13:32:44 +02:00
..
2016-10-01 20:57:09 +02:00
2016-10-01 20:57:09 +02:00
2017-06-26 21:27:06 +02:00
2016-10-01 20:57:09 +02:00
2016-10-01 20:57:09 +02:00
2016-10-01 20:57:09 +02:00
2016-10-01 20:57:09 +02:00
2016-10-01 20:57:09 +02:00
2020-05-05 13:09:16 +02:00
2020-04-24 05:43:47 +00:00

Known Bugs: Will allow multiple letters in the () due to translation/unicode issues with regexing the key. User input will probably bug out in a different locale.