diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-12-17 22:05:49 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-12-17 22:05:49 -0500 |
commit | c52635fce35aa7d2e4414a44bac9fe06dfb56885 (patch) | |
tree | cb84f43d5e888ce429f30f6df5d45d8357af9bdf /util.h | |
parent | fb7a61add741b28ae6c91787373bdb544b2e751b (diff) | |
download | bfs-c52635fce35aa7d2e4414a44bac9fe06dfb56885.tar.xz |
Implement -acl test
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -34,6 +34,7 @@ #endif #define BFS_HAS_MNTENT BFS_HAS_INCLUDE(<mntent.h>, __GLIBC__) +#define BFS_HAS_SYS_ACL BFS_HAS_INCLUDE(<sys/acl.h>, true) #define BFS_HAS_SYS_CAPABILITY BFS_HAS_INCLUDE(<sys/capability.h>, __linux__) #define BFS_HAS_SYS_MKDEV BFS_HAS_INCLUDE(<sys/mkdev.h>, false) #define BFS_HAS_SYS_PARAM BFS_HAS_INCLUDE(<sys/param.h>, true) @@ -198,6 +199,11 @@ int bfs_minor(dev_t dev); struct BFTW; /** + * Check if a file has a non-trvial Access Control List. + */ +bool bfs_check_acl(const struct BFTW *ftwbuf); + +/** * Check if a file has a non-trvial capability set. */ bool bfs_check_capabilities(const struct BFTW *ftwbuf); |