From eedfb79905652d0c9af4c50a4d7f956f484c54ef Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Mon, 4 Aug 2014 10:46:06 +0100 Subject: [PATCH] Handle lack of SYS_access on AArch64 --- aarch64-has-no-sys-access.patch | 15 +++++++++++++++ uid_wrapper.spec | 7 ++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 aarch64-has-no-sys-access.patch diff --git a/aarch64-has-no-sys-access.patch b/aarch64-has-no-sys-access.patch new file mode 100644 index 0000000..9e0cae7 --- /dev/null +++ b/aarch64-has-no-sys-access.patch @@ -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); diff --git a/uid_wrapper.spec b/uid_wrapper.spec index fda769d..511c589 100644 --- a/uid_wrapper.spec +++ b/uid_wrapper.spec @@ -1,12 +1,13 @@ Name: uid_wrapper Version: 1.0.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A wrapper for privilege separation License: GPLv3+ Url: http://cwrap.org/ Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz +Patch0: aarch64-has-no-sys-access.patch BuildRequires: cmake BuildRequires: libcmocka-devel @@ -27,6 +28,7 @@ development/testing. %prep %setup -q +%patch0 -p1 %build if test ! -e "obj"; then @@ -66,6 +68,9 @@ popd %{_mandir}/man1/uid_wrapper.1* %changelog +* Mon Aug 04 2014 Marcin Juszkiewicz - 1.0.2-2 +- Handle lack of SYS_access on AArch64 + * Thu Jul 31 2014 - Andreas Schneider - 1.0.2-1 - Update to version 1.0.2.