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 C20691381F3 for ; Fri, 27 Sep 2013 13:27:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6FCB7E0F1C; Fri, 27 Sep 2013 13:27:32 +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 EF92AE0EF1 for ; Fri, 27 Sep 2013 13:27:30 +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 1065F33EE43 for ; Fri, 27 Sep 2013 13:27:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id CA374E546C for ; Fri, 27 Sep 2013 13:27:27 +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: <1380288207.48dc4ab330d1d22ff816d728919604a284cbcee9.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: 48dc4ab330d1d22ff816d728919604a284cbcee9 X-VCS-Branch: master Date: Fri, 27 Sep 2013 13:27:27 +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: 216b4313-19de-40da-99de-90d6afcc7389 X-Archives-Hash: e10c29b06b427434d7cdcf6afb0dab2e commit: 48dc4ab330d1d22ff816d728919604a284cbcee9 Author: Sven Vermeulen siphos be> AuthorDate: Wed Sep 25 18:27:34 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Sep 27 13:23:27 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=48dc4ab3 Allow ping to get/set capabilities When ping is installed with capabilities instead of being marked setuid, then the ping_t domain needs to be allowed to getcap/setcap. Reported-by: Luis Ressel aixah.de> Signed-off-by: Sven Vermeulen siphos.be> --- policy/modules/admin/netutils.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/admin/netutils.te b/policy/modules/admin/netutils.te index 59933cd..f443186 100644 --- a/policy/modules/admin/netutils.te +++ b/policy/modules/admin/netutils.te @@ -106,6 +106,8 @@ optional_policy(` # allow ping_t self:capability { setuid net_raw }; +# When ping is installed with capabilities instead of setuid +allow ping_t self:process { getcap setcap }; dontaudit ping_t self:capability sys_tty_config; allow ping_t self:tcp_socket create_socket_perms; allow ping_t self:rawip_socket { create ioctl read write bind getopt setopt };