Accepting request 112366 from home:vuntz:branches:GNOME:Factory

Filter out system users

OBS-URL: https://build.opensuse.org/request/show/112366
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/accountsservice?expand=0&rev=25
This commit is contained in:
Vincent Untz 2012-04-06 14:09:48 +00:00 committed by Git OBS Bridge
parent 5193438aaf
commit 6ed2118662
4 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,29 @@
commit abd78a5a184f012aecdb8b3795b91c854e1fbece
Author: Ray Strode <rstrode@redhat.com>
Date: Mon Apr 2 16:52:19 2012 -0400
daemon: extend blacklist
Since commit 552a0c856a6e3a7c2e6450ab80e79f4204062281 we no
longer hide certain system users that have a shell.
This commit adds a few more users to our blacklist to keep
things running smooth.
Ideally, we'll find a more general solution.
diff --git a/src/daemon.c b/src/daemon.c
index 3ca232b..d186ab6 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -75,6 +75,10 @@ static const char *default_excludes[] = {
"rpm",
"nfsnobody",
"pcap",
+ "mysql",
+ "ftp",
+ "games",
+ "man",
NULL
};

View File

@ -0,0 +1,13 @@
Index: accountsservice-0.6.17/src/daemon.c
===================================================================
--- accountsservice-0.6.17.orig/src/daemon.c
+++ accountsservice-0.6.17/src/daemon.c
@@ -79,6 +79,8 @@ static const char *default_excludes[] =
"ftp",
"games",
"man",
+ "beagleindex",
+ "suse-ncc",
NULL
};

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Apr 3 11:45:58 UTC 2012 - vuntz@opensuse.org
- Add accountsservice-filter-more-accounts.patch: filter out ftp,
games, man and mysql system users too, taken from git.
- Add accountsservice-filter-suse-accounts.patch: filter out some
openSUSE-specific accounts (beagleindex, suse-ncc).
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 28 06:36:18 UTC 2012 - vuntz@opensuse.org Wed Mar 28 06:36:18 UTC 2012 - vuntz@opensuse.org

View File

@ -27,6 +27,10 @@ Source: http://www.freedesktop.org/software/accountsservice/%{name}-%{ve
# WARNING: do not remove/significantly change patch0 without updating the relevant patch in gdm too # WARNING: do not remove/significantly change patch0 without updating the relevant patch in gdm too
# PATCH-FIX-OPENSUSE accountsservice-sysconfig.patch bnc#688071 vuntz@opensuse.org -- Read/write autologin configuration from sysconfig, like gdm (see gdm-sysconfig-settings.patch) # PATCH-FIX-OPENSUSE accountsservice-sysconfig.patch bnc#688071 vuntz@opensuse.org -- Read/write autologin configuration from sysconfig, like gdm (see gdm-sysconfig-settings.patch)
Patch0: accountsservice-sysconfig.patch Patch0: accountsservice-sysconfig.patch
# PATCH-FIX-UPSTREAM accountsservice-filter-more-accounts.patch fdo#48178 vuntz@opensuse.org -- Filter out some additional system users; taken from git.
Patch1: accountsservice-filter-more-accounts.patch
# PATCH-FIX-OPENSUSE accountsservice-filter-suse-accounts.patch vuntz@opensuse.org -- Filter out some system users that are specific to openSUSE
Patch2: accountsservice-filter-suse-accounts.patch
# needed for patch0 # needed for patch0
BuildRequires: gnome-common BuildRequires: gnome-common
BuildRequires: gobject-introspection-devel BuildRequires: gobject-introspection-devel
@ -86,6 +90,8 @@ querying and manipulating user account information.
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p1
%patch2 -p1
%build %build
# needed for patch0 # needed for patch0