2006-12-19 00:17:28 +01:00
|
|
|
#
|
2011-02-11 01:28:32 +01:00
|
|
|
# spec file for package permissions
|
2006-12-19 00:17:28 +01:00
|
|
|
#
|
2019-11-27 13:48:04 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:28 +01:00
|
|
|
#
|
2008-09-13 06:56:01 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-07-12 11:02:35 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:17:28 +01:00
|
|
|
#
|
|
|
|
|
2012-07-06 16:11:34 +02:00
|
|
|
|
2019-11-18 10:54:19 +01:00
|
|
|
%define VERSION 20191118
|
2019-04-12 15:08:09 +02:00
|
|
|
|
2006-12-19 00:17:28 +01:00
|
|
|
Name: permissions
|
2019-04-12 15:08:09 +02:00
|
|
|
Version: %{VERSION}
|
2012-07-06 16:11:34 +02:00
|
|
|
Release: 0
|
2006-12-19 00:17:28 +01:00
|
|
|
Summary: SUSE Linux Default Permissions
|
2017-11-30 11:35:19 +01:00
|
|
|
# Maintained in github by the security team.
|
2018-07-24 13:46:06 +02:00
|
|
|
License: GPL-2.0-or-later
|
2012-07-06 16:11:34 +02:00
|
|
|
Group: Productivity/Security
|
2019-11-18 10:54:19 +01:00
|
|
|
URL: http://github.com/openSUSE/permissions
|
2017-11-30 11:35:19 +01:00
|
|
|
Source: permissions-%{version}.tar.xz
|
2019-05-02 15:38:50 +02:00
|
|
|
Source1: fix_version.sh
|
2019-06-05 14:35:17 +02:00
|
|
|
BuildRequires: libcap-devel
|
2019-04-12 15:08:09 +02:00
|
|
|
Requires: chkstat
|
|
|
|
Requires: permissions-config
|
2019-04-15 20:37:33 +02:00
|
|
|
Recommends: permissions-doc
|
2017-11-30 11:35:19 +01:00
|
|
|
Provides: aaa_base:%{_sysconfdir}/permissions
|
2006-12-19 00:17:28 +01:00
|
|
|
|
2007-04-18 18:37:08 +02:00
|
|
|
%prep
|
2009-08-26 17:26:35 +02:00
|
|
|
%setup -q
|
2006-12-19 00:17:28 +01:00
|
|
|
|
|
|
|
%build
|
2017-11-30 11:35:19 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="-W -Wall %{optflags}" FSCAPS_DEFAULT_ENABLED=0
|
2006-12-19 00:17:28 +01:00
|
|
|
|
|
|
|
%install
|
2017-11-30 11:35:19 +01:00
|
|
|
%make_install fillupdir=%{_fillupdir}
|
2006-12-19 00:17:28 +01:00
|
|
|
|
2019-04-12 15:08:09 +02:00
|
|
|
%description
|
|
|
|
Permission settings of files and directories depending on the local
|
2019-04-15 20:37:33 +02:00
|
|
|
security settings. The local security setting ("easy", "secure", or "paranoid")
|
2019-04-12 15:08:09 +02:00
|
|
|
can be configured in /etc/sysconfig/security.
|
|
|
|
|
2019-04-15 20:37:33 +02:00
|
|
|
This package does not contain files, it just requires the necessary packages.
|
2006-12-19 00:17:28 +01:00
|
|
|
|
|
|
|
%files
|
2019-04-12 15:08:09 +02:00
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: SUSE Linux Default Permissions documentation
|
2019-04-15 20:37:33 +02:00
|
|
|
Group: Documentation/Man
|
2019-05-02 15:24:27 +02:00
|
|
|
Version: %{suse_version}_%{VERSION}
|
2019-04-12 15:08:09 +02:00
|
|
|
Release: 0
|
|
|
|
|
|
|
|
%description doc
|
2019-04-15 20:37:33 +02:00
|
|
|
Documentation for the permission files /etc/permissions*.
|
2019-04-12 15:08:09 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%{_mandir}/man5/permissions.5%{ext_man}
|
|
|
|
|
|
|
|
%package config
|
|
|
|
Summary: SUSE Linux Default Permissions config files
|
|
|
|
Group: Productivity/Security
|
2019-05-02 15:24:27 +02:00
|
|
|
Version: %{suse_version}_%{VERSION}
|
2019-04-12 15:08:09 +02:00
|
|
|
Release: 0
|
2019-06-05 13:28:29 +02:00
|
|
|
Requires(post): %fillup_prereq
|
2019-05-02 15:24:27 +02:00
|
|
|
Requires(post): chkstat
|
2019-06-05 13:28:29 +02:00
|
|
|
#!BuildIgnore: group(trusted)
|
|
|
|
Requires(pre): group(trusted)
|
2019-04-12 15:08:09 +02:00
|
|
|
|
|
|
|
%description config
|
2019-04-15 20:37:33 +02:00
|
|
|
The actual permissions configuration files, /etc/permission.*.
|
2019-04-12 15:08:09 +02:00
|
|
|
|
|
|
|
%files config
|
2017-11-30 11:35:19 +01:00
|
|
|
%config %{_sysconfdir}/permissions
|
|
|
|
%config %{_sysconfdir}/permissions.easy
|
|
|
|
%config %{_sysconfdir}/permissions.secure
|
|
|
|
%config %{_sysconfdir}/permissions.paranoid
|
|
|
|
%config(noreplace) %{_sysconfdir}/permissions.local
|
2019-04-12 15:08:09 +02:00
|
|
|
%{_fillupdir}/sysconfig.security
|
|
|
|
|
|
|
|
%post config
|
|
|
|
%{fillup_only -n security}
|
|
|
|
# apply all potentially changed permissions
|
2019-11-12 13:51:22 +01:00
|
|
|
%{_bindir}/chkstat --system || :
|
2019-04-12 15:08:09 +02:00
|
|
|
|
|
|
|
%package -n chkstat
|
|
|
|
Summary: SUSE Linux Default Permissions tool
|
|
|
|
Group: Productivity/Security
|
2019-05-02 15:24:27 +02:00
|
|
|
Version: %{suse_version}_%{VERSION}
|
2019-04-12 15:08:09 +02:00
|
|
|
Release: 0
|
|
|
|
|
|
|
|
%description -n chkstat
|
2019-04-15 20:37:33 +02:00
|
|
|
Tool to check and set file permissions.
|
2019-04-12 15:08:09 +02:00
|
|
|
|
|
|
|
%files -n chkstat
|
2007-06-03 22:01:01 +02:00
|
|
|
%{_bindir}/chkstat
|
2017-11-30 11:35:19 +01:00
|
|
|
%{_mandir}/man8/chkstat.8%{ext_man}
|
2007-12-03 23:29:54 +01:00
|
|
|
|
2018-11-16 17:39:18 +01:00
|
|
|
%package -n permissions-zypp-plugin
|
|
|
|
BuildArch: noarch
|
2019-05-02 15:24:27 +02:00
|
|
|
Requires: permissions = %{VERSION}
|
2018-11-16 17:39:18 +01:00
|
|
|
Requires: python3-zypp-plugin
|
|
|
|
Requires: libzypp(plugin:commit) = 1
|
|
|
|
Summary: A zypper commit plugin for calling chkstat
|
|
|
|
Group: Productivity/Security
|
|
|
|
|
|
|
|
%description -n permissions-zypp-plugin
|
|
|
|
This package contains a plugin for zypper that calls `chkstat --system` after
|
|
|
|
new packages have been installed. This is helpful for maintaining custom
|
|
|
|
entries in /etc/permissions.local.
|
|
|
|
|
|
|
|
%files -n permissions-zypp-plugin
|
|
|
|
%dir /usr/lib/zypp
|
|
|
|
%dir /usr/lib/zypp/plugins
|
|
|
|
%dir /usr/lib/zypp/plugins/commit
|
|
|
|
/usr/lib/zypp/plugins/commit/permissions.py
|
|
|
|
|
2007-02-25 23:35:05 +01:00
|
|
|
%changelog
|