Skip to content

Several MountRule fixes and improvements

Christian Boltz requested to merge cboltz/apparmor:cboltz-mount-fixes into master
  • Fix writing 'mount {options,fstype} in ...' rules

We need spaces around the 'in' keyword.

Also add some tests for this.

  • Make error check more readable

  • 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.

Merge request reports