HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT
Week 09 Assignments #3: Modules
- Read:
- Z910-SP0-MEMO.txt
- Z910-SP1-USER.txt
- Z910-SP2-ROOT.txt
- Z910-SP3-KERN.txt
- Assignment:
- (root) Write kernel log to file WEEK09-KERNEL-LOG.txt
- (root) Change owner file WEEK09-KERNEL-LOG.txt
- (user) COPY the result to SP_RESULT/W09/WEEK09-KERNEL-LOG.txt
tail -f /var/log/kern.log | grep --line-buffered ' ZCZC ' | tee WEEK09-KERNEL-LOG.txt
- Tainted Kernel Check (ROOT)
- BIT 12=1 (4096) means: ‘Externally-built (“out-of-tree”) module was loaded’
for i in $(seq 18); do echo $(($i-1)) $(($(cat /proc/sys/kernel/tainted)>>($i-1)&1));done