diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-10-29 11:49:38 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-10-29 11:49:38 +0200 |
commit | 97ab15cc9eadc1aab563b87a0c92d559cd9e9a41 (patch) | |
tree | f0bfcae2120475b36a4fe451b95ad3b083bac2a0 /lib/fsm.h | |
parent | a792c55ffae23f483121401fe4ca6724abc57bb5 (diff) | |
download | librpm-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. */ |