RFE: add --setfscontext popt alias to rpm
Bug #660406 reported by
devzero2000
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPM |
Fix Committed
|
Wishlist
|
devzero2000 |
Bug Description
rpm alias has the following popt alias
- setperms
- setugids
to reset the permissions on the files included in a rpm package. But i a selinux system rpm includes also the selinux file context, so seems right that there is a equivalent (for simmetry) popt alias as
- setfscontext
to restore the selinux file context files that context, without necessarily having to use an external utilty to rpm as fixfiles (with fixfiles -R rpmpackagename)
Changed in rpm: | |
status: | New → Fix Committed |
To post a comment you must log in.
(my offhand comment to the commit ... the commit is perfectly fine)
Ick ... but adding --setfscontext as an alias is exactly the right approach.
My "Ick" has more to do with the fact that SELinux has flat zippo to do
with "packaging", and the RPM CLI has all sorts of other issues rather
than adding --setfscontext smoke and mirrors alternative to invoking
/sbin/restorecon. OTOH, hurts nothing at all.
I have exactly the same "Ick" opinion wrto recent changes @rpm.org to split
package signing into a separate "rpmsign" executable, and then adding popt aliases
to pass ooptions from "rpmsign" to gpg; I'm just not sure what purpose is
being served.
Meanwhile its utterly trivial to add/delete popt aliases to extend RPM functionality.
My "ick" here is largely from experience with meeting expectations: there's only so
much info and functionality that can be hidden behind an option. Precise/specific
behavior needs a better programming paradigm than pipe fitting.