diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-06 11:40:16 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-06 11:40:16 +0400 |
commit | 0696b8aae8c5e84d47893a78d6b7aeb416cba38e (patch) | |
tree | fc94b703c836f020e3b0bab10373057e75e6822f /include | |
parent | cd0df46d8cb937ef277659ea339a77925c443d3d (diff) |
ps: fix -Z (by Yuichi Nakamura <ynakam@hitachisoft.jp>)
Diffstat (limited to 'include')
-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 { DIR *dir; /* Fields are set to 0/NULL if failed to determine (or not requested) */ char *cmd; + USE_SELINUX(char *context;) + /* Everything below must contain no ptrs to malloc'ed data: + * it is memset(0) for each process in procps_scan() */ unsigned vsz, rss; /* we round it to kbytes */ unsigned long stime, utime; unsigned pid; @@ -859,6 +862,7 @@ enum { PSSCAN_STIME = 1 << 10, PSSCAN_UTIME = 1 << 11, PSSCAN_TTY = 1 << 12, + USE_SELINUX(PSSCAN_CONTEXT = 1 << 13,) /* These are all retrieved from proc/NN/stat in one go: */ PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID | PSSCAN_COMM | PSSCAN_STATE |