- python: add rpm.ps() object to carry problem set info.
- python: permit rpm.ds() analogue to hdr.dsFromHeader() creator.
- python: permit rpm.fi() analogue to hdr.fiFromHeader() creator.
+ - silently add default %defattr(-,root,root) for all packages.
4.3.1 -> 4.3.2:
- use /etc/selinux/targeted/contexts/files/file_contexts for now.
/**
*/
typedef struct AttrRec_s {
+/*@null@*/
const char *ar_fmodestr;
+/*@null@*/
const char *ar_dmodestr;
+/*@null@*/
const char *ar_user;
+/*@null@*/
const char *ar_group;
mode_t ar_fmode;
mode_t ar_dmode;
} * AttrRec;
+/*@-readonlytrans@*/
+/*@unchecked@*/ /*@observer@*/
+static struct AttrRec_s root_ar = { NULL, NULL, "root", "root", 0, 0 };
+/*@=readonlytrans@*/
+
/* list of files */
/*@unchecked@*/ /*@only@*/ /*@null@*/
static StringBuf check_fileList = NULL;
nullAttrRec(&fl.cur_ar);
nullAttrRec(&fl.def_ar);
+ dupAttrRec(&root_ar, &fl.def_ar); /* XXX assume %defattr(-,root,root) */
fl.defVerifyFlags = RPMVERIFY_ALL;
fl.nLangs = 0;
}
-int rpmdsFind(rpmds ds, rpmds ods)
+int rpmdsFind(rpmds ds, const rpmds ods)
{
int comparison;
* @return dependency index (or -1 if not found)
*/
/*@null@*/
-int rpmdsFind(rpmds ds, /*@null@*/ rpmds ods)
- /*@modifies ds, ods @*/;
+int rpmdsFind(rpmds ds, /*@null@*/ const rpmds ods)
+ /*@modifies ds @*/;
/**
* Merge a dependency set maintaining (N,EVR,Flags) sorted order.