summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-07-10 20:25:29 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2018-07-12 17:04:15 +0300
commite3f20ae21079ecac282df65d83865c5771f4bca0 (patch)
tree4235920fcf7c25615ccd4fbfc79099e347dde4bc /security
parentae2bb293a3e8adbc54d08cede5afc22929030c03 (diff)
downloadlinux-e3f20ae21079ecac282df65d83865c5771f4bca0.tar.xz
security_file_open(): lose cred argument
Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security')
-rw-r--r--security/security.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/security.c b/security/security.c
index 68f46d849abe..235b35f58a65 100644
--- a/security/security.c
+++ b/security/security.c
@@ -970,11 +970,11 @@ int security_file_receive(struct file *file)
return call_int_hook(file_receive, 0, file);
}
-int security_file_open(struct file *file, const struct cred *cred)
+int security_file_open(struct file *file)
{
int ret;
- ret = call_int_hook(file_open, 0, file, cred);
+ ret = call_int_hook(file_open, 0, file, file->f_cred);
if (ret)
return ret;