Ticket #4219 (closed defect: invalid)
USE_FILE_CMD: seccomp Bad system call
Reported by: | anton_kg | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | mc-core | Version: | 4.8.25 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
Hi, I'm getting and error message when trying to "enter" into zip archive.
The error is the following:
file -L -z xxx.zip
xxx.zip: Bad system call
The call is here:
https://github.com/MidnightCommander/mc/blob/master/src/filemanager/ext.c#L75
"file -z"
A quick workaround is to add "-S" option:
-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 ex‐
ternal 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.
You might know a better solution
-S is tested and used if available:
https://github.com/MidnightCommander/mc/blob/master/configure.ac#L159
changeset:1ed638d66cf803f69ac12ee80a72d217f2146e43
Please show your config.log and config.h.