security_file_open(): lose cred argument

Acked-by: Linus Torvalds <[email protected]>
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2018-07-10 13:25:29 -04:00
commit e3f20ae210
3 changed files with 5 additions and 6 deletions

View file

@ -776,7 +776,7 @@ static int do_dentry_open(struct file *f,
goto cleanup_all;
}
error = security_file_open(f, f->f_cred);
error = security_file_open(f);
if (error)
goto cleanup_all;