Bug 214317

Summary: getcap -r / should default to ignore /proc/ reading errors
Product: Tools Reporter: Andrew G. Morgan (morgan)
Component: libcapAssignee: Andrew G. Morgan (morgan)
Status: RESOLVED CODE_FIX    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: n/a Subsystem:
Regression: No Bisected commit-id:

Description Andrew G. Morgan 2021-09-05 15:38:26 UTC
This command

   getcap -r /

generates a gazillion warnings because of things like this:

   Failed to get capabilities of file '/proc/183650/task/183650/net/fib_triestat' (Operation not supported)

we should either silently ignore operation not permitted problems, or skip /proc/ altogether by default.