Re: SELinux

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


 On 08/30/2010 04:30 PM, mike cloaked wrote:
> On Mon, Aug 30, 2010 at 1:18 AM, Patrick Dupre <[email protected]> wrote:
>>> Try:
>>> chcon -t texrel_shlib_t \
>>>  /usr/local/lib/perl5/auto/Math/GSL/Errno/
>> OK, it works for, but I have to do it all the files of the
>> package !
> You can set context for all the files in a directory (such as
> /usr/local/lib/perl5/auto/Math/GSL ) by doing:
> semanage fcontext -a -t textrel_shlib_t
> '/usr/local/lib/perl5/auto/Math/GSL(/.*)?'
> then
> restorecon -vR /usr/local/lib/perl5/auto/Math/GSL
> This will then allow you to set that context in all the files if they
> change in the future by repeating the restorecon command.
> Also the files will have their contexts correctly reset after an
> autorelabel as well.
> I would strongly suggest that you read the selinux guide.

Another thing to do would be to google "customizing selinux policy" (or
similar words/phrase) and then create a local policy.

Someplace like is a good start.

Earth is a beta site. 葛斯克 愛德華 / 台北市八德路四段

Attachment: signature.asc
Description: OpenPGP digital signature

users mailing list
[email protected]
To unsubscribe or change subscription options:

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux