Bug 1335499

Summary: backport LockedHint and SetLockedHint from logind
Product: Red Hat Enterprise Linux 7 Reporter: Victor Toso <victortoso>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Branislav Blaškovič <bblaskov>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: bblaskov, jamartis, jscotka, systemd-maint-list, victortoso
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-219-21.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 00:54:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1289485, 1329803    

Description Victor Toso 2016-05-12 10:36:08 UTC
So desktop environment can keep this property up to date in order to applications track if session is Locked or not.

https://github.com/systemd/systemd/pull/3238

Comment 6 Lukáš Nykrýn 2016-05-16 08:20:47 UTC
pushed to staging ->
https://github.com/lnykryn/systemd-rhel/commit/75131b469fa9e1e2e3cb623fa1f3d36cba36af78 -> post

Comment 8 Branislav Blaškovič 2016-08-31 10:51:21 UTC
:: [   LOG    ] :: Package versions:
:: [   LOG    ] ::   systemd-219-27.el7.x86_64
:: [   PASS   ] :: Command 'session=""' (Expected 0, got 0)
:: [   PASS   ] :: Command 'session=/org/freedesktop/login1/session/_32' (Expected 0, got 0)
:: [   PASS   ] :: Command 'expectedHits=8' (Expected 0, got 0)
:: [   PASS   ] :: Command 'actualHits=0' (Expected 0, got 0)
:: [   LOG    ] :: Duration: 1s
:: [   LOG    ] :: Assertions: 5 good, 0 bad
:: [   PASS   ] :: RESULT: Setup

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'busctl call org.freedesktop.login1 /org/freedesktop/login1/session/_32 org.freedesktop.login1.Session SetLockedHint "b" true' (Expected 0, got 0)
:: [   PASS   ] :: Command '((actualHits+=1))' (Expected 0, got 0)
:: [   PASS   ] :: Command 'busctl call org.freedesktop.login1 /org/freedesktop/login1/session/_32 org.freedesktop.login1.Session SetLockedHint "b" false' (Expected 0, got 0)
:: [   PASS   ] :: Command '((actualHits+=1 ))' (Expected 0, got 0)
:: [   PASS   ] :: Command 'busctl call org.freedesktop.login1 /org/freedesktop/login1/session/_32 org.freedesktop.login1.Session SetLockedHint "b" 1' (Expected 0, got 0)
:: [   PASS   ] :: Command '((actualHits+=1 ))' (Expected 0, got 0)
:: [   PASS   ] :: Command 'busctl call org.freedesktop.login1 /org/freedesktop/login1/session/_32 org.freedesktop.login1.Session SetLockedHint "b" 0' (Expected 0, got 0)
:: [   PASS   ] :: Command '((actualHits+=1 ))' (Expected 0, got 0)
:: [   PASS   ] :: Command 'busctl call org.freedesktop.login1 /org/freedesktop/login1/session/_32 org.freedesktop.login1.Session SetLockedHint "b" on' (Expected 0, got 0)
:: [   PASS   ] :: Command '((actualHits+=1 ))' (Expected 0, got 0)
:: [   PASS   ] :: Command 'busctl call org.freedesktop.login1 /org/freedesktop/login1/session/_32 org.freedesktop.login1.Session SetLockedHint "b" off' (Expected 0, got 0)
:: [   PASS   ] :: Command '((actualHits+=1 ))' (Expected 0, got 0)
:: [   PASS   ] :: Command 'busctl call org.freedesktop.login1 /org/freedesktop/login1/session/_32 org.freedesktop.login1.Session SetLockedHint "b" yes' (Expected 0, got 0)
:: [   PASS   ] :: Command '((actualHits+=1 ))' (Expected 0, got 0)
:: [   PASS   ] :: Command 'busctl call org.freedesktop.login1 /org/freedesktop/login1/session/_32 org.freedesktop.login1.Session SetLockedHint "b" no' (Expected 0, got 0)
:: [   PASS   ] :: Command '((actualHits+=1 ))' (Expected 0, got 0)
:: [   LOG    ] :: Duration: 1s
:: [   LOG    ] :: Assertions: 16 good, 0 bad
:: [   PASS   ] :: RESULT: Test

Verified.

Comment 10 errata-xmlrpc 2016-11-04 00:54:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2216.html