--- polkitagenthelper.c.orig 2009-08-12 15:56:47.000000000 +0200 +++ polkitagenthelper.c 2009-10-01 22:40:42.000000000 +0200 @@ -87,6 +87,14 @@ openlog ("polkit-agent-helper-1", LOG_CONS | LOG_PID, LOG_AUTHPRIV); + /* check that we are setuid root */ + if (setuid (0) != 0) + { + syslog (LOG_WARNING, "can't do setuid (0) [uid=%d, euid=%d]", getuid (), geteuid()); + fprintf (stderr, "polkit-agent-helper-1: failed to set uid to 0\n"); + goto error; + } + /* check for correct invocation */ if (argc != 3) {