Another perplexity: lost+found

Dominick Grift dominick.grift at gmail.com
Thu Nov 14 23:01:51 UTC 2013


On Thu, 2013-11-14 at 17:59 -0500, m.roth at 5-cent.us wrote:
> Dominick Grift wrote:
> > On Thu, 2013-11-14 at 17:38 -0500, m.roth at 5-cent.us wrote:
> >> CentOS 6.4
> >>
> >> I have *no* idea how this happened - I didn't build this box, but I've
> >> got two mounted filesystems, and lost+found on both of them is wrong.
> >>
> >> drwx------. root root system_u:object_r:usr_t:s0       lost+found
> >> semanage fcontext -a -t lost_found_t /export/1/lost+found
> >> restorecon -v /export/1/lost+found
> >> ll -Z /export/1
> >> drwx------. root root system_u:object_r:usr_t:s0       lost+found
> >>
> >> Clues for the poor?
> >
> > # semanage fcontext -l | grep lost
> > /boot/lost\+found                                  directory
> > system_u:object_r:lost_found_t:s0
> > /boot/lost\+found/.*                               all files
> > <<None>>
> > ...
> >
> > You probably needed to at least escape the +
> >
> > try:
> >
> > semanage fcontext -d -t lost_found_t /export/1/lost+found
> > semanage fcontext -a -t lost_found_t -f -d "/export/1/lost\+found"
> > semanage fcontext -a -t <<none>> "/export/1/lost\+found/.*"
> Didn't need the above - dunno why it didn't run, acted like it was waiting
> for a closing quote.
> 

maybe it should be:

semanage fcontext -a -t "<<none>>" "/export/1/lost\+found/.*"


> > restorecon -R -v -F /export/1/lost+found
> 
> WORKED! Thank you.
> 
>        mark
> 
> 
> 




More information about the selinux mailing list