<p><br>
On Jul 3, 2011 5:38 PM, &quot;Paul Allen Newell&quot; &lt;<a href="mailto:pnewell@cs.cmu.edu">pnewell@cs.cmu.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; On 7/3/2011 12:53 AM, Cameron Simpson wrote:<br>
&gt; &gt; On 02Jul2011 22:26, Paul Allen Newell&lt;<a href="mailto:pnewell@cs.cmu.edu">pnewell@cs.cmu.edu</a>&gt;  wrote:<br>
&gt; &gt; | On 7/2/2011 10:06 PM, Joe Zeff wrote:<br>
&gt; &gt; |&gt;  On 07/02/2011 09:45 PM, Cameron Simpson wrote:<br>
&gt; &gt; |&gt;&gt;  That should be the case. (Of course, SELinux can break anything - if you<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; You can put it into non-enforcing mode on the fly with the command:<br>
&gt; &gt;<br>
&gt; &gt;    setenforce 0<br>
&gt; &gt;<br>
&gt; &gt; Run &quot;setenforce 1&quot; to turn it back on.<br>
&gt; &gt;<br>
&gt;<br>
&gt; That seemed to do it ... wrapping the clamscan in setenforce=0 /<br>
&gt; setenforce=1 produced scans of all files and no errors. Many thanks for<br>
&gt; the advice on how to do.<br>
&gt;<br>
&gt; Of course, your comment in other email about &quot;if you can establish that<br>
&gt; disabling selinux makes it work&quot;, I sure got alot of barking from<br>
&gt; selinux and guess I need to learn all about rules for it.<br>
&gt;<br>
&gt; Total of 355 errors regarding &quot;read&quot;, &quot;getattr&quot;, &quot;search&quot;, &quot;open&quot;, and<br>
&gt; &quot;write&quot;. It appears that it is related to files/binaries/whatever in<br>
&gt; /bin, /sbin, and ~root (maybe /tmp?). I need to do some further<br>
&gt; debugging to confirm this (and to reduce the testing to something<br>
&gt; manageable)<br>
&gt;<br>
&gt; The suggestions the pop-up gives me are for &quot;allow this access for now&quot;<br>
&gt; as opposed to something more permanent.<br>
&gt;<br>
&gt; Before I go starting to learn about selinux rules, I wanted to check<br>
&gt; whether my sense that &quot;if I do a setenforce=0 then I would expect<br>
&gt; selinux to be disabled until setenforce=1; hence, why does it need rules<br>
&gt; when disabled&quot; is a proper way to look at it.<br>
&gt;<br>
&gt; And, yes, my security stance is such that I don&#39;t mind a temporary<br>
&gt; disable while clamscan is running, I would rather not permanently<br>
&gt; disable selinux.<br>
&gt;<br>
&gt; Thanks in advance,<br>
&gt; Paul<br></p>
<p>it really is bad form to run a script out of root&#39;s home directory. Perhaps put it in /usr/sbin , restorecon, and leave selinux enforcing the whole time. </p>
<p>-paul</p>