Mandrake 10.1 Dazuko HOWTO By Scott Grayban (sgraybanATborgnet.us) ------------------------------------------------------------------------------------------------------------------------------------------ This HOWTO licensed under the GNU FDL. http://www.gnu.org/licenses/fdl.txt ------------------------------- This HOWTO is for ANY Mandrake kernel installed. As of writing this HOWTO was written using the 2.6.8.1-24mdk version but as stated it can be used for any kernel installed. ------------------------------- Prerequisite: Have pico, vi, nano, or joe installed and know how to use them. Basic knowledge on compiling. -------------------------------- 1) Make sure you have downloaded the kernel-source from urpmi first. urpmi kernel-source <<---- will install the current kernel's source 2) cd /usr/src/linux # make menuconfig Security options -> Enable different security modules [*] Security options -> Default Linux Capabilities exit, saving changes # make && make modules_install && make install **** NOTE -- I highly suggest you edit the Makefile's first few lines and name the new kernel to something other then the default ones below. ************* EXTRAVERSION = .1-24mdkcustom NAME=My Kernel Name ************* Change the 'mdkcustom' to something you wish For example mine is the following: EXTRAVERSION = .24Borg NAME=Borg Security 3) Edit /etc/modprobe.preload and add to the top the following: # /etc/modprobe.preload: kernel modules to load at boot time. # commoncap dazuko capability 4) Reboot into the new kernel 5) (build dazuko) # cd # ./configure # make (install dazuko kernel module) # cp dazuko.ko /lib/modules/`uname -r`/kernel/security # depmod -a 5) Reboot into the new kernel 6) (load Dazuko) ***** If you didn't add it to modprobe.preload # modprobe dazuko 7) (create Dazuko device) ***** If you didn't add it to modprobe.preload # mknod -m 600 /dev/dazuko c `grep dazuko /proc/devices | sed "s/ .*//"` 0 **** Important Note **** capability & commoncap MUST BE loaded or bind will NOT start since it uses the 'capset' function **** AntiVir note If you are installing the avguard choose (k) for the type of dazuko module since its loaded at boot time.