summaryrefslogtreecommitdiffstats
path: root/security/device_cgroup.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-05-14 11:44:10 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2010-05-21 18:31:20 -0400
commita7cf4145bb86aaf85d4d4d29a69b50b688e2e49d (patch)
tree485e378b9fd42ff88663fbb149387173856fa67d /security/device_cgroup.c
parentb7bb0a12913a582dbb0954bf463b1152b540c1a6 (diff)
downloadop-kernel-dev-a7cf4145bb86aaf85d4d4d29a69b50b688e2e49d.zip
op-kernel-dev-a7cf4145bb86aaf85d4d4d29a69b50b688e2e49d.tar.gz
anon_inode: set S_IFREG on the anon_inode
anon_inode_mkinode() sets inode->i_mode = S_IRUSR | S_IWUSR; This means that (inode->i_mode & S_IFMT) == 0. This trips up some SELinux code that needs to determine if a given inode is a regular file, a directory, etc. The easiest solution is to just make sure that the anon_inode also sets S_IFREG. Signed-off-by: Eric Paris <eparis@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/device_cgroup.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud