aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2020-10-13 07:38:38 -0500
committerLibravatar GitHub <noreply@github.com>2020-10-13 07:38:38 -0500
commitd79cbe29872d937406812136f5f1be3209f98394 (patch)
tree5e28fcba482069710ec6d88fee71846c11be2dee
parentman: call preproc.awk via Makefile, as the shebang hardcodes the path (diff)
parentallowing links in netns (diff)
downloadfirejail-d79cbe29872d937406812136f5f1be3209f98394.tar.gz
firejail-d79cbe29872d937406812136f5f1be3209f98394.tar.zst
firejail-d79cbe29872d937406812136f5f1be3209f98394.zip
Merge pull request #3664 from dpellegr/master
Allowing links in netns
-rw-r--r--src/firejail/netns.c2
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);