aboutsummaryrefslogtreecommitdiffstats
path: root/security/smack
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-08-22 11:27:32 -0400
committerJeff Layton <jlayton@primarydata.com>2014-09-09 16:01:36 -0400
commite0b93eddfe17dcb7d644eb5d6ad02a86fc41a977 (patch)
tree97ceab83fdbfd3bf54fd8235a66da665fbcc83a7 /security/smack
parent1c994a0909a556508c2cc26ab5d9e13c5ce33aa0 (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/smack')
-rw-r--r--security/smack/smack_lsm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index e6ab307ce86e..69e5635d89e5 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -1390,12 +1390,11 @@ static int smack_mmap_file(struct file *file,
1390 * Returns 0 1390 * Returns 0
1391 * Further research may be required on this one. 1391 * Further research may be required on this one.
1392 */ 1392 */
1393static int smack_file_set_fowner(struct file *file) 1393static void smack_file_set_fowner(struct file *file)
1394{ 1394{
1395 struct smack_known *skp = smk_of_current(); 1395 struct smack_known *skp = smk_of_current();
1396 1396
1397 file->f_security = skp->smk_known; 1397 file->f_security = skp->smk_known;
1398 return 0;
1399} 1398}
1400 1399
1401/** 1400/**