audit_arg.c (1a46aa801e1262e02fac68567bf834ddea762df0) audit_arg.c (59b622e6b3adad73e32daa0589bb7352a9b070cf)
1/*
2 * Copyright (c) 1999-2005 Apple Computer, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 219 unchanged lines hidden (view full) ---

228
229 ar->k_ar.ar_arg_suid = suid;
230 ARG_SET_VALID(ar, ARG_SUID);
231}
232
233void
234audit_arg_groupset(gid_t *gidset, u_int gidset_size)
235{
1/*
2 * Copyright (c) 1999-2005 Apple Computer, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 219 unchanged lines hidden (view full) ---

228
229 ar->k_ar.ar_arg_suid = suid;
230 ARG_SET_VALID(ar, ARG_SUID);
231}
232
233void
234audit_arg_groupset(gid_t *gidset, u_int gidset_size)
235{
236 int i;
236 u_int i;
237 struct kaudit_record *ar;
238
239 ar = currecord();
240 if (ar == NULL)
241 return;
242
243 for (i = 0; i < gidset_size; i++)
244 ar->k_ar.ar_arg_groups.gidset[i] = gidset[i];

--- 613 unchanged lines hidden ---
237 struct kaudit_record *ar;
238
239 ar = currecord();
240 if (ar == NULL)
241 return;
242
243 for (i = 0; i < gidset_size; i++)
244 ar->k_ar.ar_arg_groups.gidset[i] = gidset[i];

--- 613 unchanged lines hidden ---