Re: change Selinux context in %post?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/06/2014 02:39 PM, Richard Shaw wrote:
> On Thu, Feb 6, 2014 at 2:49 AM, Miroslav Suchý <msuchy@xxxxxxxxxx> wrote:
> 
>> On 02/05/2014 08:24 PM, Richard Shaw wrote:
>> 
>>> Are there official guidelines on how to handle selinux contexts in 
>>> packaging? I can still only find the draft which seems way more
>>> complicated than necessary for my needs.
>>> 
>>> I'm working on a package that uses mongodb internally (runs it's own 
>>> instance). Selinux is complaining because it has mongodb creating the
>>> database (and logs) outside of the normal locations
You need to tell SELinux about the labels.

semanage fcontext -e /var/lib/mysql PATHTO/mysql
restorecon -R -v PATHTO/mysql

Is probably what you want.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlLzyGsACgkQrlYvE4MpobNYWQCeJZf17KvHSr6JfoKRSTx7oopb
RgoAn1OmUd7nLkr6alO1g5Ct58KQrwHz
=yJZG
-----END PGP SIGNATURE-----
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux