| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5a976cb commit 3607684
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,9 +19,13 @@ if (spawnSync('strace').error !== undefined) { | |||
| 19 | 19 | const allowedOpenCalls = new Set([ | |
| 20 | 20 | '/etc/ssl/openssl.cnf', | |
| 21 | 21 | ]); | |
| 22 | + const syscalls = ['openat']; | ||
| 23 | + if (process.arch !== 'riscv64' && process.arch !== 'riscv32') { | ||
| 24 | + syscalls.push('open'); | ||
| 25 | + } | ||
| 22 | 26 | const strace = spawn('strace', [ | |
| 23 | 27 | '-f', '-ff', | |
| 24 | - '-e', 'trace=open,openat', | ||
| 28 | + '-e', `trace=${syscalls.join(',')}`, | ||
| 25 | 29 | '-s', '512', | |
| 26 | 30 | '-D', process.execPath, '-e', 'require("crypto")', | |
| 27 | 31 | ]); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments