pkexec : patch for safe "--keep-user-env" option

Jean-Philippe Guillemin h1p8r10n at
Sat Feb 27 12:01:10 UTC 2016

Many X applications require root privileges, but at the same time want to
keep the original $USER env variable.

This option (see attached patch), while preserving the
sanitized environment, and also while still honoring the
org.freedesktop.policykit.exec.allow_gui annotate key : allow the user to
preserve the $USER environment variable.

I believe, this option is both safe, clean, and a must have for pkexec.

All the best

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: polkit-0.105-keep_user_env_opt.patch
Type: text/x-patch
Size: 2358 bytes
Desc: not available
URL: <>

More information about the polkit-devel mailing list