Re: SELinux

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

 



On Mon, Aug 30, 2010 at 1:18 AM, Patrick Dupre <pd520@xxxxxxxxxx> wrote:

>> Try:
>>
>> chcon -t texrel_shlib_t \
>>  /usr/local/lib/perl5/auto/Math/GSL/Errno/Errno.so
>>
> OK, it works for Errno.so, 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.

-- 
mike c
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux