qstr: constify dentry_init_security
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 Jul 2016 20:06:15 +0000 (16:06 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2016 03:30:06 +0000 (23:30 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/lsm_hooks.h
include/linux/security.h
security/security.c
security/selinux/hooks.c

index 7ae397669d8b62dc7f7fa9b5df47a869baf29e98..101bf19c0f411df4661d9046ed35be9bc11d9fb2 100644 (file)
@@ -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);
 
 
index 14df373ff2caf4b3cdb36f8141b27b2892aa466b..7831cd57bcf7336b22562dabab398be369ef6598 100644 (file)
@@ -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)
 {
index 709569305d329c6e7742e4e0d0513e9d9110b4a3..d441f45943e1ebf57ed7e65c0f89f6b2624ea979 100644 (file)
@@ -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,
index a86d537eb79b149a7dfe1536a243e180f4b9ec92..22b6628041ef6608b0d9132fd6cdbf08843f4e84 100644 (file)
@@ -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;