Bug 966904 - loginctl lock-sessions, gnome-screensaver, and escaped session-ids in dbus path
Summary: loginctl lock-sessions, gnome-screensaver, and escaped session-ids in dbus path
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 968521 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-24 08:56 UTC by Fabrice Bellet
Modified: 2013-12-29 20:40 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-29 20:40:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Fabrice Bellet 2013-05-24 08:56:03 UTC
Hi!

I noticed that loginctl lock-sessions has no effect with gnome-screensaver, because the session-id is escaped in session_bus_path() from systemd-201/src/login/logind-session-dbus.c, and the matching session-id is considered unescaped  in _listener_message_path_is_our_session() from gnome-screensaver-3.6.1/src/gs-listener-dbus.c.

In my case all session-id reported by loginctl list-sessions are numerical values, so the difference between the escaped and the unescaped string is just the initial digit, that is replaced by its hex ascii value (_3X for digit X), for example with session-id=1 :

[listener_dbus_handle_system_message] gs-listener-dbus.c:854 (10:42:21):	 obj_path=/org/freedesktop/login1/session/_31 interface=org.freedesktop.login1.Session method=Lock destination=(null)

I don't know where the fix makes sense the most, to not escape session-id in systemd, or to unescape it properly in gnome-screensaver.

Comment 1 Lennart Poettering 2013-06-21 10:54:59 UTC
*** Bug 968521 has been marked as a duplicate of this bug. ***

Comment 2 Fedora End Of Life 2013-12-21 13:42:00 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Zbigniew Jędrzejewski-Szmek 2013-12-21 14:20:22 UTC
Hm, wasn't this fixed at some point?

Comment 4 Fabrice Bellet 2013-12-29 20:40:11 UTC
Yes. I cannot reproduce the bug in Fedora 20 (session locking is now handled by gnome-shell). I close this bug.


Note You need to log in before you can comment on or make changes to this bug.