commit | 765927b2d508712d320c8934db963bbe14c3fcec | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Tue Jun 26 21:58:53 2012 +0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon Jul 23 00:01:29 2012 +0400 |
tree | 97acdb14fae285764def396c4ed01d4d5c93e76a | |
parent | bf349a447059656ebe63fb4fd1ccb27ac1da22ad [diff] [blame] |
switch dentry_open() to struct path, make it grab references itself Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 372ec65..e423f5f 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c
@@ -2157,8 +2157,7 @@ get_file(devnull); } else { devnull = dentry_open( - dget(selinux_null), - mntget(selinuxfs_mount), + &selinux_null, O_RDWR, cred); if (IS_ERR(devnull)) { devnull = NULL;