aboutsummaryrefslogtreecommitdiffhomepage
path: root/sandbox/mount.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-17 16:10:55 +0900
committerOphestra <cat@gensokyo.uk>2025-03-17 16:10:55 +0900
commit70c9757e26909a7ac6780dc6140af6a1b925e508 (patch)
tree63b7083bbe2186735cddfa81ddefd8da25e1ca66 /sandbox/mount.go
parentc83a7e2efc0ae87a6a3d300f18212e4f46c950a2 (diff)
sandbox/mount: rename device flag
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'sandbox/mount.go')
-rw-r--r--sandbox/mount.go4
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() {