Georgia Garcia 8d0d83f506 apparmor: fix invalid reference on profile->disconnected
[ Upstream commit 8884ba07786c718771cf7b78cb3024924b27ec2b ]

profile->disconnected was storing an invalid reference to the
disconnected path. Fix it by duplicating the string using
aa_unpack_strdup and freeing accordingly.

Fixes: 72c8a768641d ("apparmor: allow profiles to provide info to disconnected paths")
Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:59:24 +01:00
..
2022-10-25 00:15:18 -07:00
2023-07-07 09:55:31 -07:00
2022-10-25 00:15:18 -07:00
2022-12-14 13:42:09 -08:00
2022-12-14 13:42:09 -08:00
2023-07-07 09:55:31 -07:00
2023-01-10 10:04:35 -08:00