summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfei feng - Sun Microsystems - Beijing China <Fei.Feng@Sun.COM>2009-12-24 09:58:28 +0800
committerfei feng - Sun Microsystems - Beijing China <Fei.Feng@Sun.COM>2009-12-24 09:58:28 +0800
commit73a8c195d0dfb19a2b8814d9df1ae6459c88d5a6 (patch)
treeeca928d02887e0b28a882b88c1127a9aa341c97a
parent5086f56fbd6ed7abfb046baf7022edf6966dae51 (diff)
downloadillumos-joyent-73a8c195d0dfb19a2b8814d9df1ae6459c88d5a6.tar.gz
6905945 hald want to perform auditing but misses the privilege
-rw-r--r--usr/src/cmd/hal/hald/util_helper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/cmd/hal/hald/util_helper.c b/usr/src/cmd/hal/hald/util_helper.c
index ee97026aa0..948a943c87 100644
--- a/usr/src/cmd/hal/hald/util_helper.c
+++ b/usr/src/cmd/hal/hald/util_helper.c
@@ -70,6 +70,9 @@ drop_privileges (int keep_auxgroups)
/* 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;