mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 05:17:59 +00:00
The mount regression test passes MS_MANDLOCK to the mount(2) syscall in the test program. When the kernel is configured without CONFIG_MANDATORY_FILE_LOCKING set, attempting to mount a filesystem with this option always fails with EPERM. To fix, convert the test program to use the MS_NODEV option instead. (cherry picked from commit 49ba6af2bf49be9eff89ce760cca60f33eb8e341) Bug: https://bugs.launchpad.net/apparmor/+bug/1765025 Signed-off-by: Steve Beattie <steve.beattie@canonical.com> Acked-by: John Johansen <john.johansen@canonical.com> PR: https://gitlab.com/apparmor/apparmor/merge_requests/109