Skip to contentSkip to conversation

Cleaning up selinux_socket_getpeersec_dgram()

DISCUSSION Paul Moore 1 participant 1 message Nov 14, 2006 SELinux security module

lore
Share & tools
lore

Paul Moore

author
#0 lore raw

Now that IPsec labeling is using the sksec->peer_sid field too I'm working on a patch to clean up the selinux_socket_getpeersec_{stream,dgram}() functions and I was wondering if anyone had an objection to replacing selinux_socket_getpeer_dgram() with selinux_skb_xfrm_sid()?

The actual work done is slightly different but I don't think it's different enough to cause any problems. The main issue that I see is that selinux_socket_getpeer_dgram() checks to make sure that the packet is a UDP packet but I don't think that should cause any problems.

Signature · 7 lines
paul moore
linux security @ hp

--
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.