[PATCH 5.1 025/121] apparmor: fix PROFILE_MEDIATES for untrusted input