Accepting request 992178 from home:fcrozat:branches:GNOME:Factory

- Allow to build without vala support.
- Refresh harden_accounts-daemon.service.patch to not duplicate
  existing entries.

OBS-URL: https://build.opensuse.org/request/show/992178
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/accountsservice?expand=0&rev=156
This commit is contained in:
Dominique Leuenberger 2022-08-04 06:49:53 +00:00 committed by Git OBS Bridge
parent 41e521c84d
commit 592d6f813d
3 changed files with 22 additions and 13 deletions

View File

@ -1,9 +1,9 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 1 12:01:59 UTC 2022 - Matthias Gerstner <matthias.gerstner@suse.com> Fri Jul 29 13:11:50 UTC 2022 - Frederic Crozat <fcrozat@suse.com>
- remove BuildIgnore for rpmlint-mini. This is a violation of the security - Allow to build without vala support.
policies applying to SUSE products as it circumvents the SUSE security team's - Refresh harden_accounts-daemon.service.patch to not duplicate
control over what enters Factory and what not. existing entries.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Apr 30 20:16:58 UTC 2022 - Ferdinand Thiessen <rpm@fthiessen.de> Sat Apr 30 20:16:58 UTC 2022 - Ferdinand Thiessen <rpm@fthiessen.de>

View File

@ -16,6 +16,10 @@
# #
# allow to not build vala binding
%bcond_without vala
#!BuildIgnore: rpmlint-mini
Name: accountsservice Name: accountsservice
Version: 22.08.8 Version: 22.08.8
Release: 0 Release: 0
@ -40,7 +44,6 @@ Patch1000: as-fate318433-prevent-same-account-multi-logins.patch
BuildRequires: gtk-doc BuildRequires: gtk-doc
BuildRequires: meson BuildRequires: meson
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: vala
BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(gio-2.0) >= 2.63.5 BuildRequires: pkgconfig(gio-2.0) >= 2.63.5
BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(gio-unix-2.0)
@ -91,17 +94,20 @@ Requires: typelib-1_0-AccountsService-1_0 = %{version}
The accountsservice server provides a set of D-Bus interfaces for The accountsservice server provides a set of D-Bus interfaces for
querying and manipulating user account information. querying and manipulating user account information.
%if %{with vala}
%package vala %package vala
Summary: Vala bindings for accountsservice Summary: Vala bindings for accountsservice
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libaccountsservice0 = %{version} Requires: libaccountsservice0 = %{version}
Requires: typelib-1_0-AccountsService-1_0 = %{version} Requires: typelib-1_0-AccountsService-1_0 = %{version}
BuildRequires: vala
%description vala %description vala
The accountsservice server provides a set of D-Bus interfaces for The accountsservice server provides a set of D-Bus interfaces for
querying and manipulating user account information. querying and manipulating user account information.
This package contains the Vala bindings for accountservice. This package contains the Vala bindings for accountservice.
%endif
%lang_package %lang_package
@ -120,6 +126,11 @@ This package contains the Vala bindings for accountservice.
%meson \ %meson \
-Dintrospection=true \ -Dintrospection=true \
-Dgtk_doc=true \ -Dgtk_doc=true \
%if %{with vala}
-Dvapi=true \
%else
-Dvapi=false \
%endif
%{nil} %{nil}
%meson_build %meson_build
@ -174,10 +185,12 @@ This package contains the Vala bindings for accountservice.
%{_includedir}/accountsservice-1.0/ %{_includedir}/accountsservice-1.0/
%{_datadir}/gir-1.0/AccountsService-1.0.gir %{_datadir}/gir-1.0/AccountsService-1.0.gir
%if %{with vala}
%files vala %files vala
%dir %{_datadir}/vala/vapi %dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/accountsservice.deps %{_datadir}/vala/vapi/accountsservice.deps
%{_datadir}/vala/vapi/accountsservice.vapi %{_datadir}/vala/vapi/accountsservice.vapi
%endif
%files lang -f accounts-service.lang %files lang -f accounts-service.lang

View File

@ -1,20 +1,16 @@
Index: accountsservice-0.6.55/data/accounts-daemon.service.in Index: accountsservice-22.08.8/data/accounts-daemon.service.in
=================================================================== ===================================================================
--- accountsservice-0.6.55.orig/data/accounts-daemon.service.in --- accountsservice-22.08.8.orig/data/accounts-daemon.service.in 2022-02-23 16:27:48.000000000 +0100
+++ accountsservice-0.6.55/data/accounts-daemon.service.in +++ accountsservice-22.08.8/data/accounts-daemon.service.in 2022-08-02 09:17:14.424438207 +0200
@@ -8,6 +8,15 @@ After=nss-user-lookup.target @@ -8,6 +8,11 @@
Wants=nss-user-lookup.target Wants=nss-user-lookup.target
[Service] [Service]
+# added automatically, for details please see +# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort +# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+PrivateDevices=true
+ProtectHostname=true +ProtectHostname=true
+ProtectClock=true +ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true +ProtectKernelLogs=true
+ProtectControlGroups=true
Type=dbus Type=dbus
BusName=org.freedesktop.Accounts BusName=org.freedesktop.Accounts
ExecStart=@libexecdir@/accounts-daemon ExecStart=@libexecdir@/accounts-daemon