diff options
author | 2022-09-26 09:32:13 -0400 | |
---|---|---|
committer | 2022-09-26 09:32:13 -0400 | |
commit | 8040833d74bd28e72e8ee8c7a28bf03139b7d368 (patch) | |
tree | cc6fee0b09466a0006995a23b33eb01beb6876f3 | |
parent | update ip addr list for --nettrace (diff) | |
download | firejail-8040833d74bd28e72e8ee8c7a28bf03139b7d368.tar.gz firejail-8040833d74bd28e72e8ee8c7a28bf03139b7d368.tar.zst firejail-8040833d74bd28e72e8ee8c7a28bf03139b7d368.zip |
fix --netlock (#5312)
-rw-r--r-- | src/firejail/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 72d930419..12c2cf02b 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -3227,7 +3227,7 @@ int main(int argc, char **argv, char **envp) { | |||
3227 | errExit("setresuid"); | 3227 | errExit("setresuid"); |
3228 | 3228 | ||
3229 | char arg[64]; | 3229 | char arg[64]; |
3230 | snprintf(arg, sizeof(arg), "--netlock=%d", getpid()); | 3230 | snprintf(arg, sizeof(arg), "--netlock=%d", sandbox_pid); |
3231 | 3231 | ||
3232 | char *cmd[3]; | 3232 | char *cmd[3]; |
3233 | cmd[0] = BINDIR "/firejail"; | 3233 | cmd[0] = BINDIR "/firejail"; |