From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CF7B71381F3 for ; Fri, 16 Aug 2013 16:38:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C0990E0FA4; Fri, 16 Aug 2013 16:38:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5ACFAE0FA4 for ; Fri, 16 Aug 2013 16:38:34 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6751233EAD8 for ; Fri, 16 Aug 2013 16:38:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 92617E468F for ; Fri, 16 Aug 2013 16:38:30 +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: <1376671029.4bba4d0c463dd189e6978cf1456c5895a9bd2ede.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/sysnetwork.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 4bba4d0c463dd189e6978cf1456c5895a9bd2ede X-VCS-Branch: master Date: Fri, 16 Aug 2013 16:38:30 +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: a3fe5df9-48bc-49bb-ae01-4ab2342b2a2f X-Archives-Hash: 6e9e01c68c22a08f73bcab292abc00f4 commit: 4bba4d0c463dd189e6978cf1456c5895a9bd2ede Author: Sven Vermeulen siphos be> AuthorDate: Fri Aug 16 16:37:09 2013 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Fri Aug 16 16:37:09 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=4bba4d0c Allow dhcpc to set the system hostname --- policy/modules/system/sysnetwork.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/policy/modules/system/sysnetwork.te b/policy/modules/system/sysnetwork.te index 18b6986..62aad47 100644 --- a/policy/modules/system/sysnetwork.te +++ b/policy/modules/system/sysnetwork.te @@ -375,4 +375,8 @@ ifdef(`distro_gentoo',` # Fixes bug 468874 allow dhcpc_t self:rawip_socket create_socket_perms; + + # Allow dhcpc to set hostname (/proc/sys/kernel/hostname) + allow dhcpc_t self:capability sys_admin; + kernel_rw_kernel_sysctl(dhcpc_t) ')