Another perplexity: lost+found
Dominick Grift
dominick.grift at gmail.com
Thu Nov 14 22:53:50 UTC 2013
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?
>
> mark
# 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/.*"
restorecon -R -v -F /export/1/lost+found
More information about the selinux
mailing list