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 A58881381F3 for ; Wed, 18 Sep 2013 14:08:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4ED76E0A5C; Wed, 18 Sep 2013 14:08:24 +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 DD98BE0A5C for ; Wed, 18 Sep 2013 14:08:23 +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 D701B33EBE3 for ; Wed, 18 Sep 2013 14:08:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 8DCA9E530A for ; Wed, 18 Sep 2013 14:08:21 +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: <1379513245.3b7bfcfd65b3892a0a8f5b07e5d4273c671f5ad6.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/admin/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/admin/netutils.te X-VCS-Directories: policy/modules/admin/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 3b7bfcfd65b3892a0a8f5b07e5d4273c671f5ad6 X-VCS-Branch: master Date: Wed, 18 Sep 2013 14:08:21 +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: 7c20bbd9-b1fe-4d35-a59a-087b5b7a8e63 X-Archives-Hash: 44989f7646b39df7fcd657e858dbdb07 commit: 3b7bfcfd65b3892a0a8f5b07e5d4273c671f5ad6 Author: Sven Vermeulen siphos be> AuthorDate: Wed Sep 18 14:07:25 2013 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Wed Sep 18 14:07:25 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=3b7bfcfd Fix bug #485304 - Allow capabilities for ping When the ping binary is not setuid, but uses capabilities, then the ping_t domain needs to be able to get and set capabilities. --- policy/modules/admin/netutils.te | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/policy/modules/admin/netutils.te b/policy/modules/admin/netutils.te index 557da97..59933cd 100644 --- a/policy/modules/admin/netutils.te +++ b/policy/modules/admin/netutils.te @@ -212,3 +212,13 @@ userdom_use_user_terminals(traceroute_t) dev_read_rand(traceroute_t) dev_read_urand(traceroute_t) files_read_usr_files(traceroute_t) + +ifdef(`distro_gentoo',` + ######################################### + # + # ping_t policy + # + + # When not using setuid ping but capabilities + allow ping_t self:process { getcap setcap }; +')