diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-17 16:10:55 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-17 16:10:55 +0900 |
| commit | 70c9757e26909a7ac6780dc6140af6a1b925e508 (patch) | |
| tree | 63b7083bbe2186735cddfa81ddefd8da25e1ca66 /sandbox/mount.go | |
| parent | c83a7e2efc0ae87a6a3d300f18212e4f46c950a2 (diff) | |
sandbox/mount: rename device flag
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'sandbox/mount.go')
| -rw-r--r-- | sandbox/mount.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sandbox/mount.go b/sandbox/mount.go index e47e7f5d..e2cc2907 100644 --- a/sandbox/mount.go +++ b/sandbox/mount.go @@ -13,7 +13,7 @@ const ( BindSource BindRecursive BindWritable - BindDevices + BindDevice ) func bindMount(src, dest string, flags int) error { @@ -66,7 +66,7 @@ func bindMount(src, dest string, flags int) error { if flags&BindWritable == 0 { mf |= syscall.MS_RDONLY } - if flags&BindDevices == 0 { + if flags&BindDevice == 0 { mf |= syscall.MS_NODEV } if msg.IsVerbose() { |
