Accepting request 624597 from home:iznogood:branches:GNOME:Factory

- Update to version 0.6.50:
  + Fix insufficient path check on user icon files.
  + Fix is-logged-in status for wayland sessions.
  + Fix user enumeration when system accounts are mixed in.
- Drop upstream fixed patches:
  + accountsservice-missing-users-on-gdm-login.patch.
  + accountsservice-lib-treat-session-type-wayland-as-graphical-session.patch

OBS-URL: https://build.opensuse.org/request/show/624597
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/accountsservice?expand=0&rev=122
This commit is contained in:
Luciano Santos 2018-07-23 03:16:43 +00:00 committed by Git OBS Bridge
parent 9394c139c5
commit 8b39491d06
6 changed files with 15 additions and 76 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:251e5dd56db839e9470d97692ef6e5e07dc659196f27b65b228a3e14f46e560c
size 384108

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:035928f5dea46f2220657e0bd669bc7fac45165b700c0a81b2b66ff2c3dbc74a
size 384484

View File

@ -1,30 +0,0 @@
From edcc26e5ae5fc09fad2d8e9afda0fea97c395d49 Mon Sep 17 00:00:00 2001
From: xiaoguang wang <xwang@suse.com>
Date: Fri, 8 Jun 2018 14:32:00 +0800
Subject: [PATCH] lib: treat session type=wayland as graphical session
When user session type is wayland, act_user_is_logged_in can return TRUE
if user is logged in.
https://bugs.freedesktop.org/show_bug.cgi?id=106855
---
src/libaccountsservice/act-user-manager.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libaccountsservice/act-user-manager.c b/src/libaccountsservice/act-user-manager.c
index ade309c..325421b 100644
--- a/src/libaccountsservice/act-user-manager.c
+++ b/src/libaccountsservice/act-user-manager.c
@@ -1543,7 +1543,8 @@ _get_x11_display_for_new_systemd_session (ActUserManagerNewSession *new_session)
return;
}
- if (g_strcmp0 (session_type, "x11") != 0) {
+ if (g_strcmp0 (session_type, "x11") != 0 &&
+ g_strcmp0 (session_type, "wayland") != 0) {
g_debug ("ActUserManager: (mostly) ignoring %s session '%s' since it's not graphical",
session_type,
new_session->id);
--
2.16.4

View File

@ -1,36 +0,0 @@
From c9503bcb40c21da08b7938279117d68ec37ac1f1 Mon Sep 17 00:00:00 2001
From: Felix Zhang <fezhang@suse.com>
Date: Wed, 13 Jun 2018 11:05:52 +0800
Subject: [PATCH] daemon: don't abort loading users even if missing shadow
entries
Some system accounts, e.g. sshd have no entries in /etc/shadow
because they are created prior to /etc/shadow and have no passwords.
Right now load_entries aborts iterating through /etc/passwd entries
if it fails to find the corresponding /etc/shadow entry, ignoring
all the users behind it, making those users missing from the gdm
login screen user list.
https://bugs.freedesktop.org/show_bug.cgi?id=106904
---
src/daemon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/daemon.c b/src/daemon.c
index e711a46..2851ed6 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -235,8 +235,8 @@ entry_generator_fgetpwent (Daemon *daemon,
if (shadow_entry_buffers != NULL) {
*spent = &shadow_entry_buffers->spbuf;
- return pwent;
}
+ return pwent;
}
}
--
2.13.7

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Sun Jul 22 20:39:59 UTC 2018 - bjorn.lie@gmail.com
- Update to version 0.6.50:
+ Fix insufficient path check on user icon files.
+ Fix is-logged-in status for wayland sessions.
+ Fix user enumeration when system accounts are mixed in.
- Drop upstream fixed patches:
+ accountsservice-missing-users-on-gdm-login.patch.
+ accountsservice-lib-treat-session-type-wayland-as-graphical-session.patch
-------------------------------------------------------------------
Fri Jul 20 02:51:49 UTC 2018 - qkzhu@suse.com

View File

@ -17,7 +17,7 @@
Name: accountsservice
Version: 0.6.49
Version: 0.6.50
Release: 0
Summary: D-Bus Service to Manipulate User Account Information
License: GPL-3.0-or-later
@ -30,10 +30,6 @@ Source: http://www.freedesktop.org/software/accountsservice/%{name}-%{ve
Patch0: accountsservice-sysconfig.patch
# PATCH-FIX-OPENSUSE accountsservice-filter-suse-accounts.patch vuntz@opensuse.org -- Filter out some system users that are specific to openSUSE
Patch1: accountsservice-filter-suse-accounts.patch
# PATCH-FIX-UPSTREAM accountsservice-missing-users-on-gdm-login.patch boo#1090003 fdo#106904 fezhang@suse.com -- Don't abort loading users when an /etc/shadow entry found missing
Patch2: accountsservice-missing-users-on-gdm-login.patch
# PATCH-FIX-UPSTREAM accountsservice-lib-treat-session-type-wayland-as-graphical-session.patch boo#1095918 fdo#106855 xwang@suse.com -- Treat session type wayland as graphical mode
Patch3: accountsservice-lib-treat-session-type-wayland-as-graphical-session.patch
# PATCH-FIX-UPSTREAM accountsservice-lib-don-not-set-loaded-state-until-seat-fetched.patch boo#1100041 fdo#107298 -- lib: don't set loaded state until seat is fetched
Patch4: accountsservice-lib-don-not-set-loaded-state-until-seat-fetched.patch
## SLE-only patches start at 1000
@ -104,8 +100,6 @@ querying and manipulating user account information.
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
# Sle-only patches start at 1000
%if !0%{?is_opensuse}