[uid_wrapper] Handle lack of SYS_access on AArch64
Peter Robinson
pbrobinson at fedoraproject.org
Mon Aug 4 09:46:19 UTC 2014
commit eedfb79905652d0c9af4c50a4d7f956f484c54ef
Author: Peter Robinson <pbrobinson at gmail.com>
Date: Mon Aug 4 10:46:06 2014 +0100
Handle lack of SYS_access on AArch64
aarch64-has-no-sys-access.patch | 15 +++++++++++++++
uid_wrapper.spec | 7 ++++++-
2 files changed, 21 insertions(+), 1 deletions(-)
---
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 <mjuszkiewicz at redhat.com> - 1.0.2-2
+- Handle lack of SYS_access on AArch64
+
* Thu Jul 31 2014 - Andreas Schneider <asn at redhat.com> - 1.0.2-1
- Update to version 1.0.2.
More information about the scm-commits
mailing list