On Wed, Feb 23, 2011 at 12:38 AM, Scott Gifford <span dir="ltr">&lt;<a href="mailto:sgifford@suspectclass.com">sgifford@suspectclass.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Tue, Feb 22, 2011 at 9:00 AM, Daniel J Walsh <span dir="ltr">&lt;<a href="mailto:dwalsh@redhat.com" target="_blank">dwalsh@redhat.com</a>&gt;</span> wrote:<br></div><div class="gmail_quote"><div class="im">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 02/21/2011 10:19 PM, Scott Gifford wrote:</div></blockquote></div><div>[ ... ] </div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div></div>


<div>
&gt; Yeah, true, but I&#39;m not sure how to cause them to have no category<br>
&gt; either, apart from using setxattr.<br>
&gt;<br>
</div>I think if you do the file context correctly you can run restorecon -F<br>
to fix the label.  If your CGI were in Code or python, you could use<br>
setfscreatecon, to set the label automatically.<br></blockquote><div><br></div></div><div>My code is in Perl,</div></div></blockquote><div><br></div><div>Also, are these the python bindings you&#39;re talking about above?</div>

<div><br></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div class="gmail_quote"><div><a href="http://sourceforge.net/projects/python-selinux/">http://sourceforge.net/projects/python-selinux/</a></div>

</div></blockquote><div class="gmail_quote"><div><br></div><div>Those functions would be pretty easy for me to port to perl, if this would be useful to anybody else.</div><div><br></div><div>-----Scott.</div><div><br></div>

</div>