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