- it only ever returns NULLs because there are no security contexts in
headers (and having them in headers make no sense as the context varies
based on whatever selinux policy happens to be active on the target
system)
return fclass;
}
-const char * rpmfiFContext(rpmfi fi)
-{
- const char * fcontext = NULL;
-
- if (fi != NULL && fi->i >= 0 && fi->i < fi->fc) {
- if (fi->fcontexts != NULL)
- fcontext = fi->fcontexts[fi->i];
- }
- return fcontext;
-}
-
uint32_t rpmfiFDepends(rpmfi fi, const uint32_t ** fddictp)
{
int fddictx = -1;
const char * rpmfiFClass(rpmfi fi);
/** \ingroup rpmfi
- * Return current file security context from file info set.
- * @param fi file info set
- * @return current file context, 0 on invalid
- */
-const char * rpmfiFContext(rpmfi fi);
-
-/** \ingroup rpmfi
* Return current file depends dictionary from file info set.
* @param fi file info set
* @retval *fddictp file depends dictionary array (or NULL)
char * fstates; /*!< File state(s) (from header) */
const rpm_color_t * fcolors;/*!< File color bits (header) */
-
- const char ** fcontexts; /*! FIle security contexts. */
-
const char ** fcaps; /*! File capabilities (header) */
const char ** cdict; /*!< File class dictionary (header) */