apparmor:match_mn() - constify devpath argument
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 24 Mar 2021 18:11:29 +0000 (14:11 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 24 Mar 2021 18:11:29 +0000 (14:11 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
security/apparmor/mount.c

index e0828ee7a34573edb6519836363d5ab4e462197e..aa6fcfde30514803dbcf8d1e0c20bc5529033c1c 100644 (file)
@@ -370,7 +370,7 @@ audit:
  * Returns: 0 on success else error
  */
 static int match_mnt(struct aa_profile *profile, const struct path *path,
-                    char *buffer, struct path *devpath, char *devbuffer,
+                    char *buffer, const struct path *devpath, char *devbuffer,
                     const char *type, unsigned long flags, void *data,
                     bool binary)
 {
@@ -579,7 +579,7 @@ out:
        return error;
 }
 
-static int profile_umount(struct aa_profile *profile, struct path *path,
+static int profile_umount(struct aa_profile *profile, const struct path *path,
                          char *buffer)
 {
        struct aa_perms perms = { };