evbruk/cs3013_project2
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Eva Bruklich & Noah Parker ebruklich & nparker This is the re-submission for Project 2. For Part 1: test_document.txt and test_document_nozoinks.txt were used to test the effectiveness of part1. the "test" executable (built from test.c) automatically tests with those files. How to Build Program: To build the program, simply "make". After making it, type in "sudo insmod ancestry_kernel_module.ko" in order to satisfy Part 2. For part 1 type in "sudo insmod module_combined.ko". How to Test Program: Build the procAncenstry tool by typing "gcc -o procAncestry procAncestry.c" and then run the program and supply a PID as a command line argument. Below is an example of our procAncestry executable. Evidence of testing and Logs: Example execution of our procAncestry executable: ./procAncestry 1411 calling system call.... Ancestors: PID: 1024 PID: 1013 PID: 821 Children: PID: 195 PID: 236 PID: 287 PID: 651 PID: 668 PID: 670 PID: 673 PID: 674 PID: 696 PID: 704 PID: 713 PID: 716 PID: 738 PID: 739 PID: 801 PID: 804 PID: 821 PID: 1019 PID: 1301 PID: 1398 PID: 1427 PID: 1527 PID: 1602 PID: 1617 Siblings: PID: 1397 PID: 1407 PID: 1458 PID: 1508 PID: 1522 PID: 1545 PID: 1561 PID: 1569 PID: 1586 PID: 1648 PID: 1682 PID: 1704 PID: 1717 PID: 1693 PID: 1716 PID: 1692 PID: 1752 PID: 2171 PID: 5244 PID: 0 PID: 1107 PID: 1112 PID: 1124 PID: 1143 PID: 1165 PID: 1175 PID: 1176 PID: 1177 PID: 1180 PID: 1186 PID: 1193 PID: 1198 PID: 1214 PID: 1222 PID: 1247 PID: 1262 PID: 1264 PID: 1276 PID: 1283 PID: 1327 PID: 1333 PID: 1334 PID: 1335 PID: 1336 PID: 1337 PID: 1338 PID: 1352 PID: 1354 PID: 1387 Success! EXAMPLE SYSLOG OUTPUT: Mar 4 21:27:09 noah-VirtualBox kernel: [ 740.121706] Loaded interceptor!<6>[ 748.897485] PID: 1024 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897489] PID: 1013 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897491] PID: 821 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897492] PID: 1 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897494] Child traversed. pid: 195 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897495] Child traversed. pid: 236 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897496] Child traversed. pid: 287 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897497] Child traversed. pid: 651 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897499] Child traversed. pid: 668 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897500] Child traversed. pid: 670 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897501] Child traversed. pid: 673 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897502] Child traversed. pid: 674 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897503] Child traversed. pid: 696 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897504] Child traversed. pid: 704 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897506] Child traversed. pid: 713 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897507] Child traversed. pid: 716 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897508] Child traversed. pid: 738 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897510] Child traversed. pid: 739 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897511] Child traversed. pid: 801 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897512] Child traversed. pid: 804 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897513] Child traversed. pid: 821 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897514] Child traversed. pid: 1019 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897515] Child traversed. pid: 1301 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897517] Child traversed. pid: 1398 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897518] Child traversed. pid: 1427 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897519] Child traversed. pid: 1527 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897520] Child traversed. pid: 1602 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897521] Child traversed. pid: 1617 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897523] Child traversed. pid: 1859 Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897528] Copying to user space... Mar 4 21:27:09 noah-VirtualBox kernel: [ 748.897529] Copied! Returning...