Is there any possibility to use bcc (particularly offcputime) without root privileges, if I want to monitor only a process started by the same user? Something like setting kernel.perf_event_paranoid=-1.
I want to use offcputime in a complex automated test setup, which is not executed as root. Or is the only option to set allow sudo in sudoers file (as I can't set SUID for a python script)?
The problem with using sudoers file is that I can't later send any signal to the process (sudo), and adding sudo kill to sudoers doesn't sound like a good idea.
Is there any possibility to use bcc (particularly offcputime) without root privileges, if I want to monitor only a process started by the same user? Something like setting
kernel.perf_event_paranoid=-1.I want to use offcputime in a complex automated test setup, which is not executed as root. Or is the only option to set allow sudo in sudoers file (as I can't set SUID for a python script)?
The problem with using sudoers file is that I can't later send any signal to the process (sudo), and adding
sudo killto sudoers doesn't sound like a good idea.