mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-04 16:25:10 +00:00
utils: add support for multiple options in mount rules
The tools don't support having multiple options specified in mount rules as it is allowed in the parser. Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
This commit is contained in:
@@ -440,9 +440,8 @@ syntax_failure = (
|
||||
'file/priority/ok_quoted_4.sd', # quoted string including \"
|
||||
'file/priority/ok_embedded_spaces_4.sd', # \-escaped space
|
||||
|
||||
# mount rules with multiple 'options' or 'fstype' are not supported by the tools yet, and when writing them, only the last 'options'/'fstype' would survive.
|
||||
# mount rules with multiple 'fstype' are not supported by the tools yet, and when writing them, only the last 'fstype' would survive.
|
||||
# Therefore MountRule intentionally raises an exception when parsing such a rule.
|
||||
'mount/ok_opt_87.sd', # multiple options
|
||||
'mount/ok_opt_88.sd', # multiple fstype
|
||||
|
||||
# misc
|
||||
|
Reference in New Issue
Block a user