Skip to content

BCC without root #1166

@rvansa

Description

@rvansa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions