6905945 hald want to perform auditing but misses the privilege
authorfei feng - Sun Microsystems - Beijing China <Fei.Feng@Sun.COM>
Thu, 24 Dec 2009 09:58:28 +0800
changeset 11394 4c46a0ebc7bd
parent 11393 c2bfdc28a59e
child 11395 251b48e66150
6905945 hald want to perform auditing but misses the privilege
usr/src/cmd/hal/hald/util_helper.c
--- a/usr/src/cmd/hal/hald/util_helper.c	Wed Dec 23 17:51:55 2009 -0500
+++ b/usr/src/cmd/hal/hald/util_helper.c	Thu Dec 24 09:58:28 2009 +0800
@@ -70,6 +70,9 @@
 	/* for sysevent need to be root and have this privilege */
 	(void) priv_addset(pPrivSet, PRIV_SYS_CONFIG);
 
+	/* need proc_audit privilege */
+	(void) priv_addset(pPrivSet, PRIV_PROC_AUDIT);
+
 	/* Set the permitted privilege set. */
 	if (setppriv(PRIV_SET, PRIV_PERMITTED, pPrivSet) != 0) {
 		return;