On 01/22/2010 06:15 AM, Moray Henderson wrote: > George Henrique Silva wrote: > Hello all, > > > > I am trying to find out how the autorelabel process works. > > I am searching in linux Kernel code version 2.6.14 > > I am also trying to find the autorelabel code in the sysvinit-2.86. > > > > My target is to find the process which triggers the autorelabel process > from the flag-file /.autorelabel or who receives the kernel boot > argument autorelabel=1 > > > > Is autorelabel related to SELinux only, or is it another module from > Linux? > > > > Best Regards > > > > On RHEL 5, at least, it’s handled by /etc/rc.d/rc.sysinit. That checks > for the /.autorelabel file or kernel command line option, and runs the > relabel process. > > > > > > Moray. > "To err is human. To purr, feline" > > > > > > -- > selinux mailing list > selinux@xxxxxxxxxxxxxxxxxxxxxxx > https://admin.fedoraproject.org/mailman/listinfo/selinux It is in /etc/rc.sysinit # grep autorelabel /etc/rc.sysinit rm -f /.autorelabel rm -f /.autorelabel if [ -f /.autorelabel ] || strstr "$cmdline" autorelabel ; then if [ -f /.autorelabel ] || strstr "$cmdline" autorelabel ; then [ -f /.autorelabel ] || touch /.autorelabel -- selinux mailing list selinux@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/selinux