mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
* i/b/mount-control: add optional `/` to umount rules
In commit a10ecaaaaf we added an optional
`/` at the end of the AppArmor mount rules, since AppArmor is rather
strict on them.
Indeed, the same applies to umount rules.
* tests: improve mount-control spread tests
Diversify the paths in the "where" attributes, otherwise a
value like "$SNAP_COMMON/**" would hide potential errors in the "where"
attributes of other mount entries -- as indeed has been the case until
now, when we realized of the `/` missing at the end of the umount rules
(see the previous commit).
* tests: improve mount-control tests with review comments
Add a "/" to a mount point to verify that it's irrelevant.