summaryrefslogtreecommitdiff
path: root/repo/util/tor/0003-disable-sandbox_chown_filename-test_patch
blob: 3140139cf0a426b58b853e9f874214e10a970bb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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