diff options
Diffstat (limited to 'cmd/sharefs/fuse-helper.h')
| -rw-r--r-- | cmd/sharefs/fuse-helper.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/sharefs/fuse-helper.h b/cmd/sharefs/fuse-helper.h index 869df6bb..34f388b3 100644 --- a/cmd/sharefs/fuse-helper.h +++ b/cmd/sharefs/fuse-helper.h @@ -6,6 +6,11 @@ #error This package requires libfuse >= v3.4 #endif +#define SHAREFS_MEDIA_RW_ID (1 << 10) - 1 /* owning gid presented to userspace */ +#define SHAREFS_PERM_DIR 0700 /* permission bits for directories presented to userspace */ +#define SHAREFS_PERM_REG 0600 /* permission bits for regular files presented to userspace */ +#define SHAREFS_FORBIDDEN_FLAGS O_DIRECT /* these open flags are cleared unconditionally */ + /* sharefs_private is populated by sharefs_init and contains process-wide context */ struct sharefs_private { int dirfd; /* source dirfd opened during sharefs_init */ |
