aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/tomoyo/mount.c')
-rw-r--r--security/tomoyo/mount.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/security/tomoyo/mount.c b/security/tomoyo/mount.c
index 892494a..951a245 100644
--- a/security/tomoyo/mount.c
+++ b/security/tomoyo/mount.c
@@ -85,7 +85,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, char *type, unsigned long flags)
{
struct path path;
@@ -190,7 +191,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, char *type,
+int tomoyo_mount_permission(const char *dev_name, struct path *path, const char *type,
unsigned long flags, void *data_page)
{
struct tomoyo_request_info r;