diff options
author | Peter Palfrader <weasel@debian.org> | 2024-06-07 19:29:52 +0200 |
---|---|---|
committer | trinity-1686a <trinity@deuxfleurs.fr> | 2024-06-07 19:38:10 +0200 |
commit | 48b354e038eeaa0c4879275b4a539d4d52d49b4a (patch) | |
tree | a912edb15cd308beb6a3abb223950e31d55f09db /src/lib | |
parent | c7514b96641f2be180238a78fea961c11e671663 (diff) | |
download | tor-48b354e038eeaa0c4879275b4a539d4d52d49b4a.tar.gz tor-48b354e038eeaa0c4879275b4a539d4d52d49b4a.zip |
fix sandbox for bandwidth authority
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/fs/files.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/fs/files.c b/src/lib/fs/files.c index df59222913..914a8b8e72 100644 --- a/src/lib/fs/files.c +++ b/src/lib/fs/files.c @@ -85,7 +85,8 @@ tor_open_cloexec(const char *path, int flags, unsigned mode) FILE * tor_fopen_cloexec(const char *path, const char *mode) { - FILE *result = fopen(path, mode); + const char *p = sandbox_intern_string(path); + FILE *result = fopen(p, mode); #ifdef FD_CLOEXEC if (result != NULL) { if (fcntl(fileno(result), F_SETFD, FD_CLOEXEC) == -1) { |