mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 15:01:13 +07:00
qstr: constify dentry_init_security
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
92d21ac74a
commit
4f3ccd7657
@ -1356,7 +1356,7 @@ union security_list_options {
|
||||
struct super_block *newsb);
|
||||
int (*sb_parse_opts_str)(char *options, struct security_mnt_opts *opts);
|
||||
int (*dentry_init_security)(struct dentry *dentry, int mode,
|
||||
struct qstr *name, void **ctx,
|
||||
const struct qstr *name, void **ctx,
|
||||
u32 *ctxlen);
|
||||
|
||||
|
||||
|
@ -240,7 +240,7 @@ int security_sb_clone_mnt_opts(const struct super_block *oldsb,
|
||||
struct super_block *newsb);
|
||||
int security_sb_parse_opts_str(char *options, struct security_mnt_opts *opts);
|
||||
int security_dentry_init_security(struct dentry *dentry, int mode,
|
||||
struct qstr *name, void **ctx,
|
||||
const struct qstr *name, void **ctx,
|
||||
u32 *ctxlen);
|
||||
|
||||
int security_inode_alloc(struct inode *inode);
|
||||
@ -591,7 +591,7 @@ static inline void security_inode_free(struct inode *inode)
|
||||
|
||||
static inline int security_dentry_init_security(struct dentry *dentry,
|
||||
int mode,
|
||||
struct qstr *name,
|
||||
const struct qstr *name,
|
||||
void **ctx,
|
||||
u32 *ctxlen)
|
||||
{
|
||||
|
@ -356,7 +356,7 @@ void security_inode_free(struct inode *inode)
|
||||
}
|
||||
|
||||
int security_dentry_init_security(struct dentry *dentry, int mode,
|
||||
struct qstr *name, void **ctx,
|
||||
const struct qstr *name, void **ctx,
|
||||
u32 *ctxlen)
|
||||
{
|
||||
return call_int_hook(dentry_init_security, -EOPNOTSUPP, dentry, mode,
|
||||
|
@ -2809,7 +2809,7 @@ static void selinux_inode_free_security(struct inode *inode)
|
||||
}
|
||||
|
||||
static int selinux_dentry_init_security(struct dentry *dentry, int mode,
|
||||
struct qstr *name, void **ctx,
|
||||
const struct qstr *name, void **ctx,
|
||||
u32 *ctxlen)
|
||||
{
|
||||
u32 newsid;
|
||||
|
Loading…
Reference in New Issue
Block a user