diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-08-08 09:26:23 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-08-08 09:26:23 -0400 |
commit | 7787150521fda0370331dab80d043294e05e1598 (patch) | |
tree | 0154ec7cf555d1ab0ca36f7007a956aa2b6bec73 /src/lib/sandbox/sandbox.c | |
parent | 3a2b5a5bcbb35cdedfb63a00391bbf15df69cd9b (diff) | |
parent | aaa5ca366e83795f3ec7b35e879a3c8bc4e0b41f (diff) | |
download | tor-7787150521fda0370331dab80d043294e05e1598.tar.gz tor-7787150521fda0370331dab80d043294e05e1598.zip |
Merge branch 'maint-0.3.4'
Diffstat (limited to 'src/lib/sandbox/sandbox.c')
-rw-r--r-- | src/lib/sandbox/sandbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/sandbox/sandbox.c b/src/lib/sandbox/sandbox.c index 5510754327..48e37ba127 100644 --- a/src/lib/sandbox/sandbox.c +++ b/src/lib/sandbox/sandbox.c @@ -455,7 +455,7 @@ allow_file_open(scmp_filter_ctx ctx, int use_openat, const char *file) { if (use_openat) { return seccomp_rule_add_2(ctx, SCMP_ACT_ALLOW, SCMP_SYS(openat), - SCMP_CMP_STR(0, SCMP_CMP_EQ, AT_FDCWD), + SCMP_CMP(0, SCMP_CMP_EQ, (unsigned int)AT_FDCWD), SCMP_CMP_STR(1, SCMP_CMP_EQ, file)); } else { return seccomp_rule_add_1(ctx, SCMP_ACT_ALLOW, SCMP_SYS(open), |