mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 14:52:34 +00:00
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:
parent
1c994a0909
commit
e0b93eddfe
12 changed files with 26 additions and 42 deletions
|
@ -1559,7 +1559,7 @@ struct security_operations {
|
|||
int (*file_lock) (struct file *file, unsigned int cmd);
|
||||
int (*file_fcntl) (struct file *file, unsigned int cmd,
|
||||
unsigned long arg);
|
||||
int (*file_set_fowner) (struct file *file);
|
||||
void (*file_set_fowner) (struct file *file);
|
||||
int (*file_send_sigiotask) (struct task_struct *tsk,
|
||||
struct fown_struct *fown, int sig);
|
||||
int (*file_receive) (struct file *file);
|
||||
|
@ -1834,7 +1834,7 @@ int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot,
|
|||
unsigned long prot);
|
||||
int security_file_lock(struct file *file, unsigned int cmd);
|
||||
int security_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg);
|
||||
int security_file_set_fowner(struct file *file);
|
||||
void security_file_set_fowner(struct file *file);
|
||||
int security_file_send_sigiotask(struct task_struct *tsk,
|
||||
struct fown_struct *fown, int sig);
|
||||
int security_file_receive(struct file *file);
|
||||
|
@ -2312,9 +2312,9 @@ static inline int security_file_fcntl(struct file *file, unsigned int cmd,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static inline int security_file_set_fowner(struct file *file)
|
||||
static inline void security_file_set_fowner(struct file *file)
|
||||
{
|
||||
return 0;
|
||||
return;
|
||||
}
|
||||
|
||||
static inline int security_file_send_sigiotask(struct task_struct *tsk,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue