mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-29 10:34:08 +00:00
constify security_sb_pivotroot()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
77b286c0d2
commit
3b73b68c05
4 changed files with 6 additions and 6 deletions
|
@ -1346,7 +1346,7 @@ union security_list_options {
|
||||||
int (*sb_mount)(const char *dev_name, const struct path *path,
|
int (*sb_mount)(const char *dev_name, const struct path *path,
|
||||||
const char *type, unsigned long flags, void *data);
|
const char *type, unsigned long flags, void *data);
|
||||||
int (*sb_umount)(struct vfsmount *mnt, int flags);
|
int (*sb_umount)(struct vfsmount *mnt, int flags);
|
||||||
int (*sb_pivotroot)(struct path *old_path, struct path *new_path);
|
int (*sb_pivotroot)(const struct path *old_path, const struct path *new_path);
|
||||||
int (*sb_set_mnt_opts)(struct super_block *sb,
|
int (*sb_set_mnt_opts)(struct super_block *sb,
|
||||||
struct security_mnt_opts *opts,
|
struct security_mnt_opts *opts,
|
||||||
unsigned long kern_flags,
|
unsigned long kern_flags,
|
||||||
|
|
|
@ -225,7 +225,7 @@ int security_sb_statfs(struct dentry *dentry);
|
||||||
int security_sb_mount(const char *dev_name, const struct path *path,
|
int security_sb_mount(const char *dev_name, const struct path *path,
|
||||||
const char *type, unsigned long flags, void *data);
|
const char *type, unsigned long flags, void *data);
|
||||||
int security_sb_umount(struct vfsmount *mnt, int flags);
|
int security_sb_umount(struct vfsmount *mnt, int flags);
|
||||||
int security_sb_pivotroot(struct path *old_path, struct path *new_path);
|
int security_sb_pivotroot(const struct path *old_path, const struct path *new_path);
|
||||||
int security_sb_set_mnt_opts(struct super_block *sb,
|
int security_sb_set_mnt_opts(struct super_block *sb,
|
||||||
struct security_mnt_opts *opts,
|
struct security_mnt_opts *opts,
|
||||||
unsigned long kern_flags,
|
unsigned long kern_flags,
|
||||||
|
@ -542,8 +542,8 @@ static inline int security_sb_umount(struct vfsmount *mnt, int flags)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int security_sb_pivotroot(struct path *old_path,
|
static inline int security_sb_pivotroot(const struct path *old_path,
|
||||||
struct path *new_path)
|
const struct path *new_path)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -313,7 +313,7 @@ int security_sb_umount(struct vfsmount *mnt, int flags)
|
||||||
return call_int_hook(sb_umount, 0, mnt, flags);
|
return call_int_hook(sb_umount, 0, mnt, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
int security_sb_pivotroot(struct path *old_path, struct path *new_path)
|
int security_sb_pivotroot(const struct path *old_path, const struct path *new_path)
|
||||||
{
|
{
|
||||||
return call_int_hook(sb_pivotroot, 0, old_path, new_path);
|
return call_int_hook(sb_pivotroot, 0, old_path, new_path);
|
||||||
}
|
}
|
||||||
|
|
|
@ -429,7 +429,7 @@ static int tomoyo_sb_umount(struct vfsmount *mnt, int flags)
|
||||||
*
|
*
|
||||||
* Returns 0 on success, negative value otherwise.
|
* Returns 0 on success, negative value otherwise.
|
||||||
*/
|
*/
|
||||||
static int tomoyo_sb_pivotroot(struct path *old_path, struct path *new_path)
|
static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path)
|
||||||
{
|
{
|
||||||
return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path);
|
return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue