PERFORCE change 80011 for review

Robert Watson rwatson at FreeBSD.org
Mon Jul 11 16:30:00 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=80011

Change 80011 by rwatson at rwatson_zoo on 2005/07/11 16:29:21

	Do audit setresuid()/setresgid() using the new BSM event
	identifiers.

Affected files ...

.. //depot/projects/trustedbsd/audit3/sys/kern/init_sysent.c#15 edit
.. //depot/projects/trustedbsd/audit3/sys/kern/syscalls.master#17 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/sys/kern/init_sysent.c#15 (text+ko) ====

@@ -340,8 +340,8 @@
 	{ SYF_MPSAFE | AS(kldstat_args), (sy_call_t *)kldstat, AUE_NULL },	/* 308 = kldstat */
 	{ SYF_MPSAFE | AS(kldfirstmod_args), (sy_call_t *)kldfirstmod, AUE_NULL },	/* 309 = kldfirstmod */
 	{ SYF_MPSAFE | AS(getsid_args), (sy_call_t *)getsid, AUE_GETSID },	/* 310 = getsid */
-	{ SYF_MPSAFE | AS(setresuid_args), (sy_call_t *)setresuid, AUE_NULL },	/* 311 = setresuid */
-	{ SYF_MPSAFE | AS(setresgid_args), (sy_call_t *)setresgid, AUE_NULL },	/* 312 = setresgid */
+	{ SYF_MPSAFE | AS(setresuid_args), (sy_call_t *)setresuid, AUE_SETRESUID },	/* 311 = setresuid */
+	{ SYF_MPSAFE | AS(setresgid_args), (sy_call_t *)setresgid, AUE_SETRESGID },	/* 312 = setresgid */
 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 313 = obsolete signanosleep */
 	{ AS(aio_return_args), (sy_call_t *)lkmressys, AUE_NULL },	/* 314 = aio_return */
 	{ AS(aio_suspend_args), (sy_call_t *)lkmressys, AUE_NULL },	/* 315 = aio_suspend */

==== //depot/projects/trustedbsd/audit3/sys/kern/syscalls.master#17 (text+ko) ====

@@ -531,9 +531,9 @@
 				    kld_file_stat* stat); }
 309	AUE_NULL	MSTD	{ int kldfirstmod(int fileid); }
 310	AUE_GETSID	MSTD	{ int getsid(pid_t pid); }
-311	AUE_NULL	MSTD	{ int setresuid(uid_t ruid, uid_t euid, \
+311	AUE_SETRESUID	MSTD	{ int setresuid(uid_t ruid, uid_t euid, \
 				    uid_t suid); }
-312	AUE_NULL	MSTD	{ int setresgid(gid_t rgid, gid_t egid, \
+312	AUE_SETRESGID	MSTD	{ int setresgid(gid_t rgid, gid_t egid, \
 				    gid_t sgid); }
 313	AUE_NULL	OBSOL	signanosleep
 314	AUE_NULL	NOSTD	{ int aio_return(struct aiocb *aiocbp); }
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list