whack-a-mole: constifying struct path *
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQqUNBr3gm4hGXdBJlZ7Krx/gZQ6wUCYzxmRQAKCRBZ7Krx/gZQ 6+/kAQD2xyf+i4zOYVBr1NB3qBbhVS1zrni1NbC/kT3dJPgTvwEA7z7eqwnrN4zg scKFP8a3yPoaQBfs4do5PolhuSr2ngA= =NBI+ -----END PGP SIGNATURE----- Merge tag 'pull-path' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs Pull vfs constification updates from Al Viro: "whack-a-mole: constifying struct path *" * tag 'pull-path' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: ecryptfs: constify path spufs: constify path nd_jump_link(): constify path audit_init_parent(): constify path __io_setxattr(): constify path do_proc_readlink(): constify path overlayfs: constify path fs/notify: constify path may_linkat(): constify path do_sys_name_to_handle(): constify path ->getprocattr(): attribute name is const char *, TYVM...
This commit is contained in:
commit
4c0ed7d8d6
30 changed files with 70 additions and 70 deletions
|
|
@ -614,7 +614,7 @@ static int apparmor_sb_pivotroot(const struct path *old_path,
|
|||
return error;
|
||||
}
|
||||
|
||||
static int apparmor_getprocattr(struct task_struct *task, char *name,
|
||||
static int apparmor_getprocattr(struct task_struct *task, const char *name,
|
||||
char **value)
|
||||
{
|
||||
int error = -ENOENT;
|
||||
|
|
|
|||
|
|
@ -2062,8 +2062,8 @@ void security_d_instantiate(struct dentry *dentry, struct inode *inode)
|
|||
}
|
||||
EXPORT_SYMBOL(security_d_instantiate);
|
||||
|
||||
int security_getprocattr(struct task_struct *p, const char *lsm, char *name,
|
||||
char **value)
|
||||
int security_getprocattr(struct task_struct *p, const char *lsm,
|
||||
const char *name, char **value)
|
||||
{
|
||||
struct security_hook_list *hp;
|
||||
|
||||
|
|
|
|||
|
|
@ -6330,7 +6330,7 @@ static void selinux_d_instantiate(struct dentry *dentry, struct inode *inode)
|
|||
}
|
||||
|
||||
static int selinux_getprocattr(struct task_struct *p,
|
||||
char *name, char **value)
|
||||
const char *name, char **value)
|
||||
{
|
||||
const struct task_security_struct *__tsec;
|
||||
u32 sid;
|
||||
|
|
|
|||
|
|
@ -3493,7 +3493,7 @@ static void smack_d_instantiate(struct dentry *opt_dentry, struct inode *inode)
|
|||
*
|
||||
* Returns the length of the smack label or an error code
|
||||
*/
|
||||
static int smack_getprocattr(struct task_struct *p, char *name, char **value)
|
||||
static int smack_getprocattr(struct task_struct *p, const char *name, char **value)
|
||||
{
|
||||
struct smack_known *skp = smk_of_task_struct_obj(p);
|
||||
char *cp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue