Delivered-To: lists@colorremedies.com Received: by 2002:a05:6000:1083:0:0:0:0 with SMTP id y3csp2474437wrw; Sat, 19 Sep 2020 14:56:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVKVz+BmWllQxhIjsva7DRAi+B16YaPs+CzVAJ6taz2COHPomCUf1MFEV/bSiHyrrcjgJE X-Received: by 2002:a17:906:4f0d:: with SMTP id t13mr3910743eju.33.1600552579811; Sat, 19 Sep 2020 14:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600552579; cv=none; d=google.com; s=arc-20160816; b=doWI2gbfP0nmg182MF7qYbrhWeb0omne6N5s03cYH8uxOSz+PCTU1pMJUZlPib9aaS OBzKmJ4omhxhdp7L0mOADJtY+3q7+55UzCeYZ4acJJNZHT8ong+xhFbi3ZtFBlM+Ayxd +CiAbPEYTA5QwkH06Zt2pu/VnAZ0tFiduADGhG22ywrYfepgKYeB9HlZT/obhpFWWkC2 VR4q91UKaX/PIZecyVLus5bGIg3OdlmpNO/e7IMMeP1vawfx6yOsLwqpxX4TVv17TYfR WbK6SUNp+4fiv9uaPKOLukBVGuZcFrSALAup1NcLmBt1rj73ATimtMJE8r2re6WQAJj0 l4JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-post:list-help:list-archive :archived-at:list-id:reply-to:precedence:message-id-hash:references :mime-version:subject:message-id:to:from:date:dkim-filter; bh=IrFE2dPlUMsaxE98RQtfWWBm6U7kfp/Jq04XuyXZVv8=; b=Qa18IVjYxTYjUunkYalVZDiQBhKRLng3WaRfQo9In+2pRq4eVJxKHc28Ub4oYH4Fzm xd8RiHbjKEgSKP0eiqP+X5hfPsoN7laBpXrLjvfN8dHtisRNwReUHkwnbzIEagQo3jiV 1aC6rOMoxsba0DxanODIZg2pqXBDpm/Q2M6BnMgW1VG0MzS0UOPF1bG0O/H5dp63t6RZ SC/oLeveZRSBJP3lvNKWqSoG13d8SgDw1EYC3o8ndCRTOi7Cra6sCKVJvFdb7HXwXpSk U2lq8O+cbdfRRNb3XoWziqMZ1PampS2RhohiCVB0zGEnqwItWY0BxEekG6Zt1oepnNm9 Axkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of selinux-bounces@lists.fedoraproject.org designates 38.145.60.11 as permitted sender) smtp.mailfrom=selinux-bounces@lists.fedoraproject.org; dmarc=fail (p=REJECT sp=REJECT dis=QUARANTINE) header.from=yahoo.com Return-Path: Received: from bastion.fedoraproject.org (bastion-iad01.fedoraproject.org. [38.145.60.11]) by mx.google.com with ESMTPS id pv7si5419015ejb.753.2020.09.19.14.56.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Sep 2020 14:56:19 -0700 (PDT) Received-SPF: pass (google.com: domain of selinux-bounces@lists.fedoraproject.org designates 38.145.60.11 as permitted sender) client-ip=38.145.60.11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of selinux-bounces@lists.fedoraproject.org designates 38.145.60.11 as permitted sender) smtp.mailfrom=selinux-bounces@lists.fedoraproject.org; dmarc=fail (p=REJECT sp=REJECT dis=QUARANTINE) header.from=yahoo.com Received: from mailman01.iad2.fedoraproject.org (mailman01.iad2.fedoraproject.org [10.3.163.57]) by bastion01.iad2.fedoraproject.org (Postfix) with ESMTP id C34C130A08CE; Sat, 19 Sep 2020 21:56:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 bastion01.iad2.fedoraproject.org C34C130A08CE Received: from mailman01.iad2.fedoraproject.org (localhost [IPv6:::1]) by mailman01.iad2.fedoraproject.org (Postfix) with ESMTP id A2F7A75F19716; Sat, 19 Sep 2020 21:56:18 +0000 (UTC) Received: by mailman01.iad2.fedoraproject.org (Postfix, from userid 991) id 28DCE75F19718; Sat, 19 Sep 2020 21:56:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mailman01.iad2.fedoraproject.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE autolearn=disabled version=3.4.0 Received: from smtp-mm-cc-rdu01.fedoraproject.org (smtp-mm-cc-rdu01.vpn.fedoraproject.org [192.168.1.55]) by mailman01.iad2.fedoraproject.org (Postfix) with ESMTP id 40A1475F19717 for ; Sat, 19 Sep 2020 21:56:12 +0000 (UTC) Received: from sonic313-14.consmr.mail.bf2.yahoo.com (sonic313-14.consmr.mail.bf2.yahoo.com [74.6.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by smtp-mm-cc-rdu01.fedoraproject.org (Postfix) with ESMTPS id 220FF306A3A7 for ; Sat, 19 Sep 2020 21:56:12 +0000 (UTC) X-YMail-OSG: wMMvh7oVM1kmjQOrevOXINBUgUgp3pyabsQX3HtX8LCoUkJs0el14JMfebvAeK0 I428jPiuVOPi39__0rbmHu1PLZ97atGnWDDCXSLEEmVe_c.JBBUcEqBUPko4TzVkD0bVJP_UX3r2 ppbgX5yRswFJffa0jW7MWGqkz1hdDSAVDJideigrjEC0EItgi521ZVX.o6UmTwj6QIVAmqmd5N4V o8auYQjGUDhQc0HbYvG9LrLmLCYn8InVEehr.JCGvPpcfT.XnJ6ZIA58F25irMKTSGhe.scG__D5 UbW734yOtYcOweRjfOfWITKwgbOxNWqQizgX.qvv.fKDEnO1nBCHzrtqld4mXLlNJRmCPCzZztF1 YDSsjiNXpeiXg2kZafZHHZEABBwoDXT3HA9OEaG9x_rftSo1v62CSurWOW0VGeZvUstcZJJf.LYM ln5fd8SODq6bNYdJ5Yh_.ci6b89MYKrgYIK8eddpZ3eZoXW2qJPzSuEFJIAoqhzuwh5vIQieu45M Vv1iho.VQiAY8V8dcCXdjGL1pI1pWrKuY66KvlYxWvSebAgqaOFN4IITd1yKxwF4E9Ge01LvzOdO zE1ScWflsvb5e4CrbSQvWIDmctHXJvPeQbVpCRD7Ios.sUfxcS8rjopIwBKW_FZ510Cm51WgEjMz RlJ4DWVgsQFGTSVsa1UNJFmWgodCz1Uz6g7DkVS6W_xiW4zQeMnxnbOyLkhWpu0UY.ricHTpUkeE sNY1.uxaTegYuKfDWtL.JJnHmOutRYXIzxHlVXx79chK9C6ZiejcssuVhk43QVGZEI78kN14kvsg 7Vx.F260aGdFeWwiA4VNZELguAvm7_Ib4qfpd3JieMkw.7YeR.Wz0Zri7WV3y3OlupBRGdhzOM.C ruF9Rq2YxNzp.V.AAZPWFWGyyEwYFHvZPDyBfWOcXrX3BosjnIYMxJdUdGgTvDjcg.ZArhy0SNcN nVHgCuqNZcyi5OdupoPMKjQAOrqG9UHss8pc6ZqucvJZjNifwgSuktbZHi2u_Czli.BAXVC6RMRD OEfaZDNqFr_dQDH7qJ5ikeJqUz0tOGumwwzSA3X2d5OdUfMqYvaNSUCKPmjjtjm9DF7cegrBMCZS QAlG1w6mjH0V4O7La5cao8_vcoBlU1r7th.d2b9FPhwUa.fTI1cz1ZMqFHokK1Py8t2cm2qz7wvQ UyUVc.QQ5_iR.N3veFF.WtYWuPFMKMr_IsgSRko8XXACiDNCF7UNhqvNewGMKY.csav_TvKl7Bll 7PUR3jNEOefT9dNQdDXIs7.WlvEEU33ltKu78JxFNxLMtiU4FlQFjkXvojskPR.MJZxendyaQcjs vIhFOMq92.ASQPlhcret5O2bCjEdCfyGp4QvvDU3QK2GxBpRjrjbmIXSIZJXu9J3ag5akmapjqvP uZ1fzMPtkzz6KxmaUH_o8DMy7UmXEYNkWi2H3wAW1fvJXO1jVE3J7_RoCFOclRsz9joYJIr0uy4q ITsPhyAHvM5afAdW.5TfE2UBQ0d0sEQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.bf2.yahoo.com with HTTP; Sat, 19 Sep 2020 21:56:11 +0000 Date: Sat, 19 Sep 2020 21:56:04 +0000 (UTC) From: Jason Long To: SELinux On Fedora Discussion Message-ID: <1264724349.3954886.1600552564979@mail.yahoo.com> Subject: Is my SELinux configuration wrong and dangerous? MIME-Version: 1.0 References: <1264724349.3954886.1600552564979.ref@mail.yahoo.com> X-Mailer: WebService/1.1.16583 YahooMailAndroidMobile YMobile/1.0 (com.yahoo.mobile.client.android.mail/6.11.4; Android/7.1.1; NMF26F; bbc100; BlackBerry; BBC100-1; 5.16; 1184x720;) Message-ID-Hash: 5C5RVSVMG2H4LOPELMPQKSFIJDOHF5CQ X-Message-ID-Hash: 5C5RVSVMG2H4LOPELMPQKSFIJDOHF5CQ X-MailFrom: hack3rcon@yahoo.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.1.1 Precedence: list Reply-To: Jason Long List-Id: "Fedora SELinux support list for users & developers." Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============7580811246750935028==" --===============7580811246750935028== Content-Type: multipart/alternative; boundary="----=_Part_3954885_1350769752.1600552564978" ------=_Part_3954885_1350769752.1600552564978 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello,I'm using CentOS 8 as a web server that hosting a WordPress website. = I have two questions.=C2=A01- I defined SELinux for WordPress directory as = below: # ls -lZ /var/www/drwxrwxr-x. 7 apache apache unconfined_u:object_r:httpd_s= ys_rw_content_t:s0 4096 Sep 19 23:37 wp I created an account for a remote developer that working on WordPress. On s= ome websites, I saw that the OK permission forwp directory is "httpd_sys_r_= content_t" and not "httpd_sys_rw_content_t" and someone recommended to back= permission via below command: # restorecon -rv /var/www/wp Is it true? Is "httpd_sys_rw_content_t" a dangerous permission and can lead= to hacking? 2- WordPress can't update and showed me "cURL Error (7): couldn't connect t= o host" error. I did below command to solve it: # setsebool -P httpd_can_network_connect on Can this command make Apache insecure and must I turn it to "off" ? Thank you. ------=_Part_3954885_1350769752.1600552564978 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello,
I'm using CentOS= 8 as a web server that hosting a WordPress website. I have two questions.&= nbsp;
1- I define= d SELinux for WordPress directory as below:

# ls -lZ /var/www/
drwx= rwxr-x. 7 apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 4= 096 Sep 19 23:37 wp

I created an account for a remote developer that working = on WordPress. On some websites, I saw that the OK permission for
= wp directory is "httpd_sys_r_content_t" and not "httpd_sys_rw_content_t" an= d someone recommended to back permission via below command:

# restorecon -rv = /var/www/wp

<= /div>
Is it true? Is "h= ttpd_sys_rw_content_t" a dangerous permission and can lead to hacking?

2- WordPress can't update and sho= wed me "cURL Error (7): couldn't connect to host" error. I did below comman= d to solve it:
# setsebool -P= httpd_can_network_connect on

Can this command make Apache insecure and must I turn it to "off" ?
<= div id=3D"yMail_cursorElementTracker_1600552548950">

Thank you.
------=_Part_3954885_1350769752.1600552564978-- --===============7580811246750935028== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18Kc2VsaW51eCBt YWlsaW5nIGxpc3QgLS0gc2VsaW51eEBsaXN0cy5mZWRvcmFwcm9qZWN0Lm9yZwpUbyB1bnN1YnNj cmliZSBzZW5kIGFuIGVtYWlsIHRvIHNlbGludXgtbGVhdmVAbGlzdHMuZmVkb3JhcHJvamVjdC5v cmcKRmVkb3JhIENvZGUgb2YgQ29uZHVjdDogaHR0cHM6Ly9kb2NzLmZlZG9yYXByb2plY3Qub3Jn L2VuLVVTL3Byb2plY3QvY29kZS1vZi1jb25kdWN0LwpMaXN0IEd1aWRlbGluZXM6IGh0dHBzOi8v ZmVkb3JhcHJvamVjdC5vcmcvd2lraS9NYWlsaW5nX2xpc3RfZ3VpZGVsaW5lcwpMaXN0IEFyY2hp dmVzOiBodHRwczovL2xpc3RzLmZlZG9yYXByb2plY3Qub3JnL2FyY2hpdmVzL2xpc3Qvc2VsaW51 eEBsaXN0cy5mZWRvcmFwcm9qZWN0Lm9yZwo= --===============7580811246750935028==--