[PATCH] 2.6.x BSD Process Accounting w/High UID

From: Arthur Corliss
Date: Thu Mar 04 2004 - 13:07:09 EST


Greetings:

The patch only changes two lines which redefine the ac_uid/ac_gid fields as
uid_t/gid_t respectively. Fixes accounting for high uid/gids.

--Arthur Corliss
Bolverk's Lair -- http://arthur.corlissfamily.org/
Digital Mages -- http://www.digitalmages.com/
"Live Free or Die, the Only Way to Live" -- NH State Motto--- linux-2.6.3/include/linux/acct.h 2004-02-17 18:57:18.000000000 -0900
+++ linux/include/linux/acct.h 2004-03-04 08:47:48.000000000 -0900
@@ -41,8 +41,8 @@
* No binary format break with 2.0 - but when we hit 32bit uid we'll
* have to bite one
*/
- __u16 ac_uid; /* Accounting Real User ID */
- __u16 ac_gid; /* Accounting Real Group ID */
+ uid_t ac_uid; /* Accounting Real User ID */
+ gid_t ac_gid; /* Accounting Real Group ID */
__u16 ac_tty; /* Accounting Control Terminal */
__u32 ac_btime; /* Accounting Process Creation Time */
comp_t ac_utime; /* Accounting User Time */