SELinuxEnabled in rpm.Transaction ()
Mitko Haralanov <[email protected]> Fri, 2 Dec 2005 11:33:01 -0800
| Newsgroups | gmane.linux.redhat.rpm.python |
|---|---|
| Organization | PathScale Inc. |
| Message-ID | <[email protected]> |
Hi, I am new to the list and I have a question about the Python RPM bindings. Just so I don't post duplicates I search through the archives but did not find anything relevant. I am trying to duplicate the rpm --verify functionality with Python and I am almost done re-writing the rpmVerifyFile function from rpm in Python. However, I am having a major problem when comparing the modes of the individual files (RPMVERIFY_MODE) and while trying to debug it, I noticed that rpm checks the SELinux security contexts (which changes the file mode) before comparing the modes of the file and the one stored in the header. My question is: does the rpm.ts class have a way to check whether SELinux is enabled (in rpm they use rpmtsSELinuxEnabled (ts))? -- Mitko Haralanov [email protected] http://www.pathscale.com ========================================== "The lymbic system in my brain is so electrically active, it qualifies as a third brain. Normal humans have two brains, left and right. - Jeff Merkey