: labeled ipsec policy
cover : labeled ipsec policy
The labeled IPSec policy patchset consists
of 3 patches.
Patch1:
Adds the attribute, netapp_type and the interface corenet_type() which adds types to this attribute. Networking types then call this interface.
Also adds default ipsec policy type, ipsec_spd_t. Adds the interface ipsec_labeled() that allows
a domain to polmatch to ipsec_spd_t as well as sendto and recvfrom itself. So, ipsec_labeled(netapp_type) is called in corenework.if.in, to enable networking apps, such as ping to work with no policy being required of sysadm. (This is because the socket and the SA have same type, thus need to only have permissions to receive from "self".)
Patch2:
Adds interface to some networking modules to allow recvfrom permission. I only added this interface to networking types that appeared to be daemons or client/server model, where I could not readily determine who would need access permissions.
For example, interface(evolution_recv_labeledipsec_server_role',
gen_require(`
type $1_evolution_server_t;
')
allow $2 $1_evolution_server_t:association recvfrom;')
A sysadm would have to write policy using these interfaces to determine what "localdomain" may recvfrom "$1_evolution_server_t".
To minimize or avoid this, I thought it might be good to have a default. I would like to add to each module with an interface
like this, a rule like the following,
evolution_recv_labeledipsec_server_role(netapp_type) OR evolution_recv_labeledipsec_server_role(domain)
Thus allowing all domains or all networking domains to be able to recvfrom this particular server domain.
Let me know if this sounds ok, and I will make the changes.
Patch3:
Modifies ipsec.* files such that setkey and racoon run in their own domains.
Adds ability for sysadm role to run setkey and execute via ipsec_tools_run() in userdomain.te
I have tested setkey and racoon using basic config. Not sure if I have all the rules required as I have not tested all code paths for racoon and setkey.
Regards,
Joy Latten
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.