Le 18/05/2026 à 16:40, Hans a écrit :
Dear list,
on my debian/stable there is a folder named ".autorelabel" in /, which is a
symlink to /usr/sbin.
As far as I read, this is related to SElinux, but I could not find out, what it
is used for.
As far as I understood, this is some relabeling after a reboot.
Question:
Is it recommended to delete this link?
After rebot it is still there. Is this correct?
Does it make the system unsecure, when this link still exists after reboot?
When is this link created (normal behaviour, by accident, by failute?)?
Thanks for any answer and explanation. Can be short!
Best
Hans
Hello,
(I do not use SELinux and am not knowledgeable on this subject)
there is an explanation about this file here:
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/5/html/deployment_guide/sec-sel-fsrelabel
From what I understand it should be automatically destroyed after
having triggered the relabeling.
But that supposes that SELinux is actually used (by default Debian uses
AppArmor instead).
Possibly the existence of this file on your system could indicate that
you intended to use SELinux or have used SELinux at some point but
reversed to Apparmor.
If you don't use SELinux it is safe to remove this file.