Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554834 - sec-policy/selinux-ipsec: Add support for net-misc/strongswan
Summary: sec-policy/selinux-ipsec: Add support for net-misc/strongswan
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Jason Zaman
URL:
Whiteboard: sec-policy r10
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-14 07:55 UTC by Matthias Dahl
Modified: 2016-02-13 08:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
file context additions (myipsec.fc,1.06 KB, text/plain)
2015-07-14 07:57 UTC, Matthias Dahl
Details
type enforcement additions (myipsec.te,2.49 KB, text/plain)
2015-07-14 07:57 UTC, Matthias Dahl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Dahl 2015-07-14 07:55:35 UTC
Like discussed with Jason, here the additions to the ipsec policy for supporting strongswan (tested w/ 5.3.2). Any feedback is very welcome... especially since this is my first policy work. :)

It has been tested on my newest server for weeks now and works without any problems. I have taken great care to assign permissions only where needed by also checking the source code for the actual reasons.

I have introduced an ipsec_supervisor_t domain which is basically for the 
"starter" daemon (a supervisor for charon) -- simply to avoid having to assign 
even more permissions to ipsec_t and to better segregate the domains from each 
other.

Since I have no SELinux desktop system available, I have exclusively tested this as a server setup, not as a client. Testing in that regard would be very welcome (even though I expect no problems). Also, I have not tested each and every strongswan plugin, so there might still be denials to be worked out if some of the more exotic plugins are used.

Thanks for any feedback...

Reproducible: Always
Comment 1 Matthias Dahl 2015-07-14 07:57:12 UTC
Created attachment 406754 [details]
file context additions
Comment 2 Matthias Dahl 2015-07-14 07:57:41 UTC
Created attachment 406756 [details]
type enforcement additions
Comment 3 Jason Zaman gentoo-dev 2015-10-11 10:47:30 UTC
I made a few small changes to this, mostly {create_netlink + write} ==> rw_netlink.
I sent it upstream, lets see what comments come back.

http://oss.tresys.com/pipermail/refpolicy/2015-October/007760.html
Comment 4 Jason Zaman gentoo-dev 2015-10-14 18:59:56 UTC
in master. thanks for the help! will be in the next policy release
Comment 5 Jason Zaman gentoo-dev 2015-11-22 10:43:55 UTC
r10 released in ~arch
Comment 6 Jason Zaman gentoo-dev 2016-02-13 08:19:59 UTC
stable now