summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-08-08 09:26:23 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-08 09:26:23 -0400
commitaaa5ca366e83795f3ec7b35e879a3c8bc4e0b41f (patch)
tree3caadf52f3237dbad9e9682c62bbe7f069b16eb9 /src
parentde129e69ba1192f0c2ad46ac898df248944068eb (diff)
parent00536254b765900127af04f278ed591d562434d9 (diff)
downloadtor-aaa5ca366e83795f3ec7b35e879a3c8bc4e0b41f.tar.gz
tor-aaa5ca366e83795f3ec7b35e879a3c8bc4e0b41f.zip
Merge branch 'maint-0.3.3' into maint-0.3.4
Diffstat (limited to 'src')
-rw-r--r--src/common/sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 440f8722f2..ca7803ac9c 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -450,7 +450,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),