diff options
author | Len Brown <len.brown@intel.com> | 2012-04-06 21:48:59 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-04-06 21:48:59 -0400 |
commit | eeaab2d8af2cf1d36d7086f22e9de42d6dd2995c (patch) | |
tree | 369b9c91a6d808944f07d2290fec6f9fe2731904 /security/selinux/hooks.c | |
parent | ee01e663373343c63e0e3d364d09f6155378dbcc (diff) | |
parent | aaef292acf3a78d9c0bb6fb72226077d286b45d7 (diff) |
Merge branches 'idle-fix' and 'misc' into release
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 6a3683e28426..28482f9e15b8 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <linux/kernel.h> | 28 | #include <linux/kernel.h> |
29 | #include <linux/tracehook.h> | 29 | #include <linux/tracehook.h> |
30 | #include <linux/errno.h> | 30 | #include <linux/errno.h> |
31 | #include <linux/ext2_fs.h> | ||
32 | #include <linux/sched.h> | 31 | #include <linux/sched.h> |
33 | #include <linux/security.h> | 32 | #include <linux/security.h> |
34 | #include <linux/xattr.h> | 33 | #include <linux/xattr.h> |
@@ -81,6 +80,8 @@ | |||
81 | #include <linux/syslog.h> | 80 | #include <linux/syslog.h> |
82 | #include <linux/user_namespace.h> | 81 | #include <linux/user_namespace.h> |
83 | #include <linux/export.h> | 82 | #include <linux/export.h> |
83 | #include <linux/msg.h> | ||
84 | #include <linux/shm.h> | ||
84 | 85 | ||
85 | #include "avc.h" | 86 | #include "avc.h" |
86 | #include "objsec.h" | 87 | #include "objsec.h" |
@@ -2145,7 +2146,7 @@ static inline void flush_unauthorized_files(const struct cred *cred, | |||
2145 | fdt = files_fdtable(files); | 2146 | fdt = files_fdtable(files); |
2146 | if (i >= fdt->max_fds) | 2147 | if (i >= fdt->max_fds) |
2147 | break; | 2148 | break; |
2148 | set = fdt->open_fds->fds_bits[j]; | 2149 | set = fdt->open_fds[j]; |
2149 | if (!set) | 2150 | if (!set) |
2150 | continue; | 2151 | continue; |
2151 | spin_unlock(&files->file_lock); | 2152 | spin_unlock(&files->file_lock); |
@@ -2969,15 +2970,15 @@ static int selinux_file_ioctl(struct file *file, unsigned int cmd, | |||
2969 | /* fall through */ | 2970 | /* fall through */ |
2970 | case FIGETBSZ: | 2971 | case FIGETBSZ: |
2971 | /* fall through */ | 2972 | /* fall through */ |
2972 | case EXT2_IOC_GETFLAGS: | 2973 | case FS_IOC_GETFLAGS: |
2973 | /* fall through */ | 2974 | /* fall through */ |
2974 | case EXT2_IOC_GETVERSION: | 2975 | case FS_IOC_GETVERSION: |
2975 | error = file_has_perm(cred, file, FILE__GETATTR); | 2976 | error = file_has_perm(cred, file, FILE__GETATTR); |
2976 | break; | 2977 | break; |
2977 | 2978 | ||
2978 | case EXT2_IOC_SETFLAGS: | 2979 | case FS_IOC_SETFLAGS: |
2979 | /* fall through */ | 2980 | /* fall through */ |
2980 | case EXT2_IOC_SETVERSION: | 2981 | case FS_IOC_SETVERSION: |
2981 | error = file_has_perm(cred, file, FILE__SETATTR); | 2982 | error = file_has_perm(cred, file, FILE__SETATTR); |
2982 | break; | 2983 | break; |
2983 | 2984 | ||