]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/selinux/include/objsec.h
selinux: Cache NetLabel secattrs in the socket's security struct
[linux-2.6-omap-h63xx.git] / security / selinux / include / objsec.h
index ad34787c6c02bd61be40a24ed6ba51e516fb41c3..f8be8d7fa26d7962f020e612254653d849f5b226 100644 (file)
@@ -109,9 +109,6 @@ struct netport_security_struct {
 };
 
 struct sk_security_struct {
-       u32 sid;                        /* SID of this object */
-       u32 peer_sid;                   /* SID of peer */
-       u16 sclass;                     /* sock security class */
 #ifdef CONFIG_NETLABEL
        enum {                          /* NetLabel state */
                NLBL_UNSET = 0,
@@ -120,7 +117,11 @@ struct sk_security_struct {
                NLBL_REQSKB,
                NLBL_CONNLABELED,
        } nlbl_state;
+       struct netlbl_lsm_secattr *nlbl_secattr; /* NetLabel sec attributes */
 #endif
+       u32 sid;                        /* SID of this object */
+       u32 peer_sid;                   /* SID of peer */
+       u16 sclass;                     /* sock security class */
 };
 
 struct key_security_struct {