summaryrefslogtreecommitdiff
path: root/repo/tor/0003-disable-sandbox_chown_filename-test_patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/tor/0003-disable-sandbox_chown_filename-test_patch
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/tor/0003-disable-sandbox_chown_filename-test_patch')
-rw-r--r--repo/tor/0003-disable-sandbox_chown_filename-test_patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/repo/tor/0003-disable-sandbox_chown_filename-test_patch b/repo/tor/0003-disable-sandbox_chown_filename-test_patch
new file mode 100644
index 0000000..3140139
--- /dev/null
+++ b/repo/tor/0003-disable-sandbox_chown_filename-test_patch
@@ -0,0 +1,36 @@
+This test fail on armhf, armv7 and aarch64
+--- a/src/test/test_sandbox.c
++++ b/src/test/test_sandbox.c
+@@ -193,24 +193,6 @@ test_sandbox_chmod_filename(void *arg)
+ }
+
+ static void
+-test_sandbox_chown_filename(void *arg)
+-{
+- sandbox_data_t *data = arg;
+- int rc, errsv;
+-
+- if (chown(sandbox_intern_string(data->file_ops_allowed), -1, -1) != 0)
+- tt_abort_perror("chown");
+-
+- rc = chown(data->file_ops_blocked, -1, -1);
+- errsv = errno;
+- tt_int_op(rc, OP_EQ, -1);
+- tt_int_op(errsv, OP_EQ, EPERM);
+-
+- done:
+- (void)0;
+-}
+-
+-static void
+ test_sandbox_rename_filename(void *arg)
+ {
+ sandbox_data_t *data = arg;
+@@ -327,7 +309,6 @@ struct testcase_t sandbox_tests[] = {
+
+ SANDBOX_TEST_IN_SANDBOX(openat_filename),
+ SANDBOX_TEST_IN_SANDBOX(chmod_filename),
+- SANDBOX_TEST_IN_SANDBOX(chown_filename),
+ SANDBOX_TEST_IN_SANDBOX(rename_filename),
+
+ /* Currently the sandbox is unable to filter stat() calls on systems where