diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-07-10 13:25:29 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-07-12 10:04:15 -0400 |
commit | e3f20ae21079ecac282df65d83865c5771f4bca0 (patch) | |
tree | 4235920fcf7c25615ccd4fbfc79099e347dde4bc /security/security.c | |
parent | ae2bb293a3e8adbc54d08cede5afc22929030c03 (diff) |
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.c | 4 |
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) | |||
970 | return call_int_hook(file_receive, 0, file); | 970 | return call_int_hook(file_receive, 0, file); |
971 | } | 971 | } |
972 | 972 | ||
973 | int security_file_open(struct file *file, const struct cred *cred) | 973 | int security_file_open(struct file *file) |
974 | { | 974 | { |
975 | int ret; | 975 | int ret; |
976 | 976 | ||
977 | ret = call_int_hook(file_open, 0, file, cred); | 977 | ret = call_int_hook(file_open, 0, file, file->f_cred); |
978 | if (ret) | 978 | if (ret) |
979 | return ret; | 979 | return ret; |
980 | 980 | ||