Portál AbcLinuxu, 13. prosince 2025 14:30
These instructions assume you know how to configure, build and install
Linux kernels. If not, please consult the README and Documentation
files in your kernel sources.
When you configure the 2.6 kernel, you need at least these options.
CONFIG_MODULES=y
CONFIG_SECURITY=y
CONFIG_SECURITY_CAPABILITIES=m
CONFIG_SECURITY_SELINUX=y
You probably also want CONFIG_MODULE_UNLOAD=y, so the LSM can be
unloaded. Reloading is currently the only way to change parameters.
Note that CONFIG_SECURITY_CAPABILITIES *must* be a module. If it is
configured directly into the kernel ("=y"), the realtime LSM will not
work.
Compile the kernel and its modules in the usual way. This need not be
done as `root', but does require write access to the kernel build
tree.
$ make bzImage
$ make modules
Don't forget (as root) to install the kernel `bzImage' in some
appropriate place, update /etc/lilo.conf, and run `lilo'.
Unpack the LSM.
$ tar xvzf realtime-lsm-${version}
$ cd realtime-lsm-${version}
If `/usr/src/linux' does not point to your kernel sources, set the
appropriate KERNEL_DIR in the Makefile or pass it as an argument to
make. Now build the LSM and install all the kernel modules. The make
can be done by any user, but does require write access to the kernel
build tree.
$ make KERNEL_DIR=/usr/src/linux-2.6.6
$ sudo make install
The install requires root authority. For 2.6.5 and earlier kernels
this also recreates the entire /lib/modules/2.6.x subdirectory. If
that already exists, you might want to save it under a different name
first, just to be safe.
For 2.6.6 and later kernels, make install only writes `realtime.ko' to
the `extras' subdirectory. So, you still need to go back to the
kernel directory and install the remaining modules...
$ cd /usr/src/linux
$ sudo make modules_install
make menucofig a zaskrnout si to co potrebujes.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.