On 7/12/2013 11:41 AM, m.roth@xxxxxxxxx wrote:
Something I have not yet found while googling: we have a package (bloody CA idiots) that has a directory with *both* executables and libraries. I want to change only the .so's to textrel_shlib_t; I do not want to change the directory, or the executables. Pardon my ignorance of what I consider to be an obscure wildcard usage, but how do do this? I've tried semanage fcontext -a -t textrel_shlib_t "/usr/local/opt/smwa/webagent/bin/*.so" with and without parens around the asterisk, and around the last slash and the asterisk.... mark -- selinux mailing list selinux@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/selinux
Sent from the wrong email so resending I think you're missing the escape on the last . Try /usr/local/opt/smwa/webagent/bin/*\.so a similar looking rule from semanage fcontext -l is /opt/VBoxGuestAdditions.*/lib/VBox.*\.so -- selinux mailing list selinux@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/selinux