aboutsummaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2025-04-19 19:39:10 +0200
committerJakob Unterwurzacher2025-04-19 19:42:28 +0200
commit6918a4413decccd2f535e66d12b2e3dee10a74a8 (patch)
treec8ab50649f69ba60dffbb6262160adc9ca024a88 /mount.go
parentb6ada0247a6967cf7dac0a94af31cd1cdc89dd41 (diff)
cli: mount: add -context optionHEADmaster
Set the SELinux context. See mount(8) for details.
Diffstat (limited to 'mount.go')
-rw-r--r--mount.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/mount.go b/mount.go
index 0eaa3dd..fe82c0c 100644
--- a/mount.go
+++ b/mount.go
@@ -469,6 +469,9 @@ func initGoFuse(rootNode fs.InodeEmbedder, args *argContainer) *fuse.Server {
} else if args.exec {
opts["exec"] = ""
}
+ if args.context != "" {
+ opts["context"] = args.context
+ }
// Add additional mount options (if any) after the stock ones, so the user has
// a chance to override them.
if args.ko != "" {