apparmor: move the "conflicting profile attachments" infostr to a const declaration
authorRyan Lee <ryan.lee@canonical.com>
Fri, 2 May 2025 00:55:44 +0000 (17:55 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 26 May 2025 03:15:01 +0000 (20:15 -0700)
commite76d733b1b1ff0bec6a305341fda3fe937fbf51f
treed156f09a1b2919045dd534de0496f2ababf4d3eb
parent89a3561e69e5187fcce302eef429acd38aec1277
apparmor: move the "conflicting profile attachments" infostr to a const declaration

Instead of having a literal, making this a constant will allow for (hacky)
detection of conflicting profile attachments from inspection of the info
pointer. This is used in the next patch to augment the information provided
through domain.c:x_to_label for ix/ux fallback.

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