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 38775138C93 for ; Sat, 11 Apr 2015 08:28:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ABF9EE08CD; Sat, 11 Apr 2015 08:28:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5C158E08CD for ; Sat, 11 Apr 2015 08:28:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 99127340AEC for ; Sat, 11 Apr 2015 08:28:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3472A15AD9 for ; Sat, 11 Apr 2015 08:28:13 +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: <1428740855.e0dd6abfcd2f8bed0051d08f09940fd7b00ad605.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:nginx commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/nginx.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: e0dd6abfcd2f8bed0051d08f09940fd7b00ad605 X-VCS-Branch: nginx Date: Sat, 11 Apr 2015 08:28:13 +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: 03bd883e-524d-4694-8b9d-b5e24d0ba9a1 X-Archives-Hash: 7aae3c3abf31688b67153d8f52527a89 commit: e0dd6abfcd2f8bed0051d08f09940fd7b00ad605 Author: Jason Zaman perfinion com> AuthorDate: Sat Apr 11 08:05:19 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Apr 11 08:27:35 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e0dd6abf allow nginx to connect to uwsgi policy/modules/contrib/nginx.te | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/policy/modules/contrib/nginx.te b/policy/modules/contrib/nginx.te index 3a30d69..be59bab 100644 --- a/policy/modules/contrib/nginx.te +++ b/policy/modules/contrib/nginx.te @@ -157,3 +157,13 @@ tunable_policy(`nginx_can_network_connect',` optional_policy(` phpfpm_stream_connect(nginx_t) ') + +ifdef(`distro_gentoo',` + + # needs to be able to signal its children + allow nginx_t self:process { signal sigchld }; + + optional_policy(` + uwsgi_stream_connect(nginx_t) + ') +')