2019-09-30 10:55:06 -04:00
|
|
|
Name: libcap
|
2023-07-20 11:01:27 +08:00
|
|
|
Version: 2.69
|
2024-02-04 07:49:45 +00:00
|
|
|
Release: 2
|
2019-09-30 10:55:06 -04:00
|
|
|
Summary: A library for getting and setting POSIX.1e draft 15 capabilities
|
|
|
|
|
License: GPLv2
|
|
|
|
|
URL: https://sites.google.com/site/fullycapable
|
|
|
|
|
Source0: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.gz
|
|
|
|
|
|
2020-06-24 10:00:20 +08:00
|
|
|
Patch0: libcap-buildflags.patch
|
2023-07-20 11:01:27 +08:00
|
|
|
Patch1: backport-libcap-Ensure-the-XATTR_NAME_CAPS-is-define.patch
|
2024-02-04 07:49:45 +00:00
|
|
|
Patch2: support-specify-cc.patch
|
2019-09-30 10:55:06 -04:00
|
|
|
|
|
|
|
|
BuildRequires: libattr-devel pam-devel perl-interpreter gcc
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This is a library for getting and setting POSIX.1e (formerly POSIX 6)
|
|
|
|
|
draft 15 capabilities.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development headers and libraries for %{name}
|
|
|
|
|
Requires:%{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Development headers and libraries for %{name}
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
|
|
|
|
|
INCDIR=%{_includedir} MANDIR=%{_mandir} PKGCONFIGDIR=%{_libdir}/pkgconfig/
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install RAISE_SETFCAP=no DESTDIR=%{buildroot} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} PKGCONFIGDIR=%{_libdir}/pkgconfig/
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/%{_mandir}/man{2,3,8}
|
|
|
|
|
mv -f doc/*.3 %{buildroot}/%{_mandir}/man3/
|
|
|
|
|
chmod +x %{buildroot}/%{_libdir}/*.so.*
|
|
|
|
|
|
2021-11-25 18:43:16 +08:00
|
|
|
%check
|
|
|
|
|
%make_build COPTS="%{optflags}" test
|
|
|
|
|
|
2019-09-30 10:55:06 -04:00
|
|
|
%pre
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%license License
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
%{_sbindir}/*
|
|
|
|
|
%{_libdir}/security/pam_cap.so
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%{_libdir}/*.a
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_mandir}/man3/*.gz
|
|
|
|
|
%{_mandir}/man1/*.gz
|
|
|
|
|
%{_mandir}/man8/*.gz
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-02-04 07:49:45 +00:00
|
|
|
* Sun Apr 16 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 2.69-2
|
|
|
|
|
- Support specify CC
|
|
|
|
|
|
2023-07-20 11:01:27 +08:00
|
|
|
* Thu Jul 20 2023 wangyunjia <yunjia.wang@huawei.com> - 2.69-1
|
|
|
|
|
- update version to 2.69
|
|
|
|
|
|
2023-07-03 19:42:08 +08:00
|
|
|
* Mon Jul 3 2023 wangyunjia <yunjia.wang@huawei.com> - 2.66-3
|
|
|
|
|
- VFS_CAP_U32 can not ensure that XATTR_NAME_CAPS is defined, and failed to build
|
|
|
|
|
|
2023-05-31 14:41:42 +08:00
|
|
|
* Mon Jan 30 2023 wangyunjia <yunjia.wang@huawei.com> - 2.66-2
|
|
|
|
|
- fix CVE-2023-2602/CVE-2023-2603 && fix memory leaks
|
|
|
|
|
|
2023-01-30 14:21:24 +08:00
|
|
|
* Mon Jan 30 2023 wangyunjia <yunjia.wang@huawei.com> - 2.66-1
|
|
|
|
|
- update version to 2.66
|
|
|
|
|
|
2022-11-01 11:04:38 +08:00
|
|
|
* Tue Nov 1 2022 yixiangzhike <yixiangzhike007@163.com> - 2.61-4
|
|
|
|
|
- backport upstream patch
|
|
|
|
|
|
2022-10-12 11:33:25 +08:00
|
|
|
* Wed Oct 12 2022 yixiangzhike <yixiangzhike007@163.com> - 2.61-3
|
|
|
|
|
- backport upstream patches
|
|
|
|
|
|
2022-08-27 10:58:41 +08:00
|
|
|
* Sat Aug 27 2022 yixiangzhike <yixiangzhike007@163.com> - 2.61-2
|
|
|
|
|
- fix syntax error in DEBUG protected setcap.c code
|
|
|
|
|
|
2021-11-25 18:43:16 +08:00
|
|
|
* Fri Dec 24 2021 yixiangzhike <yixiangzhike007@163.com> - 2.61-1
|
|
|
|
|
- update to 2.61
|
|
|
|
|
|
2021-11-08 11:24:18 +08:00
|
|
|
* Mon Nov 8 2021 yixiangzhike <yixiangzhike007@163.com> - 2.32-3
|
|
|
|
|
- capsh better error handling for integer parsing
|
|
|
|
|
- setcap clean up error handling of the ns rootid argument
|
|
|
|
|
|
|
|
|
|
* Mon Sep 07 2020 Roberto Sassu <roberto.sassu@huawei.com> - 2.32-2
|
2020-09-07 18:45:19 +02:00
|
|
|
- add Avoid-segfaulting-when-the-kernel-is-ahead-of-libcap.patch
|
|
|
|
|
|
2020-06-24 10:00:20 +08:00
|
|
|
* Thu Apr 16 2020 zhangchenfeng<zhangchenfeng1@huawei.com> - 2.32-1
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: upgrade version to 2.32
|
|
|
|
|
|
2019-11-06 19:37:22 +08:00
|
|
|
* Mon Oct 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.27-1
|
|
|
|
|
- update to 2.27
|
|
|
|
|
|
2019-09-30 10:55:06 -04:00
|
|
|
* Sun Sep 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.25-14
|
|
|
|
|
- Fix bugfix of missing pam_cap.so
|
|
|
|
|
|
|
|
|
|
* Wed Aug 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.25-13
|
|
|
|
|
- Package init
|