<div class="gmail_quote">On Sun, Dec 11, 2011 at 2:49 PM, Arthur Dent <span dir="ltr">&lt;<a href="mailto:misc.lists@blueyonder.co.uk">misc.lists@blueyonder.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hello all,<br>
<br>
When I get a SEL alert it refers only to to the actual directory and not<br>
the full pathname. For example:<br>
<br>
SELinux is preventing /usr/sbin/smbd from create access on the directory 05.<br>
<br>
The advice for fixing this alert is probably useful but without knowing<br>
the full path is actually completely useless:<br>
<br>
If you want to allow smbd to have create access on the 05 directory<br>
Then you need to change the label on &#39;05&#39;<br>
Do<br>
# semanage fcontext -a -t samba_share_t &#39;05&#39;<br>
# restorecon  -v &#39;05&#39;<br>
<br>
The problem is - I don&#39;t know where directory &quot;05&quot; is. It&#39;s probably<br>
some temporary cache file or some such and trying to even find its<br>
parent directory with a name like &quot;05&quot; makes using &#39;locate&#39; or &#39;find&#39;<br>
really quite hard work.<br>
<br>
In this case the alert(s) (there were several - each with a different<br>
numerical directory name) were actually caused when I tried to sync my<br>
iPhone using iTunes installed on a Windows XP virtual machine running<br>
under VirtualBox on this Fedora 16 host, accessing the music library via<br>
a Samba share on a separate partition on the Fedora 16 box.... Yeah... I<br>
know....<br>
<br>
But anyway - if I could find the full path of the directory in question<br>
I *might* be able to take a closer look at where the problem lies...<br>
<br>
Thanks in advance for any help or suggestions.<br>
<br>
Mark<br>
<br>
<br></blockquote><div>In this post Dan Walsh describe the issue, and the resolutions, in more details.<br><br>hth<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
--<br>
selinux mailing list<br>
<a href="mailto:selinux@lists.fedoraproject.org">selinux@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/selinux" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/selinux</a><br></blockquote></div><br>