Handle lack of SYS_access on AArch64

This commit is contained in:
Peter Robinson 2014-08-04 10:46:06 +01:00
parent 5be147f4b9
commit eedfb79905
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,15 @@
Index: uid_wrapper-1.0.2/tests/testsuite.c
===================================================================
--- uid_wrapper-1.0.2.orig/tests/testsuite.c
+++ uid_wrapper-1.0.2/tests/testsuite.c
@@ -198,8 +198,10 @@ static void test_uwrap_syscall(void **st
rc = access(".", R_OK);
assert_int_equal(rc, 0);
+#ifdef SYS_access
rc = syscall(SYS_access, ".", R_OK);
assert_int_equal(rc, 0);
+#endif
ZERO_STRUCT(tv1);
ZERO_STRUCT(tv2);

View File

@ -1,12 +1,13 @@
Name: uid_wrapper Name: uid_wrapper
Version: 1.0.2 Version: 1.0.2
Release: 1%{?dist} Release: 2%{?dist}
Summary: A wrapper for privilege separation Summary: A wrapper for privilege separation
License: GPLv3+ License: GPLv3+
Url: http://cwrap.org/ Url: http://cwrap.org/
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
Patch0: aarch64-has-no-sys-access.patch
BuildRequires: cmake BuildRequires: cmake
BuildRequires: libcmocka-devel BuildRequires: libcmocka-devel
@ -27,6 +28,7 @@ development/testing.
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
if test ! -e "obj"; then if test ! -e "obj"; then
@ -66,6 +68,9 @@ popd
%{_mandir}/man1/uid_wrapper.1* %{_mandir}/man1/uid_wrapper.1*
%changelog %changelog
* Mon Aug 04 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 1.0.2-2
- Handle lack of SYS_access on AArch64
* Thu Jul 31 2014 - Andreas Schneider <asn@redhat.com> - 1.0.2-1 * Thu Jul 31 2014 - Andreas Schneider <asn@redhat.com> - 1.0.2-1
- Update to version 1.0.2. - Update to version 1.0.2.