Date: Wed, 1 May 2002 18:11:28 -0700 (PDT) From: "Andrew R. Reiter" <arr@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 10621 for review Message-ID: <200205020111.g421BSN41459@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=10621 Change 10621 by arr@arr_shibby on 2002/05/01 18:10:40 Create AUDIT_SET_SUBJECT macro to decrease code clutter when labeling the subject of a generated audit record. Affected files ... ... //depot/projects/trustedbsd/audit/sys/sys/audit.h#21 edit Differences ... ==== //depot/projects/trustedbsd/audit/sys/sys/audit.h#21 (text+ko) ==== @@ -125,6 +125,13 @@ #define AUD_UNLINK 17 #define AUD_UTIME 18 +#define AUDIT_SET_SUBJECT(subj, euid, ruid, gid, pid) do { \ + (subj)->as_euid = (euid); \ + (subj)->as_gid = (gid); \ + (subj)->as_uid = (ruid); \ + (subj)->as_pid = (pid); \ +} while (0) + struct chmod_info { char ci_path[MAXPATHLEN]; mode_t ci_mode; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205020111.g421BSN41459>