PERFORCE change 167045 for review

Robert Watson rwatson at FreeBSD.org
Wed Aug 5 19:13:44 UTC 2009


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

Change 167045 by rwatson at rwatson_cinnamon on 2009/08/05 19:13:26

	Comment for the syscall code.

Affected files ...

.. //depot/projects/soc2009/marinosi_appaudit/src/sys/security/audit/audit_syscalls.c#6 edit

Differences ...

==== //depot/projects/soc2009/marinosi_appaudit/src/sys/security/audit/audit_syscalls.c#6 (text) ====

@@ -540,6 +540,15 @@
 			return (EINVAL);
 		return (audit_send_trigger(udata.au_trigger));
 
+	/*
+	 * XXXRW: as_name use a userspace character array, not a kernel space
+	 * string pointer.  We need to copyinstr() to a kernel character
+	 * array for the purposes of looking it up, etc.
+	 *
+	 * XXXRW: Possibly audit_slice_*() should be able to return errors--
+	 * for example, if there's a name collision on creating slices, or i
+	 *  a slice can't be found for removal.
+	 */
 	case A_CREATESLICE:
 		if (uap->length != sizeof(udata.au_slice))
 			return (EINVAL);


More information about the p4-projects mailing list