Skip to content

Commit

Permalink
Disable sandbox for 'file' calls
Browse files Browse the repository at this point in the history
     -S, --no-sandbox
             On systems where libseccomp (https://github.com/seccomp/libseccomp) is available, the -S flag disables sandboxing which is enabled by default.  This option is needed for
             file to execute external decompressing programs, i.e. when the -z flag is specified and the built-in decompressors are not available.  On systems where sandboxing is not
             available, this option has no effect.
  • Loading branch information
z3ntu committed Sep 19, 2020
1 parent 2b2dde0 commit f37b2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atool
Expand Up @@ -1540,7 +1540,7 @@ sub findformat($$) {
warn "$::basename: ".quote($file).": format not known, identifying using file\n";
}
}
my @cmd = ($::cfg_path_file, '-b', '-L', '-z', '--', $file);
my @cmd = ($::cfg_path_file, '-b', '-L', '-z', '-S', '--', $file);
$spec = backticks(@cmd);
if (!defined $spec) {
warn "$::basename: $::errmsg\n";
Expand Down

0 comments on commit f37b2c1

Please sign in to comment.