From 94bf2495e3805167b73235062d1f0b44ce1ca9b0 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 29 Nov 2024 15:41:54 +0000 Subject: [PATCH] feat(profile): needrestart improve mqueue rule. --- apparmor.d/profiles-m-r/needrestart | 2 +- tests/bats/needrestart.bats | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/apparmor.d/profiles-m-r/needrestart b/apparmor.d/profiles-m-r/needrestart index f5722ed3..cc411ef8 100644 --- a/apparmor.d/profiles-m-r/needrestart +++ b/apparmor.d/profiles-m-r/needrestart @@ -22,7 +22,7 @@ profile needrestart @{exec_path} flags=(attach_disconnected) { ptrace (read), - mqueue r type=posix /, + mqueue (r,getattr) type=posix /, @{exec_path} mrix, diff --git a/tests/bats/needrestart.bats b/tests/bats/needrestart.bats index 567f8c77..4676b36a 100644 --- a/tests/bats/needrestart.bats +++ b/tests/bats/needrestart.bats @@ -5,10 +5,6 @@ load common -setup_file() { - skip "mqueue raised despite the rule being present. See https://gitlab.com/apparmor/apparmor/-/issues/362" -} - @test "needrestart: List outdated processes" { needrestart }