summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-12-17 22:05:49 -0500
committerTavian Barnes <tavianator@tavianator.com>2018-12-17 22:05:49 -0500
commitc52635fce35aa7d2e4414a44bac9fe06dfb56885 (patch)
treecb84f43d5e888ce429f30f6df5d45d8357af9bdf /util.h
parentfb7a61add741b28ae6c91787373bdb544b2e751b (diff)
downloadbfs-c52635fce35aa7d2e4414a44bac9fe06dfb56885.tar.xz
Implement -acl test
Diffstat (limited to 'util.h')
-rw-r--r--util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/util.h b/util.h
index 7506924..836db37 100644
--- a/util.h
+++ b/util.h
@@ -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);