#include <regex.h>
Go to the source code of this file.
Defines | |
#define | rpmsxUnlink(_sx, _msg) XrpmsxUnlink(_sx, _msg, __FILE__, __LINE__) |
#define | rpmsxLink(_sx, _msg) XrpmsxLink(_sx, _msg, __FILE__, __LINE__) |
Typedefs | |
typedef rpmsx_s * | rpmsx |
typedef rpmsxp_s * | rpmsxp |
typedef rpmsxs_s * | rpmsxs |
Functions | |
rpmsx | rpmsxUnlink (rpmsx sx, const char *msg) |
Unreference a security context patterns instance. | |
rpmsx | XrpmsxUnlink (rpmsx sx, const char *msg, const char *fn, unsigned ln) |
rpmsx | rpmsxLink (rpmsx sx, const char *msg) |
Reference a security context patterns instance. | |
rpmsx | XrpmsxLink (rpmsx sx, const char *msg, const char *fn, unsigned ln) |
rpmsx | rpmsxFree (rpmsx sx) |
Destroy a security context patterns. | |
int | rpmsxParse (rpmsx sx, const char *fn) |
Parse selinux file security context patterns. | |
rpmsx | rpmsxNew (const char *fn) |
Create and load security context patterns. | |
int | rpmsxCount (const rpmsx sx) |
Return security context patterns count. | |
int | rpmsxIx (const rpmsx sx) |
Return security context patterns index. | |
int | rpmsxSetIx (rpmsx sx, int ix) |
Set security context patterns index. | |
const char * | rpmsxPattern (const rpmsx sx) |
Return current pattern. | |
const char * | rpmsxType (const rpmsx sx) |
Return current type. | |
const char * | rpmsxContext (const rpmsx sx) |
Return current context. | |
regex_t * | rpmsxRE (const rpmsx sx) |
Return current regex. | |
mode_t | rpmsxFMode (const rpmsx sx) |
Return current file mode. | |
int | rpmsxFStem (const rpmsx sx) |
Return current file stem. | |
int | rpmsxNext (rpmsx sx) |
Return next security context patterns iterator index. | |
rpmsx | rpmsxInit (rpmsx sx, int reverse) |
Initialize security context patterns iterator. | |
const char * | rpmsxFContext (rpmsx sx, const char *fn, mode_t fmode) |
Find file security context from path and type. | |
Variables | |
int | _rpmsx_debug |
int | _rpmsx_nopromote |
Definition in file rpmsx.h.
|
Definition at line 116 of file rpmsx.h. Referenced by rpmsxNew(), rpmtsREContext(), and rpmtsSetREContext(). |
|
Definition at line 97 of file rpmsx.h. Referenced by rpmsxFree(). |
|
Definition at line 25 of file rpmsx.h. Referenced by fsmMapFContext(), fsmMkdirs(), genCpioListAndHeader(), rpmcliQuery(), rpmcliVerify(), rpmfiBuildREContexts(), rpmInstall(), rpmsxAdd(), rpmsxContext(), rpmsxCount(), rpmsxFContext(), rpmsxFind(), rpmsxFMode(), rpmsxFree(), rpmsxFStem(), rpmsxInit(), rpmsxIx(), rpmsxNew(), rpmsxNext(), rpmsxParse(), rpmsxPattern(), rpmsxpCheckNoDupes(), rpmsxRE(), rpmsxSetIx(), rpmsxSort(), rpmsxType(), rpmts_Run(), rpmtsREContext(), rpmtsSetREContext(), rpmVerifyFile(), XrpmsxLink(), and XrpmsxUnlink(). |
|
Definition at line 26 of file rpmsx.h. Referenced by rpmsxFree(), rpmsxNext(), rpmsxParse(), rpmsxpCheckNoDupes(), rpmsxpHasMetaChars(), and rpmsxSort(). |
|
Definition at line 27 of file rpmsx.h. Referenced by rpmsxAdd(), rpmsxFind(), and rpmsxFree(). |
|
Return current context.
Definition at line 558 of file rpmsx.c. References rpmsx. Referenced by rpmsxFContext(). |
|
Return security context patterns count.
Definition at line 519 of file rpmsx.c. References rpmsx. |
|
Find file security context from path and type.
Definition at line 638 of file rpmsx.c. References rpmsx, rpmsxContext(), rpmsxFind(), rpmsxFMode(), rpmsxFStem(), rpmsxInit(), rpmsxNext(), rpmsxPattern(), and rpmsxRE(). Referenced by fsmMapFContext(), fsmMkdirs(), genCpioListAndHeader(), rpmfiBuildREContexts(), and rpmVerifyFile(). |
|
Return current file mode.
Definition at line 576 of file rpmsx.c. References rpmsx. Referenced by rpmsxFContext(). |
|
Destroy a security context patterns.
Definition at line 217 of file rpmsx.c. References _free(), _rpmsx_debug, rpmsx, rpmsxp, rpmsxs, and rpmsxUnlink. Referenced by fsmMapFContext(), fsmMkdirs(), genCpioListAndHeader(), rpmcliQuery(), rpmcliVerify(), rpmfiBuildREContexts(), rpmInstall(), rpmsxNew(), rpmts_Run(), rpmtsFree(), rpmtsSetREContext(), and rpmVerifyFile(). |
|
Return current file stem.
Definition at line 585 of file rpmsx.c. References rpmsx. Referenced by rpmsxFContext(). |
|
Initialize security context patterns iterator.
Definition at line 626 of file rpmsx.c. References reverse, and rpmsx. Referenced by rpmsxFContext(). |
|
Return security context patterns index.
Definition at line 524 of file rpmsx.c. References rpmsx. |
|
Reference a security context patterns instance.
|
|
Create and load security context patterns.
Definition at line 498 of file rpmsx.c. References rpmsx, rpmsxFree(), rpmsxLink, rpmsxParse(), and xcalloc(). Referenced by genCpioListAndHeader(), rpmcliQuery(), rpmcliVerify(), rpmfiBuildREContexts(), rpmInstall(), and rpmts_Run(). |
|
Return next security context patterns iterator index.
Definition at line 594 of file rpmsx.c. References _rpmsx_debug, rpmsx, and rpmsxp. Referenced by rpmsxFContext(). |
|
Parse selinux file security context patterns.
Definition at line 310 of file rpmsx.c. References _, errno, inc_err, rpmsx, rpmsxAdd(), rpmsxp, rpmsxpCheckNoDupes(), rpmsxpHasMetaChars(), rpmsxSort(), S_IFSOCK, security_check_context, xcalloc(), and xmalloc(). Referenced by rpmsxNew(). |
|
Return current pattern.
Definition at line 540 of file rpmsx.c. References rpmsx. Referenced by rpmsxFContext(). |
|
Return current regex.
Definition at line 567 of file rpmsx.c. References rpmsx. Referenced by rpmsxFContext(). |
|
Set security context patterns index.
Definition at line 529 of file rpmsx.c. References rpmsx. |
|
Return current type.
Definition at line 549 of file rpmsx.c. References rpmsx. |
|
Unreference a security context patterns instance.
|
|
Definition at line 204 of file rpmsx.c. References _rpmsx_debug, and rpmsx. |
|
Definition at line 193 of file rpmsx.c. References _rpmsx_debug, and rpmsx. |
|
|
|
|