I have a program (https://github.com/raboof/connbeat) that relies on /proc/[pid]/fd/*
to find processes given a (networking) inode.
/proc/[pid]/fd
can only be read by root, but I'd like to drop privileges as much as possible for security.
Is there some way I could (efficiently) get to the relationship between processes and inodes without requiring full root rights? Perhaps some syscall that I can selectively give access to using capabilities?