jcberthon / linux-capabilities

Getting info about Linux capabilities of a process

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

linux-capabilities

Getting info about Linux capabilities of a process

Simply compile the .c file:

$ gcc get-cap.c -o get-cap -lcap

Note: you might have to install the libcap development package (libcap-dev or libcap-devel depending on your distribution).

The executable require a process ID (aka PID) for parameter:

$ ./get-cap 15833
caps_to_text() returned "= cap_setgid,cap_setuid,cap_net_bind_service,cap_sys_chroot,cap_sys_time+ep"

About

Getting info about Linux capabilities of a process

License:Apache License 2.0


Languages

Language:C 100.0%