diff options
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index dd0f5c1cc..1ba122a2d 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -830,6 +830,9 @@ typedef struct { | |||
830 | DIR *dir; | 830 | DIR *dir; |
831 | /* Fields are set to 0/NULL if failed to determine (or not requested) */ | 831 | /* Fields are set to 0/NULL if failed to determine (or not requested) */ |
832 | char *cmd; | 832 | char *cmd; |
833 | USE_SELINUX(char *context;) | ||
834 | /* Everything below must contain no ptrs to malloc'ed data: | ||
835 | * it is memset(0) for each process in procps_scan() */ | ||
833 | unsigned vsz, rss; /* we round it to kbytes */ | 836 | unsigned vsz, rss; /* we round it to kbytes */ |
834 | unsigned long stime, utime; | 837 | unsigned long stime, utime; |
835 | unsigned pid; | 838 | unsigned pid; |
@@ -859,6 +862,7 @@ enum { | |||
859 | PSSCAN_STIME = 1 << 10, | 862 | PSSCAN_STIME = 1 << 10, |
860 | PSSCAN_UTIME = 1 << 11, | 863 | PSSCAN_UTIME = 1 << 11, |
861 | PSSCAN_TTY = 1 << 12, | 864 | PSSCAN_TTY = 1 << 12, |
865 | USE_SELINUX(PSSCAN_CONTEXT = 1 << 13,) | ||
862 | /* These are all retrieved from proc/NN/stat in one go: */ | 866 | /* These are all retrieved from proc/NN/stat in one go: */ |
863 | PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID | 867 | PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID |
864 | | PSSCAN_COMM | PSSCAN_STATE | 868 | | PSSCAN_COMM | PSSCAN_STATE |