Commit 8a04c43b authored by Al Viro's avatar Al Viro

constify security_sb_mount()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 7fd25dac
...@@ -1343,7 +1343,7 @@ union security_list_options { ...@@ -1343,7 +1343,7 @@ union security_list_options {
int (*sb_kern_mount)(struct super_block *sb, int flags, void *data); int (*sb_kern_mount)(struct super_block *sb, int flags, void *data);
int (*sb_show_options)(struct seq_file *m, struct super_block *sb); int (*sb_show_options)(struct seq_file *m, struct super_block *sb);
int (*sb_statfs)(struct dentry *dentry); int (*sb_statfs)(struct dentry *dentry);
int (*sb_mount)(const char *dev_name, 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)(struct path *old_path, struct path *new_path);
......
...@@ -222,7 +222,7 @@ int security_sb_remount(struct super_block *sb, void *data); ...@@ -222,7 +222,7 @@ int security_sb_remount(struct super_block *sb, void *data);
int security_sb_kern_mount(struct super_block *sb, int flags, void *data); int security_sb_kern_mount(struct super_block *sb, int flags, void *data);
int security_sb_show_options(struct seq_file *m, struct super_block *sb); int security_sb_show_options(struct seq_file *m, struct super_block *sb);
int security_sb_statfs(struct dentry *dentry); int security_sb_statfs(struct dentry *dentry);
int security_sb_mount(const char *dev_name, 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(struct path *old_path, struct path *new_path);
...@@ -530,7 +530,7 @@ static inline int security_sb_statfs(struct dentry *dentry) ...@@ -530,7 +530,7 @@ static inline int security_sb_statfs(struct dentry *dentry)
return 0; return 0;
} }
static inline int security_sb_mount(const char *dev_name, struct path *path, static inline int security_sb_mount(const char *dev_name, const struct path *path,
const char *type, unsigned long flags, const char *type, unsigned long flags,
void *data) void *data)
{ {
......
...@@ -302,7 +302,7 @@ int security_sb_statfs(struct dentry *dentry) ...@@ -302,7 +302,7 @@ int security_sb_statfs(struct dentry *dentry)
return call_int_hook(sb_statfs, 0, dentry); return call_int_hook(sb_statfs, 0, dentry);
} }
int security_sb_mount(const char *dev_name, 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)
{ {
return call_int_hook(sb_mount, 0, dev_name, path, type, flags, data); return call_int_hook(sb_mount, 0, dev_name, path, type, flags, data);
......
...@@ -2760,7 +2760,7 @@ static int selinux_sb_statfs(struct dentry *dentry) ...@@ -2760,7 +2760,7 @@ static int selinux_sb_statfs(struct dentry *dentry)
} }
static int selinux_mount(const char *dev_name, static int selinux_mount(const char *dev_name,
struct path *path, const struct path *path,
const char *type, const char *type,
unsigned long flags, unsigned long flags,
void *data) void *data)
......
...@@ -401,7 +401,7 @@ static int tomoyo_path_chroot(struct path *path) ...@@ -401,7 +401,7 @@ static int tomoyo_path_chroot(struct path *path)
* *
* Returns 0 on success, negative value otherwise. * Returns 0 on success, negative value otherwise.
*/ */
static int tomoyo_sb_mount(const char *dev_name, struct path *path, static int tomoyo_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)
{ {
return tomoyo_mount_permission(dev_name, path, type, flags, data); return tomoyo_mount_permission(dev_name, path, type, flags, data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment