summaryrefslogtreecommitdiff
path: root/security/security.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-07-10 13:25:29 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2018-07-12 10:04:15 -0400
commite3f20ae21079ecac282df65d83865c5771f4bca0 (patch)
tree4235920fcf7c25615ccd4fbfc79099e347dde4bc /security/security.c
parentae2bb293a3e8adbc54d08cede5afc22929030c03 (diff)
downloadlwn-e3f20ae21079ecac282df65d83865c5771f4bca0.tar.gz
lwn-e3f20ae21079ecac282df65d83865c5771f4bca0.zip
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/security.c')
-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;