[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fedora-selinux-list
Subject:    Question
From:       Jonathan Aquilina <jaquilina () eagleeyet ! net>
Date:       2020-04-12 19:15:36
Message-ID: AM6PR08MB3927CFD9AFED572A8916BF89A0DC0 () AM6PR08MB3927 ! eurprd08 ! prod ! outlook ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

Hi guys i have a question regarding SEL.
I have a VM that is on centos 7 and before I had an issue with wordpress where it was \
in read only mode and i ran chcon -R unconfined_u:object_r:httpd_sys_rw_content_t:s0 \
/var/www/html/wordpress

to put it in read write mode for me to update the site

I then ran

restorecon -rv /var/www/html to restore things to the way they are.

since then i have not had to run the commands again to update the site with any other \
updates

what exactly is happening

Regards,
Jonathan


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB">H</span>i guys i have a question regarding \
SEL<span lang="EN-GB">.<o:p></o:p></span></p> <p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-GB">I</span> have a VM that is on centos 7 and \
before I had an issue with wordpress where it was in read only mode and i ran \
<o:p></o:p></p> <p class="MsoNormal">chcon -R \
unconfined_u:object_r:httpd_sys_rw_content_t:s0 /var/www/html/wordpress \
<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">to put it in read write mode for me to update the \
site<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-GB">I</span> then ran <o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">restorecon -rv /var/www/html to restore things to the way they \
are.<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">since then i have not had to run the commands again to update \
the site with any other updates<o:p></o:p></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> <p class="MsoNormal">what exactly is \
happening<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-GB">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Jonathan<o:p></o:p></span></p>
</div>
</body>
</html>


[Attachment #4 (unknown)]

_______________________________________________
selinux mailing list -- selinux@lists.fedoraproject.org
To unsubscribe send an email to selinux-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/selinux@lists.fedoraproject.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic