diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-03-24 19:11:29 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-03-24 19:11:29 +0100 |
commit | 64b2f34f38cb999597570e09e04aa6e4c3fed07e (patch) | |
tree | b65e0671db435d7d392de841a2dc3a1fe94c03cd /security | |
parent | buffer: a small optimization in grow_buffers (diff) | |
download | linux-64b2f34f38cb999597570e09e04aa6e4c3fed07e.tar.xz linux-64b2f34f38cb999597570e09e04aa6e4c3fed07e.zip |
apparmor:match_mn() - constify devpath argument
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security')
-rw-r--r-- | security/apparmor/mount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/apparmor/mount.c b/security/apparmor/mount.c index e0828ee7a345..aa6fcfde3051 100644 --- a/security/apparmor/mount.c +++ b/security/apparmor/mount.c @@ -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 = { }; |