-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nametransform: move permission constants to perms.go
Prep for #539
- Loading branch information
Showing
3 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package nametransform | ||
|
||
const ( | ||
// Permissions for gocryptfs.diriv files | ||
// | ||
// It makes sense to have the diriv files group-readable so the FS can | ||
// be mounted from several users from a network drive (see | ||
// https://github.com/rfjakob/gocryptfs/issues/387 ). | ||
// | ||
// Note that gocryptfs.conf is still created with 0400 permissions so the | ||
// owner must explicitly chmod it to permit access. | ||
dirivPerms = 0440 | ||
|
||
// Permissions for gocryptfs.longname.[sha256].name files | ||
namePerms = 0400 | ||
) |