19 #if defined(_RPMSX_INTERNAL) 26 #if defined(__LCLINT__) 45 #define rpmsxUnlink(_sx) \ 46 ((rpmsx)rpmioUnlinkPoolItem((rpmioItem)(_sx), __FUNCTION__, __FILE__, __LINE__)) 56 #define rpmsxLink(_sx) \ 57 ((rpmsx)rpmioLinkPoolItem((rpmioItem)(_sx), __FUNCTION__, __FILE__, __LINE__)) 68 #define rpmsxFree(_sx) \ 69 ((rpmsx)rpmioFreePoolItem((rpmioItem)(_sx), __FUNCTION__, __FILE__, __LINE__)) int rpmsxEnabled(rpmsx sx)
Return SELinux enabled state.
int rpmsxExec(rpmsx sx, int verified, const char **argv)
Execute a package scriptlet within SELinux context.
const char * rpmsxMatch(rpmsx sx, const char *fn, mode_t mode)
Return security context for a file.
int rpmsxSetfilecon(rpmsx sx, const char *fn, mode_t mode, const char *scon)
Set security context for a file.
int rpmsxLsetfilecon(rpmsx sx, const char *fn, mode_t mode, const char *scon)
const char * rpmsxLgetfilecon(rpmsx sx, const char *fn)
rpmsx rpmsxNew(const char *fn, unsigned int flags)
Create and load a SELinux wrapper.
const char * rpmsxGetfilecon(rpmsx sx, const char *fn)
Get security context for a file.