#include <sys/types.h>#include <sys/stat.h>#include <sys/acl.h>Go to the source code of this file.
Macros | |
| #define | O_NETATALK_ACL (O_NOFOLLOW << 1) |
| #define | O_IGNORE (O_NOFOLLOW << 2) |
| #define | chmod_acl nfsv4_chmod |
| #define | chmod_acl posix_chmod |
| #define | fchmod_acl posix_fchmod |
Functions | |
| int | get_nfsv4_acl (const char *name, ace_t **retAces) |
| Get ACL. | |
| int | remove_nfsv4_acl_vfs (const char *name) |
| Removes all non-trivial ACLs from object. | |
| int | strip_trivial_aces (ace_t **saces, int sacecount) |
| Remove any trivial ACE "in-place". | |
| int | strip_nontrivial_aces (ace_t **saces, int sacecount) |
| Remove non-trivial ACEs "in-place". | |
| ace_t * | concat_aces (ace_t *aces1, int ace1count, ace_t *aces2, int ace2count) |
| int | nfsv4_chmod (char *name, mode_t mode) |
| Change mode of file preserving existing explicit ACEs. | |
| int | remove_posix_acl_vfs (const char *name) |
| Remove any ACL_USER, ACL_GROUP, ACL_MASK or ACL_TYPE_DEFAULT ACEs from an object. | |
| int | posix_chmod (const char *name, mode_t mode) |
| POSIX ACL chmod. | |
| int | posix_fchmod (int fd, mode_t mode) |
| POSIX ACL fchmod. | |
| #define chmod_acl posix_chmod |
| #define chmod_acl nfsv4_chmod |
| #define fchmod_acl posix_fchmod |
| #define O_IGNORE (O_NOFOLLOW << 2) |
| #define O_NETATALK_ACL (O_NOFOLLOW << 1) |
|
extern |
Concatenate ACEs
|
extern |
Get ACL.
|
extern |
Change mode of file preserving existing explicit ACEs.
nfsv4_chmod
|
extern |
POSIX ACL chmod.
This is a workaround for chmod() on filestystems supporting Posix 1003.1e draft 17 compliant ACLs. For objects with extended ACLs, e.g. objects with an ACL_MASK entry, chmod() manipulates ACL_MASK instead of ACL_GROUP_OBJ. As OS X isn't aware of this behavior calling FPSetFileDirParms may lead to unpredictable results. For more information see section 23.1.2 of Posix 1003.1e draft 17.
|
extern |
POSIX ACL fchmod.
|
extern |
Removes all non-trivial ACLs from object.
|
extern |
Remove any ACL_USER, ACL_GROUP, ACL_MASK or ACL_TYPE_DEFAULT ACEs from an object.
| name | filesystem object name |
|
extern |
Remove non-trivial ACEs "in-place".
|
extern |
Remove any trivial ACE "in-place".