diff options
author | tz204579 <none@none> | 2007-10-26 13:06:58 -0700 |
---|---|---|
committer | tz204579 <none@none> | 2007-10-26 13:06:58 -0700 |
commit | a7746f662862b6ac0a85751d8adbc897743a83e1 (patch) | |
tree | 04185d177485f7fc40c00d4c136037d038c47a38 /usr/src/lib/libbsm/common/adrm.c | |
parent | 4d139e710100affa83409f3f4b39670b0694e28e (diff) | |
download | illumos-joyent-a7746f662862b6ac0a85751d8adbc897743a83e1.tar.gz |
6431736 c2audit needs to add support for auditing ZFS/NFS ACLs
Diffstat (limited to 'usr/src/lib/libbsm/common/adrm.c')
-rw-r--r-- | usr/src/lib/libbsm/common/adrm.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/usr/src/lib/libbsm/common/adrm.c b/usr/src/lib/libbsm/common/adrm.c index e86f188d4b..ef65719699 100644 --- a/usr/src/lib/libbsm/common/adrm.c +++ b/usr/src/lib/libbsm/common/adrm.c @@ -86,6 +86,20 @@ adrm_int32(adr_t *adr, int32_t *lp, int count) } void +adrm_uid(adr_t *adr, uid_t *up, int count) +{ + int i; + + for (; count-- > 0; up++) { + *up = 0; + for (i = 0; i < 4; i++) { + *up <<= 8; + *up += ((uid_t)*adr->adr_now++) & 0x000000ff; + } + } +} + +void adrm_int64(adr_t *adr, int64_t *lp, int count) { int i; @@ -142,7 +156,7 @@ adrm_putint32(adr_t *adr, int32_t *lp, int count) for (; count-- > 0; lp++) { for (i = 0, l = *lp; i < 4; i++) { *adr->adr_now++ = (char)((l & (int32_t)0xff000000) >> - (int)24); + (int)24); l <<= (int)8; } } |