summaryrefslogtreecommitdiff
path: root/bus/activation-helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus/activation-helper.c')
-rw-r--r--bus/activation-helper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bus/activation-helper.c b/bus/activation-helper.c
index baba8f04..cf18daae 100644
--- a/bus/activation-helper.c
+++ b/bus/activation-helper.c
@@ -3,6 +3,7 @@
* user. This file is security sensitive.
*
* Copyright (C) 2007 Red Hat, Inc.
+ * Copyright (C) 2011 Nokia Corp.
*
* Licensed under the Academic Free License version 2.1
*
@@ -359,6 +360,8 @@ exec_for_correct_user (char *exec, char *user, DBusError *error)
retval = TRUE;
argv = NULL;
+ _dbus_reset_process_attributes ();
+
if (!switch_user (user, error))
return FALSE;