Sync from SUSE:SLFO:Main udica revision 2700ee6f7394ac58e13eef8f3a36e4c5

This commit is contained in:
Adrian Schröter 2024-05-04 01:35:07 +02:00
commit c49738189c
4 changed files with 103 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

13
udica.changes Normal file
View File

@ -0,0 +1,13 @@
-------------------------------------------------------------------
Thu May 4 15:38:26 UTC 2023 - Gayane Osipyan <Gayane.Osipyan@suse.com>
- update to version 0.2.7
* Make sure each section of the inspect exists before accessing
* Improve label collection for mounts and devices
* Add support for containerd via nerdctl inspect
* Avoid duplicate rules for accessing mounts and devices
-------------------------------------------------------------------
Mon Aug 1 16:41:49 UTC 2022 - Gayane Osipyan <Gayane.Osipyan@suse.com>
- Initial packaging of version 0.2.6-5

64
udica.spec Normal file
View File

@ -0,0 +1,64 @@
#
# spec file for package udica
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: udica
Version: 0.2.7
Release: 0
Summary: A tool for generating SELinux security policies for containers
License: GPL-3.0-or-later
URL: https://github.com/containers/udica
Source0: https://github.com/containers/udica/archive/v%{version}.tar.gz
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-setuptools
# container-selinux provides policy templates
Requires: container-selinux >= 2.168.0-2
Requires: python3
Requires: python3-selinux
Requires: python3-semanage
Requires: python3-setuptools
BuildArch: noarch
%description
Tool for generating SELinux security profiles for containers based on
inspection of container JSON file.
%prep
%autosetup -p 1
%build
python3 setup.py build
%install
python3 setup.py install --single-version-externally-managed --root=%{buildroot}
install --directory %{buildroot}%{_mandir}/man8
install -m 0644 udica/man/man8/udica.8 %{buildroot}%{_mandir}/man8/udica.8
%files
%{_mandir}/man8/udica.8%{?ext_man}
%{_bindir}/udica
%dir %{_datadir}/udica
%dir %{_datadir}/udica/ansible
%{_datadir}/udica/ansible/*
%license LICENSE
%{python3_sitelib}/udica/
%{python3_sitelib}/udica-*.egg-info
%changelog

BIN
v0.2.7.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.