diff options
| author | John Johansen <john.johansen@canonical.com> | 2026-10-20 12:23:13 -0700 |
|---|---|---|
| committer | John Johansen <john.johansen@canonical.com> | 2026-10-29 08:28:03 -0700 |
| commit | 1f5428b9f9bfb9dab6828015a5254dcd7c582a01 (patch) | |
| tree | 0df01d4eb9e74e873dd2c191a3474b4b5da05e3c /scripts/Makefile.thinlto | |
| parent | 33ed50716251d5b2875706c40d0c8082d46be0b1 (diff) | |
| download | linux-1f5428b9f9bfb9dab6828015a5254dcd7c582a01.tar.gz linux-1f5428b9f9bfb9dab6828015a5254dcd7c582a01.zip | |
apparmor: remove unconfined_profile() check in inet socket mediation
When a stacked label is used the early bailout !unconfined(label)
fails, and the individual profile components of the label are checked.
This can lead to aa_profile_af_perm() being called which results in
WARNING: security/apparmor/net.c:263 at aa_profile_af_perm+0x228/0x3b0
on any inet socket using basic socket mediation.
Remove the AA_BUG(profile_unconfined(profile)) check, it is not needed
as the code already handles the unconfined_profile() case. In addition
also a comment to indicate that this case is covered.
Fixes: 89ac6aa752ec ("apparmor: push inet mediation into profile callbacks, and improve auditing")
Reported-by: Georgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
