Fifth week of Linux security summary

Source: Internet
Author: User

First, the learning part

1. How do I add the command getegid,getegidasm I wrote to Menuos?

1. Force Delete Menu (RM menu-rf)

2. Update the menu code to the latest version (Git clone https://github.com/mengning/menu.git)

3. Add Menuconfig to the main function in test.c and add the code of your choice getegid,getegidasm last week

4, make roofts automatically compile, generate, and start the root file system

2.GDB Tracking System call function written by yourself Getegid,getegidasm

Debug kernel with GDB trace

Qemu-kernel LINUX-3.18.6/ARCH/X86/BOOT/BZIMAGE-INITRD Rootfs.img-s-S # Description of the-s and-s options:

#-S Freeze CPU at startup (with ' C ' to start execution)

#-S Shorthand for-gdb tcp::1234 If you do not want to use port 1234, you can use-GDB tcp:xxxx to replace the-s option

3. Open another Shell window

Gdb

(gdb) file Linux-3.18.6/vmlinux # Loading symbol table before Targe remote in GDB interface

(GDB) Target remote:1234 # Establish a connection between GDB and Gdbserver, press C to keep the Linux on qemu running

(GDB) Break Start_kernel # Breakpoint setting, note look for the corresponding system call Function name, for example the time command corresponds to Sys_time

Fifth week of Linux security summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.