File permissions.spec of Package permissions.13180
#
# spec file for package permissions
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: permissions
Version: 20180125
Release: 0
Summary: SUSE Linux Default Permissions
# Maintained in github by the security team.
License: GPL-2.0+
Group: Productivity/Security
Url: http://github.com/openSUSE/permissions
Source: permissions-%{version}.tar.xz
Patch0: 0001-whitelisting-add-spice-gtk-usb-helper-setuid-binary-.patch
Patch1: 0002-whitelisting-update-virtualbox.patch
Patch2: 0003-consistency-between-profiles.patch
Patch3: 0004-var-run-postgresql.patch
Patch4: 0005-bsc1110797_amanda.patch
Patch5: 0006-singularity-starter-suid.patch
Patch6: 0007-chkstat-fix-privesc-CVE-2019-3690.patch
Patch7: 0008-squid-pinger-owner-fix-CVE-2019-3688.patch
BuildRequires: libcap-devel
#!BuildIgnore: group(trusted)
Requires(post): %fillup_prereq
Requires(pre): group(trusted)
Provides: aaa_base:%{_sysconfdir}/permissions
%description
Permission settings of files and directories depending on the local
security settings. The local security setting (easy, secure, or paranoid)
can be configured in /etc/sysconfig/security.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p0
%patch7 -p0
%build
make %{?_smp_mflags} CFLAGS="-W -Wall %{optflags}" FSCAPS_DEFAULT_ENABLED=0
%install
%make_install fillupdir=%{_fillupdir}
%post
%{fillup_only -n security}
# apply all potentially changed permissions
%{_bindir}/chkstat --system
%files
%config %{_sysconfdir}/permissions
%config %{_sysconfdir}/permissions.easy
%config %{_sysconfdir}/permissions.secure
%config %{_sysconfdir}/permissions.paranoid
%config(noreplace) %{_sysconfdir}/permissions.local
%{_bindir}/chkstat
%{_mandir}/man5/permissions.5%{ext_man}
%{_mandir}/man8/chkstat.8%{ext_man}
%{_fillupdir}/sysconfig.security
%changelog