apparmor: include conflicting attachment info for confined ix/ux fallback
authorRyan Lee <ryan.lee@canonical.com>
Fri, 2 May 2025 00:55:45 +0000 (17:55 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 26 May 2025 03:15:01 +0000 (20:15 -0700)
commitb824b5f82bbc8ace0982391a1718b04a1f93346e
tree778831fe7e27de22fc39aad148a46fb5e3931f4e
parente76d733b1b1ff0bec6a305341fda3fe937fbf51f
apparmor: include conflicting attachment info for confined ix/ux fallback

Instead of silently overwriting the conflicting profile attachment string,
include that information in the ix/ux fallback string that gets set as info
instead. Also add a warning print if some other info is set that would be
overwritten by the ix/ux fallback string or by the profile not found error.

Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/domain.c