1. Skip over /proc/irq by default to avoid broken hardware / drivers, and thus avoid `hangs'. You can traverse over /proc/irq using -i th
ough.
2. Make the selinux piece a compile-time conditional, to avoid the additional function call.
3. Fix the overflow issue on 64-bit systems by increasing values of total_obj, et all to unsigned long long's.
4. Only call close / closedir if fd is > 0 and dir is not NULL.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
1 file changed