summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-10-26 14:18:17 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-10-26 14:18:17 +0200
commitf4b5bd55db623f83d75d0d60432f48cf0a7d2ef5 (patch)
tree827f96163da744ad46f608a751cb65cc5076b557 /system.h
parent770a0f34c90b59460372da181895b3a2802113f1 (diff)
downloadlibrpm-tizen-f4b5bd55db623f83d75d0d60432f48cf0a7d2ef5.tar.gz
librpm-tizen-f4b5bd55db623f83d75d0d60432f48cf0a7d2ef5.tar.bz2
librpm-tizen-f4b5bd55db623f83d75d0d60432f48cf0a7d2ef5.zip
Beginnings of acl (POSIX.1e draft 17) verification support
- if built with --with-acl, check that files and directories don't have any extra acl's set - for now, any acl beyond the regular unix permission set is reported as file mode difference as the acl's cannot have been set by rpm itself - patch from Andreas Gruenbacher, modified to use libacl instead of raw xattrs for portability, BUT atm this uses non-portable acl_equiv_mode() Linux libacl extension, the posix draft doesn't seem to have much in the way of comparing entries :-/
Diffstat (limited to 'system.h')
-rw-r--r--system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/system.h b/system.h
index 5a3c64dbd..3818e12dd 100644
--- a/system.h
+++ b/system.h
@@ -231,6 +231,10 @@ void * _free(void * p)
#include <sys/capability.h>
#endif
+#if WITH_ACL
+#include <acl/libacl.h>
+#endif
+
/**
* Wrapper to free(3), permit NULL, return NULL.
* For documenting cases where const is used to protect long-lived