mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
locks: Don't allow mounts in user namespaces to enable mandatory locking
Since no one uses mandatory locking and files with mandatory locks can cause problems don't allow them in user namespaces. Signed-off-by: "Eric W. Biederman" <[email protected]> Signed-off-by: Jeff Layton <[email protected]>
This commit is contained in:
parent
9e8925b67a
commit
95ace75414
1 changed files with 1 additions and 1 deletions
|
|
@ -1589,7 +1589,7 @@ static inline bool may_mandlock(void)
|
|||
#ifndef CONFIG_MANDATORY_FILE_LOCKING
|
||||
return false;
|
||||
#endif
|
||||
return true;
|
||||
return capable(CAP_SYS_ADMIN);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue