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 76DD1138A69 for ; Sat, 11 Apr 2015 08:35:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F10BAE08C6; Sat, 11 Apr 2015 08:35:07 +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 AD14DE08C6 for ; Sat, 11 Apr 2015 08:35:07 +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 D7B81340B03 for ; Sat, 11 Apr 2015 08:35:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2C48115ADA for ; Sat, 11 Apr 2015 08:35:04 +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: <1428741270.49a9bef7301f3ad20771f365eef3d4b4a68a2c33.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: 49a9bef7301f3ad20771f365eef3d4b4a68a2c33 X-VCS-Branch: nginx Date: Sat, 11 Apr 2015 08:35:04 +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: 5cfa381e-e3d9-4efb-b66f-a55a821a9a97 X-Archives-Hash: 5aa359baa2ce7a5d838750cf5b48a3aa commit: 49a9bef7301f3ad20771f365eef3d4b4a68a2c33 Author: Jason Zaman perfinion com> AuthorDate: Sat Apr 11 08:05:19 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Apr 11 08:34:30 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=49a9bef7 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) + ') +')