mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Support nosymfollow mount option (kernel 5.10)
See MS_NOSYMFOLLOW in mount(2) https://man7.org/linux/man-pages/man2/mount.2.html Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
@@ -87,6 +87,7 @@ func initMaps() {
|
||||
"norelatime": {true, unix.MS_RELATIME},
|
||||
"nostrictatime": {true, unix.MS_STRICTATIME},
|
||||
"nosuid": {false, unix.MS_NOSUID},
|
||||
"nosymfollow": {false, unix.MS_NOSYMFOLLOW}, // since kernel 5.10
|
||||
"rbind": {false, unix.MS_BIND | unix.MS_REC},
|
||||
"relatime": {false, unix.MS_RELATIME},
|
||||
"remount": {false, unix.MS_REMOUNT},
|
||||
@@ -96,6 +97,7 @@ func initMaps() {
|
||||
"strictatime": {false, unix.MS_STRICTATIME},
|
||||
"suid": {true, unix.MS_NOSUID},
|
||||
"sync": {false, unix.MS_SYNCHRONOUS},
|
||||
"symfollow": {true, unix.MS_NOSYMFOLLOW}, // since kernel 5.10
|
||||
}
|
||||
extensionFlags = map[string]struct {
|
||||
clear bool
|
||||
|
||||
Reference in New Issue
Block a user