summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-10-26 14:17:16 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-10-26 14:17:16 +0200
commit770a0f34c90b59460372da181895b3a2802113f1 (patch)
treeb08aafa1f4a7f60100e0d5c34d03634207720126 /system.h
parentca40fafedb504ff0195e347886e96a0268b3f5db (diff)
downloadrpm-770a0f34c90b59460372da181895b3a2802113f1.tar.gz
rpm-770a0f34c90b59460372da181895b3a2802113f1.tar.bz2
rpm-770a0f34c90b59460372da181895b3a2802113f1.zip
Beginnings of file capability (POSIX.1e draft 15) verification support
- add minimal bits and pieces to check for capabilities in files on verify - for now, any capability set is a verification failure as the capability cannot have been set by rpm itself - patch from Andreas Gruenbacher, modified to use libcap instead of raw xattrs for portability
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 e0e750f7f..5a3c64dbd 100644
--- a/system.h
+++ b/system.h
@@ -227,6 +227,10 @@ void * _free(void * p)
return NULL;
}
+#if WITH_CAP
+#include <sys/capability.h>
+#endif
+
/**
* Wrapper to free(3), permit NULL, return NULL.
* For documenting cases where const is used to protect long-lived