new Unix session when proc is mounted with hidden PIDs
Dear contributors to polkit,
first, thanks for your work on this handy software.
On a LXDE desktop, I see a "No session for PID …" during startup. After a bit of research (there are a lot of scary "workarounds" proposed), I suspect that polkit_unix_session_new_for_process
returns this error message. Could this be the case?
On my system, /proc
is mounted with the option hidepid=2
, which makes it impossible for unprivileged users to see other users' PIDs. If I remove this mount option (i.e. hidepid=0
), than the error message does not pop up.
Could it be possible, that polkit_unix_session_new_for_process
(or callees) does not work with hidepid=2
?
I am not much into polkit and friends, so please excuse any blurry wording.
Cheers,
Lukas