Kernel Bug Tracker – Bug 10193
rlocate has been locked out
Last modified: 2008-03-09 14:46:07 UTC
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.)
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
but does not seem to have made it to the kernel tree, so it may be unsafe to
With a kernel compiled with that option rlocate should work unpatched.
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.