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>
This commit is contained in:
@@ -775,9 +775,9 @@ int security_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||
return security_ops->file_fcntl(file, cmd, arg);
|
||||
}
|
||||
|
||||
int security_file_set_fowner(struct file *file)
|
||||
void security_file_set_fowner(struct file *file)
|
||||
{
|
||||
return security_ops->file_set_fowner(file);
|
||||
security_ops->file_set_fowner(file);
|
||||
}
|
||||
|
||||
int security_file_send_sigiotask(struct task_struct *tsk,
|
||||
|
Reference in New Issue
Block a user