forked from rubenslte/android_kernel_samsung_msm8226
consitify do_mount() arguments
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> (cherry picked from commit 808d4e3cfdcc52b19276175464f6dbca4df13b09) Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org> Change-Id: I70d4c162ea08089335c08d253c92bb4da3711c5e
This commit is contained in:
committed by
Francescodario Cuzzocrea
parent
51779846cd
commit
4a08dd721c
@@ -94,8 +94,8 @@ static int cap_sb_statfs(struct dentry *dentry)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cap_sb_mount(char *dev_name, struct path *path, char *type,
|
||||
unsigned long flags, void *data)
|
||||
static int cap_sb_mount(const char *dev_name, struct path *path,
|
||||
const char *type, unsigned long flags, void *data)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
+2
-2
@@ -280,8 +280,8 @@ int security_sb_statfs(struct dentry *dentry)
|
||||
return security_ops->sb_statfs(dentry);
|
||||
}
|
||||
|
||||
int security_sb_mount(char *dev_name, struct path *path,
|
||||
char *type, unsigned long flags, void *data)
|
||||
int security_sb_mount(const char *dev_name, struct path *path,
|
||||
const char *type, unsigned long flags, void *data)
|
||||
{
|
||||
return security_ops->sb_mount(dev_name, path, type, flags, data);
|
||||
}
|
||||
|
||||
@@ -2677,9 +2677,9 @@ static int selinux_sb_statfs(struct dentry *dentry)
|
||||
return superblock_has_perm(cred, dentry->d_sb, FILESYSTEM__GETATTR, &ad);
|
||||
}
|
||||
|
||||
static int selinux_mount(char *dev_name,
|
||||
static int selinux_mount(const char *dev_name,
|
||||
struct path *path,
|
||||
char *type,
|
||||
const char *type,
|
||||
unsigned long flags,
|
||||
void *data)
|
||||
{
|
||||
|
||||
@@ -404,8 +404,8 @@ static int smack_sb_statfs(struct dentry *dentry)
|
||||
* Returns 0 if current can write the floor of the filesystem
|
||||
* being mounted on, an error code otherwise.
|
||||
*/
|
||||
static int smack_sb_mount(char *dev_name, struct path *path,
|
||||
char *type, unsigned long flags, void *data)
|
||||
static int smack_sb_mount(const char *dev_name, struct path *path,
|
||||
const char *type, unsigned long flags, void *data)
|
||||
{
|
||||
struct superblock_smack *sbp = path->dentry->d_sb->s_security;
|
||||
struct smk_audit_info ad;
|
||||
|
||||
@@ -971,7 +971,7 @@ int tomoyo_init_request_info(struct tomoyo_request_info *r,
|
||||
const u8 index);
|
||||
int tomoyo_mkdev_perm(const u8 operation, struct path *path,
|
||||
const unsigned int mode, unsigned int dev);
|
||||
int tomoyo_mount_permission(char *dev_name, struct path *path,
|
||||
int tomoyo_mount_permission(const char *dev_name, struct path *path,
|
||||
const char *type, unsigned long flags,
|
||||
void *data_page);
|
||||
int tomoyo_open_control(const u8 type, struct file *file);
|
||||
|
||||
@@ -71,7 +71,8 @@ static bool tomoyo_check_mount_acl(struct tomoyo_request_info *r,
|
||||
*
|
||||
* Caller holds tomoyo_read_lock().
|
||||
*/
|
||||
static int tomoyo_mount_acl(struct tomoyo_request_info *r, char *dev_name,
|
||||
static int tomoyo_mount_acl(struct tomoyo_request_info *r,
|
||||
const char *dev_name,
|
||||
struct path *dir, const char *type,
|
||||
unsigned long flags)
|
||||
{
|
||||
@@ -183,7 +184,7 @@ static int tomoyo_mount_acl(struct tomoyo_request_info *r, char *dev_name,
|
||||
*
|
||||
* Returns 0 on success, negative value otherwise.
|
||||
*/
|
||||
int tomoyo_mount_permission(char *dev_name, struct path *path,
|
||||
int tomoyo_mount_permission(const char *dev_name, struct path *path,
|
||||
const char *type, unsigned long flags,
|
||||
void *data_page)
|
||||
{
|
||||
|
||||
@@ -406,8 +406,8 @@ static int tomoyo_path_chroot(struct path *path)
|
||||
*
|
||||
* Returns 0 on success, negative value otherwise.
|
||||
*/
|
||||
static int tomoyo_sb_mount(char *dev_name, struct path *path,
|
||||
char *type, unsigned long flags, void *data)
|
||||
static int tomoyo_sb_mount(const char *dev_name, struct path *path,
|
||||
const char *type, unsigned long flags, void *data)
|
||||
{
|
||||
return tomoyo_mount_permission(dev_name, path, type, flags, data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user