refpolicy: backport two patches
cover refpolicy: backport two patches
From: Roy Li <[email protected]>
The following changes since commit 13266999932edaa334b24c18c79815eb19559b86:
refpolicy: Allow ping to get/set capabilities (2014-01-28 16:41:59 +0800)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib roy/refpolicy-backport-dhclient-hostname
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=roy/refpolicy-backport-dhclient-hostname
Roy Li (1):
refpolicy: backport two patches to fix dhclient, hostname and
ifconfig
...-not-audit-attempts-by-hostname-to-read-a.patch | 59 ++++++++++++++++++++ ...dhcpc-binds-socket-to-random-high-udp-por.patch | 41 ++++++++++++++ .../refpolicy/refpolicy_2.20130424.inc | 2 + 3 files changed, 102 insertions(+) create mode 100644 recipes-security/refpolicy/refpolicy-2.20130424/hostname-do-not-audit-attempts-by-hostname-to-read-a.patch create mode 100644 recipes-security/refpolicy/refpolicy-2.20130424/sysnetwork-dhcpc-binds-socket-to-random-high-udp-por.patch
Signature · 1 line
1.7.10.4
PATCH 1/1 refpolicy: backport two patches to fix dhclient, hostname and ifconfig
From: Roy Li <[email protected]>
--- ...-not-audit-attempts-by-hostname-to-read-a.patch | 59 ++++++++++++++++++++ ...dhcpc-binds-socket-to-random-high-udp-por.patch | 41 ++++++++++++++ .../refpolicy/refpolicy_2.20130424.inc | 2 + 3 files changed, 102 insertions(+) create mode 100644 recipes-security/refpolicy/refpolicy-2.20130424/hostname-do-not-audit-attempts-by-hostname-to-read-a.patch create mode 100644 recipes-security/refpolicy/refpolicy-2.20130424/sysnetwork-dhcpc-binds-socket-to-random-high-udp-por.patch
recipes-security/refpolicy/refpolicy-2.20130424/hostname-do-not-audit-attempts-by-hostname-to-read-a.patch new file +59 -0
@@ -0,0 +1,59 @@ +From 0857061b58e5ec0bf00e78839254f21519ed55d4 Mon Sep 17 00:00:00 2001 +From: Dominick Grift <[email protected]> +Date: Fri, 27 Sep 2013 10:36:14 +0200 +Subject: [PATCH] hostname: do not audit attempts by hostname to read and + write dhcpc udp sockets (looks like a leaked fd) + +Upstream-Status: backport + +Signed-off-by: Dominick Grift <[email protected]> +--- + policy/modules/system/hostname.te | 1 + + policy/modules/system/sysnetwork.if | 19 +++++++++++++++++++ + 2 files changed, 20 insertions(+) + +diff --git a/policy/modules/system/hostname.te b/policy/modules/system/hostname.te +index f6cbda9..380197b 100644 +--- a/policy/modules/system/hostname.te ++++ b/policy/modules/system/hostname.te +@@ -51,6 +51,7 @@ logging_send_syslog_msg(hostname_t) + + miscfiles_read_localization(hostname_t) + ++sysnet_dontaudit_rw_dhcpc_udp_sockets(hostname_t) + sysnet_dontaudit_rw_dhcpc_unix_stream_sockets(hostname_t) + sysnet_read_config(hostname_t) + sysnet_dns_name_resolve(hostname_t) +diff --git a/policy/modules/system/sysnetwork.if b/policy/modules/system/sysnetwork.if +index 52b548c..2cea692 100644 +--- a/policy/modules/system/sysnetwork.if ++++ b/policy/modules/system/sysnetwork.if +@@ -47,6 +47,25 @@ interface(`sysnet_run_dhcpc',` + + ######################################## + ## <summary> ++## Do not audit attempts to read and ++## write dhcpc udp socket descriptors. ++## </summary> ++## <param name="domain"> ++## <summary> ++## Domain to not audit. ++## </summary> ++## </param> ++# ++interface(`sysnet_dontaudit_rw_dhcpc_udp_sockets',` ++ gen_require(` ++ type dhcpc_t; ++ ') ++ ++ dontaudit $1 dhcpc_t:udp_socket { read write }; ++') ++ ++######################################## ++## <summary> + ## Do not audit attempts to use + ## the dhcp file descriptors. + ## </summary> +-- +1.7.10.4 +
recipes-security/refpolicy/refpolicy-2.20130424/sysnetwork-dhcpc-binds-socket-to-random-high-udp-por.patch new file +41 -0
41 lines not on this page · raw message
recipes-security/refpolicy/refpolicy_2.20130424.inc +2 -0
@@ -50,6 +50,8 @@ SRC_URI += "file://poky-policy-fix-xconsole_device_t-as-a-dev_node.patch \ file://poky-policy-fix-seutils-manage-config-files.patch \ file://poky-policy-fix-setfiles-statvfs-get-file-count.patch \ file://poky-policy-fix-dmesg-to-use-dev-kmsg.patch \ + file://hostname-do-not-audit-attempts-by-hostname-to-read-a.patch \ + file://sysnetwork-dhcpc-binds-socket-to-random-high-udp-por.patch \ " # Backport from upstream
Signature · 1 line
1.7.10.4
Joe MacDonald
AppliedQuoted 15 lines · [[yocto] [meta-selinux][PATCH 0/1] refpolicy: backport two patches] On…
From: Roy Li <[email protected]>
The following changes since commit
13266999932edaa334b24c18c79815eb19559b86:refpolicy: Allow ping to get/set capabilities (2014-01-28 16:41:59 +0800)
are available in the git repository at:
git://git.pokylinux.org/poky-contribroy/refpolicy-backport-dhclient-hostname
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=roy/refpolicy-backport-dhclient-hostnameRoy Li (1):
refpolicy: backport two patches to fix dhclient, hostname and
ifconfig
Quoted 7 lines
...-not-audit-attempts-by-hostname-to-read-a.patch | 59 ++++++++++++++++++++ ...dhcpc-binds-socket-to-random-high-udp-por.patch | 41 ++++++++++++++ .../refpolicy/refpolicy_2.20130424.inc | 2 + 3 files changed, 102 insertions(+) create mode 100644 recipes-security/refpolicy/refpolicy-2.20130424/hostname-do-not-audit-attempts-by-hostname-to-read-a.patch create mode 100644 recipes-security/refpolicy/refpolicy-2.20130424/sysnetwork-dhcpc-binds-socket-to-random-high-udp-por.patch
Merged, thanks Roy.
Signature · 2 lines
-Joe MacDonald. :wq