diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-06-01 20:26:51 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-06-01 20:26:51 +0000 |
commit | d9b4d146e8e597d70ec198bf8eb24892adf9962d (patch) | |
tree | 21b7b1caecf777819da4b46ce32688d6c45e7458 /sys/sys/user.h | |
parent | 427620ee0659b77e2b931afe638be6b5a9b1a058 (diff) | |
download | FreeBSD-src-d9b4d146e8e597d70ec198bf8eb24892adf9962d.zip FreeBSD-src-d9b4d146e8e597d70ec198bf8eb24892adf9962d.tar.gz |
Add a flags field to struct ucred, and export that via kinfo_proc,
consuming one of its spare fields. The cr_flags field is currently
unused, but will be used for features, including capability mode and
pay-as-you-go audit.
Discussed with: jhb, sson
Diffstat (limited to 'sys/sys/user.h')
-rw-r--r-- | sys/sys/user.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/user.h b/sys/sys/user.h index f111944..ba3dfb0 100644 --- a/sys/sys/user.h +++ b/sys/sys/user.h @@ -83,7 +83,7 @@ * it in two places: function fill_kinfo_proc in sys/kern/kern_proc.c and * function kvm_proclist in lib/libkvm/kvm_proc.c . */ -#define KI_NSPARE_INT 10 +#define KI_NSPARE_INT 9 #define KI_NSPARE_LONG 12 #define KI_NSPARE_PTR 7 @@ -190,6 +190,7 @@ struct kinfo_proc { */ char ki_sparestrings[68]; /* 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 */ int ki_numthreads; /* XXXKSE number of threads in total */ lwpid_t ki_tid; /* XXXKSE thread id */ |