aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README6
-rw-r--r--etc/profile-a-l/fdns.profile8
-rw-r--r--src/firejail/main.c14
-rw-r--r--src/firejail/netns.c2
4 files changed, 22 insertions, 8 deletions
diff --git a/README b/README
index f6e384d4a..316ea0bdc 100644
--- a/README
+++ b/README
@@ -176,6 +176,8 @@ BogDan Vatra (https://github.com/bog-dan-ro)
176 - zoom profile 176 - zoom profile
177Brad Ackerman 177Brad Ackerman
178 - blacklist Bitwarden config in disable-passwdmgr.inc 178 - blacklist Bitwarden config in disable-passwdmgr.inc
179briaeros (https://github.com/briaeros)
180 - fix command test in jail_prober.py
179Bruno Nova (https://github.com/brunonova) 181Bruno Nova (https://github.com/brunonova)
180 - whitelist fix 182 - whitelist fix
181 - bash arguments fix 183 - bash arguments fix
@@ -249,6 +251,8 @@ Danil Semelenov (https://github.com/sgtpep)
249Dara Adib (https://github.com/daradib) 251Dara Adib (https://github.com/daradib)
250 - ssh profile fix 252 - ssh profile fix
251 - evince profile fix 253 - evince profile fix
254Dario Pellegrini (https://github.com/dpellegr)
255 - allowing links in netns
252David Thole (https://github.com/TheDarkTrumpet) 256David Thole (https://github.com/TheDarkTrumpet)
253 - added profile for teams-for-linux 257 - added profile for teams-for-linux
254Davide Beatrici (https://github.com/davidebeatrici) 258Davide Beatrici (https://github.com/davidebeatrici)
@@ -583,7 +587,7 @@ mirabellette (https://github.com/mirabellette)
583mjudtmann (https://github.com/mjudtmann) 587mjudtmann (https://github.com/mjudtmann)
584 - lock firejail configuration in disable-mgmt.inc 588 - lock firejail configuration in disable-mgmt.inc
585mustaqimM (https://github.com/mustaqimM) 589mustaqimM (https://github.com/mustaqimM)
586 - added profile for Nylas Mail 590 - added profile for Nylas Mail
587n1trux (https://github.com/n1trux) 591n1trux (https://github.com/n1trux)
588 - fix flashpeak-slimjet profile typos 592 - fix flashpeak-slimjet profile typos
589nblock (https://github.com/nblock) 593nblock (https://github.com/nblock)
diff --git a/etc/profile-a-l/fdns.profile b/etc/profile-a-l/fdns.profile
index 179540806..31cb1776c 100644
--- a/etc/profile-a-l/fdns.profile
+++ b/etc/profile-a-l/fdns.profile
@@ -29,20 +29,20 @@ no3d
29nodvd 29nodvd
30nogroups 30nogroups
31nonewprivs 31nonewprivs
32# noroot 32noroot
33nosound 33nosound
34notv 34notv
35nou2f 35nou2f
36novideo 36novideo
37protocol unix,inet,inet6 37protocol unix,inet,inet6,netlink
38#seccomp 38#seccomp
39#shell none 39#shell none
40 40
41disable-mnt 41disable-mnt
42private 42private
43private-bin bash,fdns,sh 43private-bin bash,fdns,sh
44# private-cache 44private-cache
45private-dev 45#private-dev
46private-etc ca-certificates,crypto-policies,fdns,ld.so.cache,ld.so.preload,localtime,nsswitch.conf,passwd,pki,ssl 46private-etc ca-certificates,crypto-policies,fdns,ld.so.cache,ld.so.preload,localtime,nsswitch.conf,passwd,pki,ssl
47# private-lib 47# private-lib
48private-tmp 48private-tmp
diff --git a/src/firejail/main.c b/src/firejail/main.c
index daa924698..06f81a987 100644
--- a/src/firejail/main.c
+++ b/src/firejail/main.c
@@ -3080,17 +3080,27 @@ int main(int argc, char **argv, char **envp) {
3080 // end of signal-safe code 3080 // end of signal-safe code
3081 //***************************** 3081 //*****************************
3082 3082
3083#if 0
3084// at this point the sandbox was closed and we are on our way out
3085// it would make sense to move this before waitpid above to free some memory
3086// crash for now as of issue #3662 from dhcp code
3083 // free globals 3087 // free globals
3084 if (cfg.profile) { 3088 if (cfg.profile) {
3085 ProfileEntry *prf = cfg.profile; 3089 ProfileEntry *prf = cfg.profile;
3086 while (prf != NULL) { 3090 while (prf != NULL) {
3087 ProfileEntry *next = prf->next; 3091 ProfileEntry *next = prf->next;
3088 free(prf->data); 3092printf("data #%s#\n", prf->data);
3089 free(prf->link); 3093 if (prf->data)
3094 free(prf->data);
3095printf("link #%s#\n", prf->link);
3096 if (prf->link)
3097 free(prf->link);
3090 free(prf); 3098 free(prf);
3091 prf = next; 3099 prf = next;
3092 } 3100 }
3093 } 3101 }
3102#endif
3103
3094 3104
3095 if (WIFEXITED(status)){ 3105 if (WIFEXITED(status)){
3096 myexit(WEXITSTATUS(status)); 3106 myexit(WEXITSTATUS(status));
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);