summaryrefslogtreecommitdiff
path: root/lib/fsm.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-10-29 11:49:38 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-10-29 11:49:38 +0200
commit97ab15cc9eadc1aab563b87a0c92d559cd9e9a41 (patch)
treef0bfcae2120475b36a4fe451b95ad3b083bac2a0 /lib/fsm.h
parenta792c55ffae23f483121401fe4ca6724abc57bb5 (diff)
downloadlibrpm-tizen-97ab15cc9eadc1aab563b87a0c92d559cd9e9a41.tar.gz
librpm-tizen-97ab15cc9eadc1aab563b87a0c92d559cd9e9a41.tar.bz2
librpm-tizen-97ab15cc9eadc1aab563b87a0c92d559cd9e9a41.zip
Add fsm and rpmfi machinery for file capabilities
- new rpmfiFCaps() API to retrieve the info from rpmfi set - fsm internals quite similar to selinux handling - plenty of #ifdef's, another possibility would be adding cap_foo dummies to system.h like for selinux
Diffstat (limited to 'lib/fsm.h')
-rw-r--r--lib/fsm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fsm.h b/lib/fsm.h
index 94fb8c3fd..89bc750a2 100644
--- a/lib/fsm.h
+++ b/lib/fsm.h
@@ -64,6 +64,7 @@ typedef enum fileStage_e {
FSM_STAT = _fs(49),
FSM_READLINK= _fs(50),
FSM_CHROOT = _fs(51),
+ FSM_SETCAP = _fs(52),
FSM_NEXT = _fd(65),
FSM_EAT = _fd(66),
@@ -154,6 +155,7 @@ struct fsm_s {
const char * baseName; /*!< File base name. */
const char * digest; /*!< Binary checksum (NULL disables). */
security_context_t fcontext;/*!< File security context (NULL disables). */
+ cap_t fcaps; /*!< File capabilities */
pgpHashAlgo digestalgo; /*!< File checksum algorithm */
unsigned fflags; /*!< File flags. */