summaryrefslogtreecommitdiffstats
path: root/sys/sys/user.h
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2011-03-05 14:41:49 +0000
committertrasz <trasz@FreeBSD.org>2011-03-05 14:41:49 +0000
commit1618438630910db9238a8bf1808fd696eba7c86f (patch)
tree24572b457547ac678a031b594014ab4d5aa60b4a /sys/sys/user.h
parent1a2c2ccf00d839e96bbb9cb391027b14ec4e0d05 (diff)
downloadFreeBSD-src-1618438630910db9238a8bf1808fd696eba7c86f.zip
FreeBSD-src-1618438630910db9238a8bf1808fd696eba7c86f.tar.gz
Export login class information via kinfo and make it possible to view
it using "ps -o class".
Diffstat (limited to 'sys/sys/user.h')
-rw-r--r--sys/sys/user.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/user.h b/sys/sys/user.h
index 5c34c9d..5c5cbd4 100644
--- a/sys/sys/user.h
+++ b/sys/sys/user.h
@@ -100,6 +100,7 @@
#define KI_EMULNAMELEN 16 /* size of returned ki_emul */
#define KI_NGROUPS 16 /* number of groups in ki_groups */
#define LOGNAMELEN 17 /* size of returned ki_login */
+#define LOGINCLASSLEN 17 /* size of returned ki_loginclass */
/* Flags for the process credential. */
#define KI_CRF_CAPABILITY_MODE 0x00000001
@@ -172,12 +173,13 @@ struct kinfo_proc {
char ki_lockname[LOCKNAMELEN+1]; /* lock name */
char ki_comm[COMMLEN+1]; /* command name */
char ki_emul[KI_EMULNAMELEN+1]; /* emulation name */
+ char ki_loginclass[LOGINCLASSLEN+1]; /* login class */
/*
* When adding new variables, take space for char-strings from the
* front of ki_sparestrings, and ints from the end of ki_spareints.
* That way the spare room from both arrays will remain contiguous.
*/
- char ki_sparestrings[68]; /* spare string space */
+ char ki_sparestrings[50]; /* spare string space */
int ki_spareints[KI_NSPARE_INT]; /* spare room for growth */
u_int ki_cr_flags; /* Credential flags */
int ki_jid; /* Process jail ID */
OpenPOWER on IntegriCloud