diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-08-22 11:27:32 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@primarydata.com> | 2014-09-09 16:01:36 -0400 |
commit | e0b93eddfe17dcb7d644eb5d6ad02a86fc41a977 (patch) | |
tree | 97ceab83fdbfd3bf54fd8235a66da665fbcc83a7 /security/selinux | |
parent | 1c994a0909a556508c2cc26ab5d9e13c5ce33aa0 (diff) |
security: make security_file_set_fowner, f_setown and __f_setown void return
security_file_set_fowner always returns 0, so make it f_setown and
__f_setown void return functions and fix up the error handling in the
callers.
Cc: linux-security-module@vger.kernel.org
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'security/selinux')
-rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index b0e940497e23..ada0d0bf3463 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -3346,14 +3346,12 @@ static int selinux_file_fcntl(struct file *file, unsigned int cmd, | |||
3346 | return err; | 3346 | return err; |
3347 | } | 3347 | } |
3348 | 3348 | ||
3349 | static int selinux_file_set_fowner(struct file *file) | 3349 | static void selinux_file_set_fowner(struct file *file) |
3350 | { | 3350 | { |
3351 | struct file_security_struct *fsec; | 3351 | struct file_security_struct *fsec; |
3352 | 3352 | ||
3353 | fsec = file->f_security; | 3353 | fsec = file->f_security; |
3354 | fsec->fown_sid = current_sid(); | 3354 | fsec->fown_sid = current_sid(); |
3355 | |||
3356 | return 0; | ||
3357 | } | 3355 | } |
3358 | 3356 | ||
3359 | static int selinux_file_send_sigiotask(struct task_struct *tsk, | 3357 | static int selinux_file_send_sigiotask(struct task_struct *tsk, |