diff options
author | Jakob Unterwurzacher | 2025-04-19 19:39:10 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2025-04-19 19:42:28 +0200 |
commit | 6918a4413decccd2f535e66d12b2e3dee10a74a8 (patch) | |
tree | c8ab50649f69ba60dffbb6262160adc9ca024a88 /mount.go | |
parent | b6ada0247a6967cf7dac0a94af31cd1cdc89dd41 (diff) |
Set the SELinux context. See mount(8) for details.
Diffstat (limited to 'mount.go')
-rw-r--r-- | mount.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 != "" { |