Skip to contentSkip to conversation

tmt: allow nlmsg also to the ssh_server attribute

PATCH In review Ondrej Mosnacek 2 participants 3 messages Jul 27 – Jul 28 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tmt: allow nlmsg also to the ssh_server attribute

Without this SSH doesn't work under the latest Rawhide policy and the test run fails to complete successfully.

---
 tmt/tests.fmf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tmt/tests.fmf +1 -1
index fe90c69..08bd129 100644
@@ -48,7 +48,7 @@
         echo "(policycap netlink_xperm)" >>base.cil
         echo "(policycap bpf_token_perms)" >>base.cil
         # allow nlmsg to some system domains so that the system can boot
-        for source in daemon initrc_domain systemprocess unconfined_domain_type sysadm_t; do
+        for source in daemon initrc_domain systemprocess ssh_server unconfined_domain_type sysadm_t; do
           echo "(allow $source self (netlink_route_socket (nlmsg)))" >>base.cil
           echo "(allow $source self (netlink_tcpdiag_socket (nlmsg)))" >>base.cil
           echo "(allow $source self (netlink_xfrm_socket (nlmsg)))" >>base.cil
Signature · 1 line
2.55.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Ondrej Mosnacek

Without this SSH doesn't work under the latest Rawhide policy and the test run fails to complete successfully.

Quoted 21 lines
---
 tmt/tests.fmf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tmt/tests.fmf +1 -2
index fe90c69..08bd129 100644
@@ -48,7 +48,7 @@
         echo "(policycap netlink_xperm)" >>base.cil
         echo "(policycap bpf_token_perms)" >>base.cil
         # allow nlmsg to some system domains so that the system can boot
-        for source in daemon initrc_domain systemprocess unconfined_domain_type sysadm_t; do
+        for source in daemon initrc_domain systemprocess ssh_server unconfined_domain_type sysadm_t; do
           echo "(allow $source self (netlink_route_socket (nlmsg)))" >>base.cil
           echo "(allow $source self (netlink_tcpdiag_socket (nlmsg)))" >>base.cil
           echo "(allow $source self (netlink_xfrm_socket (nlmsg)))" >>base.cil
--

2.55.0