# 3/9~3/12 任務 ## (1) 如何 外掛 device drivers 1.打開Software & Updates 2.選擇Additional Drivers ## (2) 如何 改寫 configuration 檔,並重新re-compile the kernel * #### 1.get linux kernel source code * ```$ wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.1.tar.xz``` * #### 2.extract tar.xz.file * ```$ unxz -v linux-5.4.1.tar.xz``` * #### 3.configure the linux kernel features and modules * ```$ cd linux-5.4.1``` * ```$ cp -v /boot/config-$(uname -r) .config``` * #### 4.configuring the kernel * ```$make menuconfig```  這邊就可以選自己想要features * #### 5.compile a linux kernel * ```$ make``` * ```$ sudo make modules_install``` * ```sudo make install``` * #### 6.update grub config * ```sudo grub-mkconfig -o /boot/grub2/grub.cfg``` * ```sudo grubby --set-default /boot/vmlinuz-5.4.1``` ## (3) 找出 系統裡有哪些 log 檔,以及各放在甚麼資料夾下。 * ### var/log: * alternatives.log * auth.log * bootstrap.log * dpkg.log * fontconfig.log * gpu-manager.log * kern.log * vmware-nework.log * vmware-vmsvc.log * xorg.0.log ## (4) 何謂 Linux Security Module (LSM)? Please study it well * 是linux kernel中電腦安全的軟體架構 * 提供Mandatory access control * LSM 有hook 可以存取internal kernel object * LSM 提供standard loadable module interface for security enhancements
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up