robgjansen / libkqtime

A library that tracks the queuing time of bytes traveling through the kernel.
Other
3 stars 1 forks source link

Redesign to reduce privilege requirements #2

Open robgjansen opened 9 years ago

robgjansen commented 9 years ago

libkqtime requires root privileges to be able to sniff packets to/from the network interface. libkqtime also runs as threads to the main application process. Because libqtime requires root, this means that the application being traced must also be run as root. We could design libkqtime to instead run as a separate process that communicates with the application through shared memory or pipe, where then only the libkqtime process needs to be run as root and the application can run as an ordinary user.