diff options
Diffstat (limited to 'internal')
-rw-r--r-- | internal/helper/perm/perm.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/internal/helper/perm/perm.go b/internal/helper/perm/perm.go index 4bb476949..2783f284c 100644 --- a/internal/helper/perm/perm.go +++ b/internal/helper/perm/perm.go @@ -22,4 +22,28 @@ const ( // PublicDir is the permission given for a directory that may be read or // written outside of gitaly. PublicDir fs.FileMode = 0o777 + + // PrivateFile is the permissions given for a file that must only be used + // by gitaly. + PrivateFile fs.FileMode = 0o600 + + // SharedFile is the permission given for a file that may be read outside + // of gitaly. + SharedFile fs.FileMode = 0o644 + + // PublicFile is the permission given for a file that may be read or + // written outside of gitaly. + PublicFile fs.FileMode = 0o666 + + // PrivateExecutable is the permissions given for an executable that must + // only be used by gitaly. + PrivateExecutable fs.FileMode = 0o700 + + // SharedExecutable is the permission given for an executable that may be + // executed outside of gitaly. + SharedExecutable fs.FileMode = 0o755 + + // PublicExecutable is the permission given for an executable that may be + // read or written outside of gitaly. + PublicExecutable fs.FileMode = 0o777 ) |