summaryrefslogtreecommitdiffstats
path: root/linux/SELinuxMeter.c
AgeCommit message (Collapse)Author
2021-01-11SELinuxMeter: hardcode SELINUX_MAGIC valueChristian Göttsche
Avoid <linux/magic.h> include, not found by musl-gcc. The value of SELINUX_MAGIC should really never change.
2020-12-07SELinuxMeter: silence comparison warning on 32-bitChristian Göttsche
linux/SELinuxMeter.c: In function ‘hasSELinuxMount’: linux/SELinuxMeter.c:38:21: warning: comparison of integer expressions of different signedness: ‘__fsword_t’ {aka ‘int’} and ‘unsigned int’ [-Wsign-compare] 38 | if (sfbuf.f_type != SELINUX_MAGIC) { | ^~ Origin: https://github.com/SELinuxProject/selinux/blob/7df27b78e9eecbe65a57cdfefb9e51f547231b20/libselinux/src/init.c#L40
2020-12-06Use size_t as len type for Meter_UpdateValuesChristian Göttsche
Most of the time the parameter is passed to snprintf type functions
2020-12-06IWYU updateChristian Göttsche
2020-12-04Convert personal copyright authorship to teamChristian Göttsche
2020-12-02Add xReadfile wrapper for reading small to medium size filesChristian Göttsche
Inspired by proposed Linux syscall Avoid file descriptor leaks like 4af8c63f
2020-11-02Embracing branchesBenny Baumann
2020-10-18Make all required includes explicitBenny Baumann
Information as seen by IWYU 0.12 + clang 9 on Linux
2020-10-16Add SELinuxMeterChristian Göttsche