Skip to content

Commit 4c351fe

Browse files
committed
tmt: stop adding nlmsg to the policy
It is now included in the stock Fedora selinux-policy. The policy capability and extra rules still need to be enabled/added, though. Signed-off-by: Ondrej Mosnacek <[email protected]>
1 parent 48f92e5 commit 4c351fe

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tmt/tests.fmf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,19 @@
4242
semodule -c -E base
4343
sed -i \
4444
-e 's/\((class system (ipc_info syslog_read syslog_mod syslog_console module_request module_load \)\(halt reboot status start stop enable disable reload undefined ))\)/\1firmware_load kexec_image_load kexec_initramfs_load policy_load x509_certificate_load \2/' \
45-
-e 's/\((class netlink_[a-z0-9_]*_socket (\)\(nlmsg_read \)/\1nlmsg \2/' \
4645
base.cil
4746
echo "(policycap netlink_xperm)" >>base.cil
4847
# allow nlmsg to some system domains so that the system can boot
4948
for source in daemon initrc_domain systemprocess unconfined_domain_type sysadm_t; do
5049
echo "(allow $source self (netlink_route_socket (nlmsg)))" >>base.cil
51-
echo "(allow $source self (netlink_firewall_socket (nlmsg)))" >>base.cil
5250
echo "(allow $source self (netlink_tcpdiag_socket (nlmsg)))" >>base.cil
5351
echo "(allow $source self (netlink_xfrm_socket (nlmsg)))" >>base.cil
5452
echo "(allow $source self (netlink_audit_socket (nlmsg)))" >>base.cil
55-
echo "(allow $source self (netlink_ip6fw_socket (nlmsg)))" >>base.cil
5653
done
5754
semodule -X 456 -i base.cil
5855
rm -f base.cil
5956
sed -i.orig \
6057
-e 's/module_load /module_load firmware_load kexec_image_load kexec_initramfs_load policy_load x509_certificate_load /' \
61-
-e 's/nlmsg_read /nlmsg nlmsg_read /' \
6258
/usr/share/selinux/devel/include/support/all_perms.spt
6359
;;
6460
local)

0 commit comments

Comments
 (0)