SElinux relabeling in /var
James Morris
jmorris at redhat.com
Tue Feb 15 21:27:18 UTC 2005
On Tue, 15 Feb 2005, Pete Zaitcev wrote:
> Hi, Guys:
>
> I have FC3 here. I've rebooted once with a kernel without SELinux once by
> mistake, and ever since then I'm getting this:
>
> [root at localhost USBMon]# logrotate -f /etc/logrotate.conf
> error: error getting file context /var/log/cups/access_log: No data available
> .....
>
> The strace output looks like this:
>
> getxattr("/var/log/cups/access_log", "security.selinux", 0x8054cc8, 255) = -1 ENODATA (No data available)
> write(2, "error: ", 7) = 7
> write(2, "error getting file context /var/"..., 71) = 71
>
> So, obviously I blew away some attributes. How do I recover them?
restorecon -R
- James
--
James Morris
<jmorris at redhat.com>
More information about the fedora-list
mailing list