Latest working kernel version: 2.6.23 Earliest failing kernel version: 2.6.24 Distribution: Gentoo / any Hardware Environment: any Software Environment: any Problem Description: rlocate relies on the functions mod_reg_security, register_security, which are no longer available to out-of-tree modules. (rlocate uses a kernel module to track changes to the file system. The gathered data is indexed in real time and can be searched using the well-known locate command.) From http://bugs.gentoo.org/show_bug.cgi?id=207421 Quote: It appears that there's no way to do this apart from changing the kernel itself - a patch to do this adding a new kernel configuration option "SECURITY_MODULAR" was offered in http://lkml.org/lkml/2007/10/23/3 but does not seem to have made it to the kernel tree, so it may be unsafe to use. With a kernel compiled with that option rlocate should work unpatched. End Quote Steps to reproduce: - Download rlocate-0.5.6 from http://rlocate.sf.net - Build on a system with >=2.6.24
It is not the purpose of the Linux kernel to provide an API for external modules. If functionality is missing in the kernel for implementing rlocate in userspace without an own module patches doing this should be submitted.