Christian Boltz
8c026077d6
MountRule: make get_clean() more readable
...
... by getting rid of two mostly-identical, big return statements.
Also add tests for bare umound and remount rules to ensure full test
coverage.
2024-03-03 13:09:43 +01:00
Christian Boltz
9c27a7c435
Fix writing 'mount {options,fstype} in ...' rules
...
We need spaces around the 'in' keyword.
Also add some tests for this.
2024-03-03 12:49:57 +01:00
Christian Boltz
a7cd59819e
Add useful error message in test-mount.py
...
If /proc/filesystems contains a filesystem that is not listed in
MountRule valid_fs, print a useful error message that says what exactly
is going on, instead of only saying "False is not True".
2024-03-01 20:34:11 +01:00
Maxime Bélair
924b335dfc
Adding userspace support for mount rules in aa-genprof/aa-logprof
2024-02-29 17:59:50 +00:00