From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A9A0B138206 for ; Thu, 18 Jan 2018 16:37:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F8ABE08DA; Thu, 18 Jan 2018 16:37:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1B18FE08D9 for ; Thu, 18 Jan 2018 16:37:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 427EA335C3B for ; Thu, 18 Jan 2018 16:37:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ED19A1CD for ; Thu, 18 Jan 2018 16:37:07 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1516293072.6695d0d08a0be39393eb598e8b475e1cbb6cf756.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/hostname.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 6695d0d08a0be39393eb598e8b475e1cbb6cf756 X-VCS-Branch: master Date: Thu, 18 Jan 2018 16:37:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 65e74c18-3be8-43ba-854c-ec7c102158e4 X-Archives-Hash: 7fb894f7353b8225387906e4c4096bce commit: 6695d0d08a0be39393eb598e8b475e1cbb6cf756 Author: Christian Göttsche googlemail com> AuthorDate: Fri Dec 29 20:28:47 2017 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Thu Jan 18 16:31:12 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=6695d0d0 hostname: cmdline usage + signal perms sort policy/modules/system/hostname.te | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/policy/modules/system/hostname.te b/policy/modules/system/hostname.te index 4e85d041..1a5a3581 100644 --- a/policy/modules/system/hostname.te +++ b/policy/modules/system/hostname.te @@ -17,7 +17,7 @@ role system_r types hostname_t; # sys_admin : for setting the hostname allow hostname_t self:capability sys_admin; -allow hostname_t self:process { sigchld sigkill sigstop signull signal }; +allow hostname_t self:process { sigchld sigkill signal signull sigstop }; allow hostname_t self:unix_stream_socket create_stream_socket_perms; dontaudit hostname_t self:capability sys_tty_config; @@ -56,6 +56,8 @@ sysnet_dontaudit_rw_dhcpc_unix_stream_sockets(hostname_t) sysnet_read_config(hostname_t) sysnet_dns_name_resolve(hostname_t) +userdom_use_inherited_user_terminals(hostname_t) + optional_policy(` nis_use_ypbind(hostname_t) ')