1
linux/security/selinux/include
Eric Paris 42c3e03ef6 [PATCH] SELinux: Add sockcreate node to procattr API
Below is a patch to add a new /proc/self/attr/sockcreate A process may write a
context into this interface and all subsequent sockets created will be labeled
with that context.  This is the same idea as the fscreate interface where a
process can specify the label of a file about to be created.  At this time one
envisioned user of this will be xinetd.  It will be able to better label
sockets for the actual services.  At this time all sockets take the label of
the creating process, so all xinitd sockets would just be labeled the same.

I tested this by creating a tcp sender and listener.  The sender was able to
write to this new proc file and then create sockets with the specified label.
I am able to be sure the new label was used since the avc denial messages
kicked out by the kernel included both the new security permission
setsockcreate and all the socket denials were for the new label, not the label
of the running process.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
Cc: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-26 09:58:26 -07:00
..
av_inherit.h [SELINUX]: add security class for appletalk sockets 2006-06-17 21:29:51 -07:00
av_perm_to_string.h [PATCH] SELinux: Add sockcreate node to procattr API 2006-06-26 09:58:26 -07:00
av_permissions.h [PATCH] SELinux: Add sockcreate node to procattr API 2006-06-26 09:58:26 -07:00
avc_ss.h
avc.h
class_to_string.h [PATCH] selinux: add hooks for key subsystem 2006-06-22 15:05:55 -07:00
common_perm_to_string.h
conditional.h
flask.h [PATCH] selinux: add hooks for key subsystem 2006-06-22 15:05:55 -07:00
initial_sid_to_string.h
netif.h
objsec.h [PATCH] SELinux: Add sockcreate node to procattr API 2006-06-26 09:58:26 -07:00
security.h [PATCH] selinux: Clear selinux_enabled flag upon runtime disable. 2006-05-03 10:08:11 -07:00
xfrm.h [SECMARK]: Add new packet controls to SELinux 2006-06-17 21:30:05 -07:00