summaryrefslogtreecommitdiff
path: root/src/shared/acl-util.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-18 18:22:27 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-22 01:14:53 -0500
commitdd4105b0a90c3c146a01e5a7734ee76c3a9aa1cd (patch)
tree8495e75a56e34df54a13fcca25a5a2e2ec0248c2 /src/shared/acl-util.h
parenta48a62a1af02aec4473c9deed98dd5b89d210f93 (diff)
shared/acl-util: add mask only when needed, always add base ACLs
For ACLs to be valid, a set of entries for user, group, and other must be always present. Always add those entries. While at it, only add the mask ACL if it is actually required, i.e. when at least on ACL for non-owner group or user exists.
Diffstat (limited to 'src/shared/acl-util.h')
-rw-r--r--src/shared/acl-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/acl-util.h b/src/shared/acl-util.h
index 1ad4a2ebc7..90e88ffa26 100644
--- a/src/shared/acl-util.h
+++ b/src/shared/acl-util.h
@@ -31,6 +31,7 @@
int acl_find_uid(acl_t acl, uid_t uid, acl_entry_t *entry);
int calc_acl_mask_if_needed(acl_t *acl_p);
+int add_base_acls_if_needed(acl_t *acl_p, const char *path);
int search_acl_groups(char*** dst, const char* path, bool* belong);
int parse_acl(char *text, acl_t *acl_access, acl_t *acl_default, bool want_mask);
int acls_for_file(const char *path, acl_type_t type, acl_t new, acl_t *acl);