关于Linux内核安全入侵侦察系统的使用问题


  简单介绍Linux内核安全入侵侦察系统中介绍了Linux系统暴露的问题,和入侵侦察系统的特点,那么我们怎么来完成一个相对相对高级别的Linux内核安全。

  下载LIDS补丁和相关正式的Linux内核

  可以从LIDS Home,LIDS Ftp Home或最近的LIDS Mirror获得LIDS补丁和系统管理工具。

  补丁名称是lids-x.xx-y.y.y.tar.gz, x.xx代表lids的版本, y.y.y代表Linux内核版本.例如, lids-0.9.9-2.2.17.tar.gz代表lids 版本是0.9.9 以及相关的内核版本是2.2.17.。

  必须下载相关的内核版本。例如,你下载了lids-0.9.9-2.2.17.tar.gz,那你就应该下载Linux内核2.2.17的原代码。可以从Kernel FTP Site或其他镜象获得内核原码。

  然后,将内核原码和LIDS tar解压.例如,从 www.lids.org得到lids-0.9.9-2.2.17.tar.gz,从ftp.us.kernel.org得到linux-2.2.17.tar.bz2后: 1. uncompress the Linux kernel source code tree.# cd linux_install_path/# bzip2 -cd linux-2.2.17.tar.bz2   tar -xvf -2. uncompress the lids source code and install the lidsadm tool.# cd lids_install_path# tar -zxvf lids-0.9.8-2.2.17.tar.gz

  在正式的linux内核上打LIDS补丁,Linux内核原码打LIDS补丁 # cd linux_install_path/linux# patch -p1/* link the default source path to lids patched version# rm -rf /usr/src/linux# ln -s linux_install_patch/linux /usr/src/linux

  配置Linux内核,现在,配置Linux内核,按照以下步骤实施: Prompt for development and/or incomplete code/driversSysctl supportAfter that, you will find that a new item appear in the bottom of the configuration menu name "Linux Intrusion Detection System". Entering this menu, turn the Linux Intrusion Detection System support (EXPERIMENTAL) (NEW).

  配置LIDS内核以后.退出配置界面,编译内核。 # make dep# make clean# make bzImage# make modules# make modules_install

  在Linux系统上安装LIDS和系统管理工具,复制 bzImage 到 /boot/ ,编辑 /etc/lilo.conf。 # cp arch/i386/boot/bzImage /boot/bzImage-lids-0.9.9-2.2.17/*build admin tools */# cd lids-0.9.8-2.2.17/lidsadm-0.9.8/# make# make install# less /etc/lilo.confboot=/dev/hdamap=/boot/mapinstall=/boot/boot.bprompttimeout=50default=linuximage=/boot/vmlinuz-2.2.16-3label=linuxread-onlyroot=/dev/hda2image=/boot/bzImage-lids-0.9.9-2.2.17label=devread-onlyroot=/dev/hda2

  运行/sbin/lilo 来安装新内核: # /sbin/lilo

  • 1
  • 2
  • 下一页

相关内容