switch dentry_open() to struct path, make it grab references itself
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
bf349a4470
commit
765927b2d5
15 changed files with 106 additions and 151 deletions
|
@ -2157,8 +2157,7 @@ static inline void flush_unauthorized_files(const struct cred *cred,
|
|||
get_file(devnull);
|
||||
} else {
|
||||
devnull = dentry_open(
|
||||
dget(selinux_null),
|
||||
mntget(selinuxfs_mount),
|
||||
&selinux_null,
|
||||
O_RDWR, cred);
|
||||
if (IS_ERR(devnull)) {
|
||||
devnull = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue