fs: Provide function telling whether file_remove_privs() will do anything
Provide function telling whether file_remove_privs() will do anything. Currently we only have should_remove_suid() and that does something slightly different. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
5fa8e0a1c6
commit
dbfae0cdcd
2 changed files with 33 additions and 12 deletions
|
|
@ -2554,6 +2554,7 @@ extern struct inode *new_inode(struct super_block *sb);
|
|||
extern void free_inode_nonrcu(struct inode *inode);
|
||||
extern int should_remove_suid(struct dentry *);
|
||||
extern int file_remove_privs(struct file *);
|
||||
extern int file_needs_remove_privs(struct file *file);
|
||||
|
||||
extern void __insert_inode_hash(struct inode *, unsigned long hashval);
|
||||
static inline void insert_inode_hash(struct inode *inode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue