may_linkat(): constify path
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
6ccaaf59c3
commit
8996682b10
|
@ -62,7 +62,7 @@ extern int vfs_path_lookup(struct dentry *, struct vfsmount *,
|
||||||
const char *, unsigned int, struct path *);
|
const char *, unsigned int, struct path *);
|
||||||
int do_rmdir(int dfd, struct filename *name);
|
int do_rmdir(int dfd, struct filename *name);
|
||||||
int do_unlinkat(int dfd, struct filename *name);
|
int do_unlinkat(int dfd, struct filename *name);
|
||||||
int may_linkat(struct user_namespace *mnt_userns, struct path *link);
|
int may_linkat(struct user_namespace *mnt_userns, const struct path *link);
|
||||||
int do_renameat2(int olddfd, struct filename *oldname, int newdfd,
|
int do_renameat2(int olddfd, struct filename *oldname, int newdfd,
|
||||||
struct filename *newname, unsigned int flags);
|
struct filename *newname, unsigned int flags);
|
||||||
int do_mkdirat(int dfd, struct filename *name, umode_t mode);
|
int do_mkdirat(int dfd, struct filename *name, umode_t mode);
|
||||||
|
|
|
@ -1178,7 +1178,7 @@ static bool safe_hardlink_source(struct user_namespace *mnt_userns,
|
||||||
*
|
*
|
||||||
* Returns 0 if successful, -ve on error.
|
* Returns 0 if successful, -ve on error.
|
||||||
*/
|
*/
|
||||||
int may_linkat(struct user_namespace *mnt_userns, struct path *link)
|
int may_linkat(struct user_namespace *mnt_userns, const struct path *link)
|
||||||
{
|
{
|
||||||
struct inode *inode = link->dentry->d_inode;
|
struct inode *inode = link->dentry->d_inode;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue