From 6918a4413decccd2f535e66d12b2e3dee10a74a8 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 19 Apr 2025 19:39:10 +0200 Subject: cli: mount: add -context option Set the SELinux context. See mount(8) for details. --- mount.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mount.go') 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 != "" { -- cgit v1.2.3