Commit 64b2f34f authored by Al Viro's avatar Al Viro
Browse files

apparmor:match_mn() - constify devpath argument



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 90432e60
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -370,7 +370,7 @@ static int match_mnt_path_str(struct aa_profile *profile,
 * 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 @@ int aa_new_mount(struct aa_label *label, const char *dev_name,
	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 = { };