summaryrefslogtreecommitdiffstats
path: root/sys/security/audit/audit_private.h
diff options
context:
space:
mode:
authorsson <sson@FreeBSD.org>2009-06-29 20:19:19 +0000
committersson <sson@FreeBSD.org>2009-06-29 20:19:19 +0000
commit3de2232b431b0fc22153f5286da9948f67b3d80e (patch)
treea40b65d24900fa99e8ca16ffc6932787a5d2ed20 /sys/security/audit/audit_private.h
parent0cabaf8791593503b5c5aee1394849a275c48ef9 (diff)
downloadFreeBSD-src-3de2232b431b0fc22153f5286da9948f67b3d80e.zip
FreeBSD-src-3de2232b431b0fc22153f5286da9948f67b3d80e.tar.gz
Dynamically allocate the gidset field in audit record.
This fixes a problem created by the recent change that allows a large number of groups per user. The gidset field in struct kaudit_record is now dynamically allocated to the size needed rather than statically (using NGROUPS). Approved by: re@ (kensmith, rwatson), gnn (mentor)
Diffstat (limited to 'sys/security/audit/audit_private.h')
-rw-r--r--sys/security/audit/audit_private.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/security/audit/audit_private.h b/sys/security/audit/audit_private.h
index 0116f4d..0da2f2d 100644
--- a/sys/security/audit/audit_private.h
+++ b/sys/security/audit/audit_private.h
@@ -50,6 +50,7 @@ MALLOC_DECLARE(M_AUDITBSM);
MALLOC_DECLARE(M_AUDITDATA);
MALLOC_DECLARE(M_AUDITPATH);
MALLOC_DECLARE(M_AUDITTEXT);
+MALLOC_DECLARE(M_AUDITGIDSET);
#endif
/*
@@ -104,8 +105,8 @@ struct vnode_au_info {
};
struct groupset {
- gid_t gidset[NGROUPS];
- u_int gidset_size;
+ gid_t *gidset;
+ u_int gidset_size;
};
struct socket_au_info {
OpenPOWER on IntegriCloud