bubblewrap/bubblewrap.spec
wk333 63d451e423 Add --bind-fd and --ro-bind-fd to let you bind a O_PATH fd for flatpak fix CVE-2024-42472
(cherry picked from commit f51fbfb3eb755e05e707857792a419a4600c5529)
2024-08-16 17:31:28 +08:00

51 lines
1.4 KiB
RPMSpec

Name: bubblewrap
Version: 0.4.1
Release: 2
Summary: Core execution tool for unprivileged containers
License: LGPLv2+
URL: https://github.com/projectatomic/bubblewrap
Source0: https://github.com/containers/bubblewrap/releases/download/v%{version}/bubblewrap-%{version}.tar.xz
Patch0: backport-Add--bind-fd-and--ro-bind-fd-to-let-you-bind-a-O_PATH-fd.patch
BuildRequires: autoconf automake libtool gcc libcap-devel
BuildRequires: pkgconfig(libselinux) libxslt docbook-style-xsl
%description
There is an effort in the Linux kernel called user namespaces which
attempts to allow unprivileged users to use container features.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi
%configure --disable-silent-rules --with-priv-mode=none
%make_build
%install
%make_install
%delete_la
%files
%defattr(-,root,root)
%license COPYING
%{_bindir}/bwrap
%{_datadir}/bash-completion/completions/bwrap
%files help
%defattr(-,root,root)
%doc README.md
%{_mandir}/man1/*
%changelog
* Fri Aug 16 2024 wangkai <13474090681@163.com> - 0.4.1-2
- Add --bind-fd and --ro-bind-fd to let you bind a O_PATH fd for flatpak fix CVE-2024-42472
* Tue Jun 23 2020 shixuantong <shixuantong@huawei.com> -0.4.1-1
- Update to 0.4.1
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.3.3-1
- Package init