Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running a program (called pluto) which is denied be selinux. I have tried several times to add the local policy for this but it still fails. Can anyone help?
Here is the syslog error:
Sep 14 11:53:22 firewall setroubleshoot: SELinux is preventing pluto (ipsec_t) "bind" to <Unknown> (ipsec_t). For complete SELinux messages. run sealert -l b7d18b53-fd62-4806-b16e-5a19c723c125
So I get the sealert info (extracting this line to file avc) as follows:
sealert -l b7d18b53-fd62-4806-b16e-5a19c723c125 | grep AVC > avc
The file contains
host=firewall.ocg.ca type=AVC msg=audit(1221407602.428:4482): avc: denied { bind } for pid=24677 comm="pluto" scontext=unconfined_u:system_r:ipsec_t:s0 tcontext=unconfined_u:system_r:ipsec_t:s0 tclass=netlink_xfrm_socket
then I:
audit2allow -M local < avc
semodule -i local.pp
and finally restart my program. But the same SELinux alert appears in the syslog. What am I doing wrong?
The SE Linux rule Sealert says is missing IIRC is "allow ipsec_t self:netlink_xfrm_socket bind;" (Reference Policy). It seems 'pluto' is running in "unconfined_u" and I wonder it should be that way?..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.