unsupported mount options: 'nofail', 'nostrictatime', 'lazytime', and 'nolazytime'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
The following mount options are unsupported: 'nofail', 'nostrictatime', 'lazytime', and 'nolazytime'.
Other mount options have mappings from options to bitflags in `parser/mount.cc`, and the bitflags themselves are defined in `parser/mount.h`. Should the aforementioned mount options be included as well, or is there a reason why they are excluded? snapd currently assumes that they are supported, resulting in an error from the apparmor parser when a snap is connected with those options.
I'd be happy to file a PR to add these mappings if I knew what the new bitflags should be defined as, and if/how they should be used elsewhere.
For completeness:
1) This is a question/bug regarding the source code from the 'ubuntu/devel' branch (and presumably other branches), not a particular release.
2) Same as 1).
3) I expected the apparmor parser to recognize the 'nofail', 'nostrictatime', 'laztime', and 'nolazytime' mount options.
4) The apparmor parser threw an error with message "unsupported mount options" (from within `parser/mount.cc`).
summary: |
- 'nofail', 'nostrictatime', 'lazytime', and 'nolazytime' mount option - unsupported + unsupported mount options: 'nofail', 'nostrictatime', 'lazytime', and + 'nolazytime' |
Changed in apparmor (Ubuntu): | |
status: | New → Fix Committed |
This also affects "functionfs" that uses "uid=2000, gid=2000, no_disconnect= 1,rmode= 0550,fmode= 0660 ".