mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
Merge parser: fix handling of norelatime mount rule flag
Specifying norelatime should set the corresponding MS_RELATIME flag clear bit. Instead, it ORed in MS_NORELATIME, which expands to 0. Properly set the clear bit by using MS_RELATIME. Fixes: c9e31b7f "Add mount rules" Signed-off-by: Ryan Lee <ryan.lee@canonical.com> MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1679 Approved-by: Georgia Garcia <georgia.garcia@canonical.com> Approved-by: John Johansen <john@jjmx.net> Merged-by: John Johansen <john@jjmx.net>
This commit is contained in:
commit
e6bedaac1d
@ -290,7 +290,7 @@ static struct mnt_keyword_table mnt_opts_table[] = {
|
||||
{"make-rshared", MS_RSHARED, 0},
|
||||
|
||||
{"relatime", MS_RELATIME, 0},
|
||||
{"norelatime", 0, MS_NORELATIME},
|
||||
{"norelatime", 0, MS_RELATIME},
|
||||
{"iversion", MS_IVERSION, 0},
|
||||
{"noiversion", 0, MS_IVERSION},
|
||||
{"strictatime", MS_STRICTATIME, 0},
|
||||
|
Loading…
x
Reference in New Issue
Block a user