diff options
author | 2020-10-12 19:23:56 +0200 | |
---|---|---|
committer | 2020-10-12 19:23:56 +0200 | |
commit | 915f279a90a7493b4cd6e27314af6dab66c998ba (patch) | |
tree | 5e28fcba482069710ec6d88fee71846c11be2dee /src | |
parent | man: call preproc.awk via Makefile, as the shebang hardcodes the path (diff) | |
download | firejail-915f279a90a7493b4cd6e27314af6dab66c998ba.tar.gz firejail-915f279a90a7493b4cd6e27314af6dab66c998ba.tar.zst firejail-915f279a90a7493b4cd6e27314af6dab66c998ba.zip |
allowing links in netns
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/netns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/netns.c b/src/firejail/netns.c index 104453376..7ccff3265 100644 --- a/src/firejail/netns.c +++ b/src/firejail/netns.c | |||
@@ -60,7 +60,7 @@ void check_netns(const char *nsname) { | |||
60 | nsname, control_file, strerror(errno)); | 60 | nsname, control_file, strerror(errno)); |
61 | exit(1); | 61 | exit(1); |
62 | } | 62 | } |
63 | if (!S_ISREG(st.st_mode)) { | 63 | if (!S_ISREG(st.st_mode) && !S_ISLNK(st.st_mode)) { |
64 | fprintf(stderr, "Error: invalid netns '%s' (%s: not a regular file)\n", | 64 | fprintf(stderr, "Error: invalid netns '%s' (%s: not a regular file)\n", |
65 | nsname, control_file); | 65 | nsname, control_file); |
66 | exit(1); | 66 | exit(1); |