From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2B12E158094 for ; Sat, 3 Sep 2022 20:04:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2A1D4E0874; Sat, 3 Sep 2022 20:04:53 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0BEDAE0874 for ; Sat, 3 Sep 2022 20:04:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 44E53340F95 for ; Sat, 3 Sep 2022 20:04:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7E9C95BF for ; Sat, 3 Sep 2022 20:04:50 +0000 (UTC) From: "Kenton Groombridge" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kenton Groombridge" Message-ID: <1662235470.10b3a91a0e7f0729cefb70ee4aa87eb862833b4a.concord@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/nginx.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: concord X-VCS-Committer-Name: Kenton Groombridge X-VCS-Revision: 10b3a91a0e7f0729cefb70ee4aa87eb862833b4a X-VCS-Branch: master Date: Sat, 3 Sep 2022 20:04:50 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4790fa77-0a43-4a99-8f0d-551cc6ad9ed9 X-Archives-Hash: c3fbb01c70fa82ff1fbca5b293090713 commit: 10b3a91a0e7f0729cefb70ee4aa87eb862833b4a Author: Kenton Groombridge gentoo org> AuthorDate: Fri Nov 12 01:24:50 2021 +0000 Commit: Kenton Groombridge gentoo org> CommitDate: Sat Sep 3 20:04:30 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=10b3a91a nginx: various fixes Various fixes for nginx, and also allow nginx to list and read user home content given that the httpd_read_user_content boolean is enabled. Signed-off-by: Kenton Groombridge gentoo.org> policy/modules/contrib/nginx.te | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/policy/modules/contrib/nginx.te b/policy/modules/contrib/nginx.te index 57e8ceb9..0c935bb6 100644 --- a/policy/modules/contrib/nginx.te +++ b/policy/modules/contrib/nginx.te @@ -119,8 +119,13 @@ domain_use_interactive_fds(nginx_t) files_read_etc_files(nginx_t) +auth_use_nsswitch(nginx_t) +logging_send_syslog_msg(nginx_t) + +miscfiles_read_generic_certs(nginx_t) miscfiles_read_localization(nginx_t) + sysnet_dns_name_resolve(nginx_t) optional_policy(` @@ -129,10 +134,16 @@ optional_policy(` apache_manage_log(nginx_t) ') +tunable_policy(`httpd_read_user_content',` + userdom_list_user_home_content(nginx_t) + userdom_read_user_home_content_files(nginx_t) +') + tunable_policy(`nginx_enable_http_server',` corenet_tcp_bind_http_port(nginx_t) apache_read_all_content(nginx_t) apache_manage_all_rw_content(nginx_t) + apache_list_sys_content(nginx_t) ') # We enable both binding and connecting, since nginx acts here as a reverse proxy @@ -159,6 +170,10 @@ tunable_policy(`nginx_can_network_connect',` corenet_tcp_connect_all_ports(nginx_t) ') +optional_policy(` + certbot_read_lib(nginx_t) +') + optional_policy(` phpfpm_stream_connect(nginx_t) ') From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4CB1C158021 for ; Wed, 12 Oct 2022 13:35:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03D56E0975; Wed, 12 Oct 2022 13:35:04 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E2812E0975 for ; Wed, 12 Oct 2022 13:35:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 11455340BEF for ; Wed, 12 Oct 2022 13:35:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0C009602 for ; Wed, 12 Oct 2022 13:35:00 +0000 (UTC) From: "Kenton Groombridge" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kenton Groombridge" Message-ID: <1662235470.10b3a91a0e7f0729cefb70ee4aa87eb862833b4a.concord@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:concord-dev 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: concord X-VCS-Committer-Name: Kenton Groombridge X-VCS-Revision: 10b3a91a0e7f0729cefb70ee4aa87eb862833b4a X-VCS-Branch: concord-dev Date: Wed, 12 Oct 2022 13:35:00 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1804276a-af5b-4a67-b8ea-1e2c9eec5c0b X-Archives-Hash: cff1a5cdfead18b71a96aa176c4f958c Message-ID: <20221012133500.E3ojr4W82EFgEAblH5P-qy0AwWEwx89at7Bv8T4GhHE@z> commit: 10b3a91a0e7f0729cefb70ee4aa87eb862833b4a Author: Kenton Groombridge gentoo org> AuthorDate: Fri Nov 12 01:24:50 2021 +0000 Commit: Kenton Groombridge gentoo org> CommitDate: Sat Sep 3 20:04:30 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=10b3a91a nginx: various fixes Various fixes for nginx, and also allow nginx to list and read user home content given that the httpd_read_user_content boolean is enabled. Signed-off-by: Kenton Groombridge gentoo.org> policy/modules/contrib/nginx.te | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/policy/modules/contrib/nginx.te b/policy/modules/contrib/nginx.te index 57e8ceb9..0c935bb6 100644 --- a/policy/modules/contrib/nginx.te +++ b/policy/modules/contrib/nginx.te @@ -119,8 +119,13 @@ domain_use_interactive_fds(nginx_t) files_read_etc_files(nginx_t) +auth_use_nsswitch(nginx_t) +logging_send_syslog_msg(nginx_t) + +miscfiles_read_generic_certs(nginx_t) miscfiles_read_localization(nginx_t) + sysnet_dns_name_resolve(nginx_t) optional_policy(` @@ -129,10 +134,16 @@ optional_policy(` apache_manage_log(nginx_t) ') +tunable_policy(`httpd_read_user_content',` + userdom_list_user_home_content(nginx_t) + userdom_read_user_home_content_files(nginx_t) +') + tunable_policy(`nginx_enable_http_server',` corenet_tcp_bind_http_port(nginx_t) apache_read_all_content(nginx_t) apache_manage_all_rw_content(nginx_t) + apache_list_sys_content(nginx_t) ') # We enable both binding and connecting, since nginx acts here as a reverse proxy @@ -159,6 +170,10 @@ tunable_policy(`nginx_can_network_connect',` corenet_tcp_connect_all_ports(nginx_t) ') +optional_policy(` + certbot_read_lib(nginx_t) +') + optional_policy(` phpfpm_stream_connect(nginx_t) ')