diff options
author | Charles Duffy | 2017-05-30 16:01:06 -0500 |
---|---|---|
committer | rfjakob | 2017-06-01 00:26:17 +0200 |
commit | cf1ded5236157e2f9ec06eeea26023b67b40f16d (patch) | |
tree | 48c9926efd8c10a76b6f28943397f8b1ae5cc3da /internal/fusefrontend/args.go | |
parent | fc2a5f5ab0149d48b5d45a9af96799b07d802ae6 (diff) |
Implement force_owner option to display ownership as a specific user.
Diffstat (limited to 'internal/fusefrontend/args.go')
-rw-r--r-- | internal/fusefrontend/args.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/fusefrontend/args.go b/internal/fusefrontend/args.go index 5781db8..37f4463 100644 --- a/internal/fusefrontend/args.go +++ b/internal/fusefrontend/args.go @@ -1,6 +1,7 @@ package fusefrontend import ( + "github.com/hanwen/go-fuse/fuse" "github.com/rfjakob/gocryptfs/internal/cryptocore" ) @@ -16,6 +17,12 @@ type Args struct { // Should we chown a file after it has been created? // This only makes sense if (1) allow_other is set and (2) we run as root. PreserveOwner bool + // Should we force ownership to be presented with a given user and group? + // This only makes sense if allow_other is set. In *most* cases, it also + // only makes sense with PreserveOwner set, but can also make sense without + // PreserveOwner if the underlying filesystem acting as backing store + // enforces ownership itself. + ForceOwner *fuse.Owner // ConfigCustom is true when the user select a non-default config file // location. If it is false, reverse mode maps ".gocryptfs.reverse.conf" // to "gocryptfs.conf" in the plaintext dir. |