apparmor:match_mn() - constify devpath argument

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2021-03-24 14:11:29 -04:00
Родитель 90432e6006
Коммит 64b2f34f38
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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 = { };