allow rpcbind to bind all port

This commit is contained in:
luhuaxin 2021-05-27 20:46:18 +08:00
parent 77c0703f33
commit f6c6e703eb
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From 9c6736b1920930c116a859d5002966c8d8e87dcf Mon Sep 17 00:00:00 2001
From: luhuaxin <1539327763@qq.com>
Date: Thu, 27 May 2021 20:06:28 +0800
Subject: [PATCH] allow rpcbind to bind all port
---
policy/modules/contrib/rpcbind.te | 1 +
1 file changed, 1 insertion(+)
diff --git a/policy/modules/contrib/rpcbind.te b/policy/modules/contrib/rpcbind.te
index bc7a4fa..3a87568 100644
--- a/policy/modules/contrib/rpcbind.te
+++ b/policy/modules/contrib/rpcbind.te
@@ -67,6 +67,7 @@ corenet_sendrecv_all_server_packets(rpcbind_t)
corenet_tcp_bind_portmap_port(rpcbind_t)
corenet_udp_bind_portmap_port(rpcbind_t)
corenet_udp_bind_all_rpc_ports(rpcbind_t)
+corenet_udp_bind_all_ports(rpcbind_t)
corecmd_exec_shell(rpcbind_t)
--
1.8.3.1

View File

@ -12,7 +12,7 @@
Summary: SELinux policy configuration
Name: selinux-policy
Version: 3.14.2
Release: 65
Release: 66
License: GPLv2+
URL: https://github.com/fedora-selinux/selinux-policy/
@ -72,6 +72,7 @@ Patch19: add-allow-systemd-timedated-to-unlink-etc-link.patch
Patch20: add-avc-for-openEuler-1.patch
Patch21: backport-systemd-allow-all-systemd-services-to-check-selinux-.patch
Patch22: backport-Allow-dovecot-bind-to-smtp-ports.patch
Patch23: allow-rpcbind-to-bind-all-port.patch
BuildArch: noarch
BuildRequires: python3 gawk checkpolicy >= %{CHECKPOLICYVER} m4 policycoreutils-devel >= %{POLICYCOREUTILSVER} bzip2 gcc
@ -737,6 +738,9 @@ exit 0
%endif
%changelog
* Thu Mar 27 2021 luhuaxin <1539327763@qq.com> - 3.14.2-66
- allow rpcbind to bind all port
* Fri Mar 5 2021 luhuaxin <1539327763@qq.com> - 3.14.2-65
- selinux_requires macro shouldn't depend on policycoreutils-python
- add avc for allowing systemd services to check selinux status