]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/selinux/hooks.c
SELinux: open perm for sock files
[linux-2.6-omap-h63xx.git] / security / selinux / hooks.c
index 309648c573d8471e416229b434aed22e5004f18f..cd3307a26d1177194d1f40db76138527aeb3c1b9 100644 (file)
@@ -1838,6 +1838,8 @@ static inline u32 open_file_to_av(struct file *file)
                        av |= FIFO_FILE__OPEN;
                else if (S_ISDIR(mode))
                        av |= DIR__OPEN;
+               else if (S_ISSOCK(mode))
+                       av |= SOCK_FILE__OPEN;
                else
                        printk(KERN_ERR "SELinux: WARNING: inside %s with "
                                "unknown mode:%o\n", __func__, mode);