commit 8dab2459c0368a95931033b1cd57c94391bae1c1 Author: CentOS Sources Date: Wed Nov 3 19:47:18 2021 -0400 import nfs4-acl-tools-0.3.5-8.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5895b97 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/nfs4-acl-tools-0.3.5.tar.gz diff --git a/.nfs4-acl-tools.metadata b/.nfs4-acl-tools.metadata new file mode 100644 index 0000000..cd45ca3 --- /dev/null +++ b/.nfs4-acl-tools.metadata @@ -0,0 +1 @@ +07e075ee51921ecb7529840919d62170a28b8762 SOURCES/nfs4-acl-tools-0.3.5.tar.gz diff --git a/SOURCES/nfs4-acl-tools-0.3.5-ace-reads.patch b/SOURCES/nfs4-acl-tools-0.3.5-ace-reads.patch new file mode 100644 index 0000000..a366df4 --- /dev/null +++ b/SOURCES/nfs4-acl-tools-0.3.5-ace-reads.patch @@ -0,0 +1,40 @@ +commit 5236e718f0d5dfb9008d3afed64aa642ea38d32e +Author: Kenneth D'souza +Date: Tue Mar 26 19:41:09 2019 +0530 + + nfs4_setfacl: Skip comment field while reading ACE(s). + + With commit 6630629bb661a7f48fb9856f7fd9616ce1499efa an additional field for filename + was added due to which nfs4_setfacl failed to handle comments while reading ACE(s) + from nfs4_getfacl output. + This patch resolves the issue by skipping comment header. + + With fix: + + $ nfs4_setfacl --test -s "$(nfs4_getfacl file1)" file2 + ## Test mode only - the resulting ACL for "/test/file2": + A::OWNER@:rwatTcCy + A:g:GROUP@:rtcy + A::EVERYONE@:rtcy + + Without fix: + + $ nfs4_setfacl --test -s "$(nfs4_getfacl file1)" file2 + Failed while inserting ACE(s). + + Signed-off-by: Kenneth D'souza + Signed-off-by: J. Bruce Fields + +diff --git a/libnfs4acl/nfs4_insert_string_aces.c b/libnfs4acl/nfs4_insert_string_aces.c +index 5a482d5..f93c3e9 100644 +--- a/libnfs4acl/nfs4_insert_string_aces.c ++++ b/libnfs4acl/nfs4_insert_string_aces.c +@@ -48,6 +48,8 @@ int nfs4_insert_string_aces(struct nfs4_acl *acl, const char *acl_spec, unsigned + while ((ssp = strsep(&sp, ",\t\n\r")) != NULL) { + if (!strlen(ssp)) + continue; ++ if (*ssp == '#') ++ continue; + + if ((ace = nfs4_ace_from_string(ssp, acl->is_directory)) == NULL) + goto out_failed; diff --git a/SPECS/nfs4-acl-tools.spec b/SPECS/nfs4-acl-tools.spec new file mode 100644 index 0000000..30900a6 --- /dev/null +++ b/SPECS/nfs4-acl-tools.spec @@ -0,0 +1,178 @@ +Name: nfs4-acl-tools +Version: 0.3.5 +Release: 8%{?dist} +Summary: The nfs4 ACL tools +License: BSD +URL: http://git.linux-nfs.org/?p=bfields/nfs4-acl-tools.git;a=summary +Source0: http://linux-nfs.org/~bfields/nfs4-acl-tools/%{name}-%{version}.tar.gz + +BuildRequires: make +BuildRequires: libtool +BuildRequires: libattr-devel + +# +# RHEL9.0 +# +Patch001: nfs4-acl-tools-0.3.5-ace-reads.patch + +%description +This package contains commandline ACL utilities for the Linux +NFSv4 client. + +%prep +%autosetup -p1 + +%build +%configure \ + CFLAGS="%{build_cflags} -D_FILE_OFFSET_BITS=64" \ + LDFLAGS="%{build_ldflags}" + +%make_build + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} install + +%files +%doc COPYING INSTALL README TODO VERSION +%{_bindir}/nfs4_editfacl +%{_bindir}/nfs4_getfacl +%{_bindir}/nfs4_setfacl +%{_mandir}/man1/* +%{_mandir}/man5/* + +%changelog +* Wed Aug 18 2021 Steve Dickson - 0.3.5-8 +- nfs4_setfacl: Skip comment field while reading ACE(s) (bz 1970815) + +* Mon Aug 09 2021 Mohan Boddu - 0.3.5-7 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 0.3.5-6 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Jan 26 2021 Fedora Release Engineering - 0.3.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 0.3.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 0.3.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 0.3.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 0.3.5-1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Oct 6 2018 Steve Dickson - 0.3.5-0 +- Updated to the latest upstream release: 0.3.5 + +* Sat Aug 4 2018 Steve Dickson - 0.3.4-0 +- Updated to latest upstream release: 0.3.4 + +* Fri Jul 13 2018 Fedora Release Engineering - 0.3.3-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 0.3.3-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 0.3.3-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.3.3-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 0.3.3-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 0.3.3-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Feb 02 2016 Rex Dieter - 0.3.3-18 +- use %%qmake_qt4 macro to ensure proper build flags + +* Fri Jul 31 2015 Steve Dickson 0.3.3-17 +- Handle the setting of DENY ace for DELETE, WRITE_OWNER (bz 1249103) + +* Wed Jun 17 2015 Fedora Release Engineering - 0.3.3-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 0.3.3-15 +- Rebuilt for GCC 5 C++11 ABI change + +* Sun Aug 17 2014 Fedora Release Engineering - 0.3.3-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Tue Jul 15 2014 Nahum Shalman 0.3.3-13 +- Add patch to allow GUI tool to build correctly +- Package GUI tool in a child package + +* Sat Jun 07 2014 Fedora Release Engineering - 0.3.3-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 0.3.3-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 0.3.3-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 0.3.3-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 0.3.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.3.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Nov 16 2009 Steve Dickson - 0.3.3-6 +- Fix a memory leak in nfs4_getfacl + +* Mon Nov 16 2009 Steve Dickson - 0.3.3-5 +- Fixes segfaulting issues with ACEs that have empty mask fields + +* Thu Jul 30 2009 Steve Dickson - 0.3.3-4 +- Change Group in spec file (bz 512580) + +* Sat Jul 25 2009 Fedora Release Engineering - 0.3.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 0.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 18 2009 Steve Dickson - 0.3.3-1 +- Updated to latest upstream version: 0.3.3 + +* Wed Oct 29 2008 Steve Dickson - 0.3.2-3 +- Removed fuzzness from the compile.patch (bz 321745) + +* Tue Feb 19 2008 Fedora Release Engineering - 0.3.2-2 +- Autorebuild for GCC 4.3 + +* Fri Oct 26 2007 Steve Dickson - 0.3.2-1 +- Updated to latest upstream version 0.3.2 + +* Tue Mar 27 2007 Steve Dickson - 0.3.1-1.2 +- Checked in to Fedora CVS + +* Thu Mar 8 2007 Steve Dickson - 0.3.1-1.1 +- Updated to latest upstream version 0.3.1 which eliminated the + need for the patches introduced in the previous commit. + +* Tue Mar 6 2007 Tom "spot" Callaway 0.3.0-1.1 +- lose the BR for autotools +- Patch in support for destdir +- use %%configure macro, make DESTDIR= install +- add sparc to -fPIE (trivial, but correct) +- destdir revealed missing/poorly created symlink, patch fixes it, add nfs4_editfacl to files +- LDFLAGS passed to configure/exported were being blindly overwritten, patch fixes + +* Fri Mar 2 2007 Steve Dickson - 0.3.0-1 +- Updated to latest upstream version 0.3.0 +- Fixed minor issues in spec file from the package review + +* Fri Feb 16 2007 Steve Dickson - 0.2.0-1 +- Initial commit