April 2005
Intermediate to advanced
344 pages
11h 59m
English
To test the module, use the following makefile:
obj-m += hidepid.o
Compile using the following make command:
[notroot]$ make -C /usr/src/linux-`uname -r` SUBDIRS=$PWD modulesTest the module by executing ps to list the
sleep process we initiated earlier:
[notroot]$ ps a | grep 4781
4781 tty1 S 0:00 sleep 999999
6545 tty1 R 0:00 grep 4781Insert the module:
[root]# insmod ./hidepid.koNow, the sleep process is no longer visible:
[notroot]$ ps a | grep 4781
6545 tty1 R 0:00 grep 4781Remember to remove the module when done:
[root]# rmmod hidepidRead now
Unlock full access