semanage syntax
Daniel J Walsh
dwalsh at redhat.com
Mon Jul 15 19:03:20 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/12/2013 11:41 AM, m.roth at 5-cent.us 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"
You need to use regular expressions.
# semanage fcontext -a -t textrel_shlib_t
"/usr/local/opt/smwa/webagent/bin/.*\.so"
# restorecon -R -v /usr/local/opt/smwa
Should work.
> with and without parens around the asterisk, and around the last slash and
> the asterisk....
>
> mark
>
>
> -- selinux mailing list selinux at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/selinux
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlHkR3gACgkQrlYvE4MpobNp5QCgl3QhGThnijSAuuCSPN0AU/kB
5tgAoMRuIx6RZEHt41ium0y7cVCkY1E+
=lSgz
-----END PGP SIGNATURE-----
More information about the selinux
mailing list