]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/selinux/include/objsec.h
[MLSXFRM]: Add security sid to sock
[linux-2.6-omap-h63xx.git] / security / selinux / include / objsec.h
index cf54a304169a0fc4ce2224e26d99221aff5821e3..79b9e0af19a0cfc6136439776b9e6a4a8d563a5d 100644 (file)
@@ -57,8 +57,9 @@ struct file_security_struct {
 struct superblock_security_struct {
        struct super_block *sb;         /* back pointer to sb object */
        struct list_head list;          /* list of superblock_security_struct */
-       u32 sid;              /* SID of file system */
+       u32 sid;                        /* SID of file system superblock */
        u32 def_sid;                    /* default SID for labeling */
+       u32 mntpoint_sid;               /* SECURITY_FS_USE_MNTPOINT context for files */
        unsigned int behavior;          /* labeling behavior */
        unsigned char initialized;      /* initialization flag */
        unsigned char proc;             /* proc fs */
@@ -98,6 +99,7 @@ struct netif_security_struct {
 
 struct sk_security_struct {
        struct sock *sk;                /* back pointer to sk object */
+       u32 sid;                        /* SID of this object */
        u32 peer_sid;                   /* SID of peer */
 };