diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-23 13:57:30 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-23 13:57:30 +0900 |
| commit | 770b37ae166a18f495865e96ccafc6f9fb9f4e88 (patch) | |
| tree | 3793034074b9a85bc9be1a510494ded36be0bb9b /sandbox/vfs/mountinfo.go | |
| parent | c6381932684a45aff6c187d53e5568bf52444457 (diff) | |
sandbox/vfs: match MS_NOSYMFOLLOW flag
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'sandbox/vfs/mountinfo.go')
| -rw-r--r-- | sandbox/vfs/mountinfo.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sandbox/vfs/mountinfo.go b/sandbox/vfs/mountinfo.go index b2634128..c834b0e9 100644 --- a/sandbox/vfs/mountinfo.go +++ b/sandbox/vfs/mountinfo.go @@ -11,6 +11,10 @@ import ( "syscall" ) +const ( + MS_NOSYMFOLLOW = 0x100 +) + var ( ErrMountInfoFields = errors.New("unexpected field count") ErrMountInfoEmpty = errors.New("unexpected empty field") @@ -75,6 +79,8 @@ func (e *MountInfoEntry) Flags() (flags uintptr, unmatched []string) { flags |= syscall.MS_NODEV case "noexec": flags |= syscall.MS_NOEXEC + case "nosymfollow": + flags |= MS_NOSYMFOLLOW case "noatime": flags |= syscall.MS_NOATIME case "nodiratime": |
