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 F215B59CA3 for ; Fri, 11 Mar 2016 17:20:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CBC0221C03B; Fri, 11 Mar 2016 17:20:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A5F2721C05F for ; Fri, 11 Mar 2016 17:20:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DB60A340BD2 for ; Fri, 11 Mar 2016 17:20:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 77C7A233B for ; Fri, 11 Mar 2016 17:20:11 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1457716577.1a466eaa3bd92c5a3107d7bb53e5672768dfb20c.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/redis.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 1a466eaa3bd92c5a3107d7bb53e5672768dfb20c X-VCS-Branch: master Date: Fri, 11 Mar 2016 17:20:11 +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: c9f7ef37-71da-4ef2-a655-1f4e182a91c7 X-Archives-Hash: 58edc2343cc209b9e5a9e0a3881d9536 commit: 1a466eaa3bd92c5a3107d7bb53e5672768dfb20c Author: Grant Ridder gmail com> AuthorDate: Wed Feb 17 22:28:25 2016 +0000 Commit: Jason Zaman gentoo org> CommitDate: Fri Mar 11 17:16:17 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=1a466eaa Allow tcp_connect to redis_port_t for redis_t This fixes the following: ``` type=AVC msg=audit(1455747105.487:947088): avc: denied { name_connect } for pid=2390 comm="redis-server" dest=26379 scontext=system_u:system_r:redis_t:s0 tcontext=system_u:object_r:redis_port_t:s0 tclass=tcp_socket ``` The `redis-server` process must be allowed to make outbound connections when running in a master-slave configuration. policy/modules/contrib/redis.te | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/contrib/redis.te b/policy/modules/contrib/redis.te index 00a7fc4..9ba0310 100644 --- a/policy/modules/contrib/redis.te +++ b/policy/modules/contrib/redis.te @@ -58,6 +58,7 @@ corenet_tcp_bind_generic_node(redis_t) corenet_sendrecv_redis_server_packets(redis_t) corenet_tcp_bind_redis_port(redis_t) +corenet_tcp_connect_redis_port(redis_t) corenet_tcp_sendrecv_redis_port(redis_t) dev_read_sysfs(redis_t)