]> Pileus Git - ~andy/linux/commit
SELinux: Compute SID for the newly created socket
authorHarry Ciao <qingtao.cao@windriver.com>
Wed, 2 Mar 2011 05:32:34 +0000 (13:32 +0800)
committerEric Paris <eparis@redhat.com>
Thu, 3 Mar 2011 20:19:44 +0000 (15:19 -0500)
commit2ad18bdf3b8f84c85c7da7e4de365f7c5701fb3f
tree7b45743dee9e9de69714da3801aa3f987a3db365
parent6f5317e730505d5cbc851c435a2dfe3d5a21d343
SELinux: Compute SID for the newly created socket

The security context for the newly created socket shares the same
user, role and MLS attribute as its creator but may have a different
type, which could be specified by a type_transition rule in the relevant
policy package.

Signed-off-by: Harry Ciao <qingtao.cao@windriver.com>
[fix call to security_transition_sid to include qstr, Eric Paris]
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
security/selinux/hooks.c