aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2020-08-10 07:31:38 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2020-08-10 07:31:38 -0400
commit66a0f7288fc627f1f9e2e6bb6f08a55cfb03e598 (patch)
tree0b8a49bbf7053b2e72698acfdd67c1549178a1f9
parentMerge branch 'release-0.9.62' of https://github.com/netblue30/firejail into r... (diff)
downloadfirejail-66a0f7288fc627f1f9e2e6bb6f08a55cfb03e598.tar.gz
firejail-66a0f7288fc627f1f9e2e6bb6f08a55cfb03e598.tar.zst
firejail-66a0f7288fc627f1f9e2e6bb6f08a55cfb03e598.zip
clean make cppcheck
-rw-r--r--README70
-rw-r--r--RELNOTES4
-rw-r--r--src/firejail/macros.c7
3 files changed, 72 insertions, 9 deletions
diff --git a/README b/README
index 1a7f5cea0..cf6579265 100644
--- a/README
+++ b/README
@@ -29,7 +29,7 @@ development libraries and pkg-config are required when using --apparmor
29 29
30$ sudo apt-get install git build-essential libapparmor-dev pkg-config 30$ sudo apt-get install git build-essential libapparmor-dev pkg-config
31 31
32 32For --selinux option, add libselinux1-dev (libselinux-devel for Fedora).
33 33
34Maintainer: 34Maintainer:
35- netblue30 (netblue30@yahoo.com) 35- netblue30 (netblue30@yahoo.com)
@@ -37,8 +37,10 @@ Maintainer:
37Committers 37Committers
38- chiraag-nataraj (https://github.com/chiraag-nataraj) 38- chiraag-nataraj (https://github.com/chiraag-nataraj)
39- crass (https://github.com/crass) 39- crass (https://github.com/crass)
40- curiosityseeker (https://github.com/curiosityseeker)
40- glitsj16 (https://github.com/glitsj16) 41- glitsj16 (https://github.com/glitsj16)
41- Fred-Barclay (https://github.com/Fred-Barclay) 42- Fred-Barclay (https://github.com/Fred-Barclay)
43- Kristóf Marussy (https://github.com/kris7t)
42- Reiner Herrmann (https://github.com/reinerh - Debian/Ubuntu maintainer) 44- Reiner Herrmann (https://github.com/reinerh - Debian/Ubuntu maintainer)
43- rusty-snake (https://github.com/rusty-snake) 45- rusty-snake (https://github.com/rusty-snake)
44- smithsohu (https://github.com/smitsohu) 46- smithsohu (https://github.com/smitsohu)
@@ -53,13 +55,17 @@ Committers
53 55
54Firejail Authors (alphabetical order) 56Firejail Authors (alphabetical order)
55 57
567twin (https://github.com/7twin_ 580x7969 (https://github.com/0x7969)
59 - fix wire-desktop.profile
60 - add ferdi.profile
617twin (https://github.com/7twin_)
57 - fix typos 62 - fix typos
58 - fix flameshot raw screenshots 63 - fix flameshot raw screenshots
591dnrr (https://github.com/1dnrr) 641dnrr (https://github.com/1dnrr)
60 - add pybitmessage profile 65 - add pybitmessage profile
61Adrian L. Shaw (https://github.com/adrianlshaw) 66Adrian L. Shaw (https://github.com/adrianlshaw)
62 - add profanity profile 67 - add profanity profile
68 - add barrirer profile
63Aidan Gauland (https://github.com/aidalgol) 69Aidan Gauland (https://github.com/aidalgol)
64 - added electron and riot-web profiles 70 - added electron and riot-web profiles
65Akhil Hans Maulloo (https://github.com/kouul) 71Akhil Hans Maulloo (https://github.com/kouul)
@@ -89,11 +95,18 @@ Alexander Gerasiov (https://github.com/gerasiov)
89 - profile updates 95 - profile updates
90Alexander Stein (https://github.com/ajstein) 96Alexander Stein (https://github.com/ajstein)
91 - added profile for qutebrowser 97 - added profile for qutebrowser
98Amin Vakil (https://github.com/aminvakil)
99 - whois profile fix
100 - added profile for strawberry
101Andreas Hunkeler (https://github.com/Karneades)
102 - Add profile for offical Linux Teams application
92Andrey Alekseenko (https://github.com/al42and) 103Andrey Alekseenko (https://github.com/al42and)
93 - fixing lintian warnings 104 - fixing lintian warnings
94 - fixed Skype profile 105 - fixed Skype profile
95andrew160 (https://github.com/andrew160) 106andrew160 (https://github.com/andrew160)
96 - profile and man pages fixes 107 - profile and man pages fixes
108Andrew Branson (https://github.com/abranson)
109 - 32bit ARM syscall table
97announ (https://github.com/announ) 110announ (https://github.com/announ)
98 - mpv and youtube-dl profile fixes 111 - mpv and youtube-dl profile fixes
99 - git profile fix 112 - git profile fix
@@ -101,13 +114,20 @@ announ (https://github.com/announ)
101Antonio Russo (https://github.com/aerusso) 114Antonio Russo (https://github.com/aerusso)
102 - enumerate root directories in apparmor profile 115 - enumerate root directories in apparmor profile
103 - fix join-or-start 116 - fix join-or-start
117 - wusc fixes
118 - okular profile fixes
119 - manpage fixes
104aoand (https://github.com/aoand) 120aoand (https://github.com/aoand)
105 - seccomp fix: allow numeric syscalls 121 - seccomp fix: allow numeric syscalls
122Atrate (https://github.com/Atrate)
123 - BetterDiscord support
106Austin Morton (https://github.com/apmorton) 124Austin Morton (https://github.com/apmorton)
107 - deterministic-exit-code option 125 - deterministic-exit-code option
108 - private-cwd options 126 - private-cwd options
109Austin S. Hemmelgarn (https://github.com/Ferroin) 127Austin S. Hemmelgarn (https://github.com/Ferroin)
110 - unbound profile update 128 - unbound profile update
129Avi Lumelsky (https://github.com/avilum)
130 - syscall.sh improvements
111avoidr (https://github.com/avoidr) 131avoidr (https://github.com/avoidr)
112 - whitelist fix 132 - whitelist fix
113 - recently-used.xbel fix 133 - recently-used.xbel fix
@@ -156,10 +176,16 @@ BytesTuner (https://github.com/BytesTuner)
156 - provided keepassxc profile 176 - provided keepassxc profile
157caoliver (https://github.com/caoliver) 177caoliver (https://github.com/caoliver)
158 - network system fixes 178 - network system fixes
179Carlo Abelli (https://github.com/carloabelli)
180 - fixed udiskie profile
181 - Allow mbind syscall for GIMP
159Cat (https://github.com/ecat3) 182Cat (https://github.com/ecat3)
160 - prevent tmux connecting to an existing session 183 - prevent tmux connecting to an existing session
184Christian Pinedo (https://github.com/chrpinedo)
185 - added nicotine profile
161creideiki (https://github.com/creideiki) 186creideiki (https://github.com/creideiki)
162 - make the sandbox process reap all children 187 - make the sandbox process reap all children
188 - tor browser profile fix
163chiraag-nataraj (https://github.com/chiraag-nataraj) 189chiraag-nataraj (https://github.com/chiraag-nataraj)
164 - support for newer Xpra versions (2.1+) 190 - support for newer Xpra versions (2.1+)
165 - added Viber, amule, ardour5, brackets, calligra, cin, fetchmail profiles 191 - added Viber, amule, ardour5, brackets, calligra, cin, fetchmail profiles
@@ -178,7 +204,8 @@ crass (https://github.com/crass)
178 - extract_command_name fixes 204 - extract_command_name fixes
179 - update appimage size calculation to newest code from libappimage 205 - update appimage size calculation to newest code from libappimage
180 - firejail should look for processes with names exactly named 206 - firejail should look for processes with names exactly named
181curiosity-seeker (https://github.com/curiosity-seeker) 207curiosity-seeker (https://github.com/curiosity-seeker - old)
208curiosityseeker (https://github.com/curiosityseeker - new)
182 - tightening unbound and dnscrypt-proxy profiles 209 - tightening unbound and dnscrypt-proxy profiles
183 - correct and tighten QuiteRss profile 210 - correct and tighten QuiteRss profile
184 - dnsmasq profile 211 - dnsmasq profile
@@ -195,6 +222,8 @@ curiosity-seeker (https://github.com/curiosity-seeker)
195 - added cantata profile 222 - added cantata profile
196 - updated keypassxc profile 223 - updated keypassxc profile
197 - added syscalls.sh, which determine the necessary syscalls for a program 224 - added syscalls.sh, which determine the necessary syscalls for a program
225 - fixed conky profile
226 - thunderbird.profile: harden and enable the rules necessary to make Firefox open links
198da2x (https://github.com/da2x) 227da2x (https://github.com/da2x)
199 - matched RPM license tag 228 - matched RPM license tag
200Daan Bakker (https://github.com/dbakker) 229Daan Bakker (https://github.com/dbakker)
@@ -209,6 +238,8 @@ Dara Adib (https://github.com/daradib)
209 - evince profile fix 238 - evince profile fix
210David Thole (https://github.com/TheDarkTrumpet) 239David Thole (https://github.com/TheDarkTrumpet)
211 - added profile for teams-for-linux 240 - added profile for teams-for-linux
241Davide Beatrici (https://github.com/davidebeatrici)
242 - steam.profile: correctly blacklist unneeded directories in user's home
212Deelvesh Bunjun (https://github.com/DeelveshBunjun) 243Deelvesh Bunjun (https://github.com/DeelveshBunjun)
213 - added xpdf profile 244 - added xpdf profile
214Denys Havrysh (https://github.com/vutny) 245Denys Havrysh (https://github.com/vutny)
@@ -222,6 +253,9 @@ DiGitHubCap (https://github.com/DiGitHubCap)
222 - deluge profile fix 253 - deluge profile fix
223Disconnect3d (https://github.com/disconnect3d) 254Disconnect3d (https://github.com/disconnect3d)
224 - code cleanup 255 - code cleanup
256dmfreemon (https://github.com/dmfreemon)
257 - add sandbox name or name of private directory to the window title when xpra is used
258 - handle malloc() failures; use gnu_basename() instead of basenaem()
225dshmgh (https://github.com/dshmgh) 259dshmgh (https://github.com/dshmgh)
226 - overlayfs fix for systems with /home mounted on a separate partition 260 - overlayfs fix for systems with /home mounted on a separate partition
227Duncan Overbruck (https://github.com/Duncaen) 261Duncan Overbruck (https://github.com/Duncaen)
@@ -242,6 +276,10 @@ Fabian Würfl (https://github.com/BafDyce)
242 - Liferea profile 276 - Liferea profile
243Felipe Barriga Richards (https://github.com/fbarriga) 277Felipe Barriga Richards (https://github.com/fbarriga)
244 - --private-etc fix 278 - --private-etc fix
279Florian Begusch (https://github.com/florianbegusch)
280 - (la)tex profiles
281 - fixed transmission-common.profile
282 - fixed standardnotes-desktop.profile
245floxo (https://github.com/floxo) 283floxo (https://github.com/floxo)
246 - fixed qml disk cache issue 284 - fixed qml disk cache issue
247Franco (nextime) Lanza (https://github.com/nextime) 285Franco (nextime) Lanza (https://github.com/nextime)
@@ -332,6 +370,8 @@ glitsj16 (https://github.com/glitsj16)
332 - new profiles: masterpdfeditor 370 - new profiles: masterpdfeditor
333gm10 (https://github.com/gm10) 371gm10 (https://github.com/gm10)
334 - get_user() do not use the unreliable getlogin() 372 - get_user() do not use the unreliable getlogin()
373GovanifY (https://github.com/GovanifY)
374 - Blacklisting openrc paths by defaults
335graywolf (https://github.com/graywolf) 375graywolf (https://github.com/graywolf)
336 - spelling fix 376 - spelling fix
337greigdp (https://github.com/greigdp) 377greigdp (https://github.com/greigdp)
@@ -343,8 +383,12 @@ grizzlyuser (https://github.com/grizzlyuser)
343 - added support for youtube-dl in smplayer profile 383 - added support for youtube-dl in smplayer profile
344GSI (https://github.com/GSI) 384GSI (https://github.com/GSI)
345 - added Uzbl browser profile 385 - added Uzbl browser profile
386haarp (https://github.com/haarp)
387 - Allow sound for hexchat
346hamzadis (https://github.com/hamzadis) 388hamzadis (https://github.com/hamzadis)
347 - added --overlay-named=name and --overlay-path=path 389 - added --overlay-named=name and --overlay-path=path
390Hans-Christoph Steiner (https://github.com/eighthave)
391 - added xournal profile
348hawkey116477 (https://github.com/hawkeye116477) 392hawkey116477 (https://github.com/hawkeye116477)
349 - added Waterfox profile 393 - added Waterfox profile
350 - updated Cyberfox profile 394 - updated Cyberfox profile
@@ -444,6 +488,10 @@ Kishore96in (https://github.com/Kishore96in)
444 - added falkon profile 488 - added falkon profile
445KOLANICH (https://github.com/KOLANICH) 489KOLANICH (https://github.com/KOLANICH)
446 - added symlink fixer fix_private-bin.py in contrib section 490 - added symlink fixer fix_private-bin.py in contrib section
491 - update fix_private-bin.py
492 - fix meld
493Kristóf Marussy (https://github.com/kris7t)
494 - dns support
447Kunal Mehta (https://github.com/legoktm) 495Kunal Mehta (https://github.com/legoktm)
448 - converted all links to https in manpages 496 - converted all links to https in manpages
449laniakea64 (https://github.com/laniakea64) 497laniakea64 (https://github.com/laniakea64)
@@ -456,12 +504,17 @@ LaurentGH (https://github.com/LaurentGH)
456 - allow private-bin parameters to be absolute paths 504 - allow private-bin parameters to be absolute paths
457Loïc Damien (https://github.com/dzamlo) 505Loïc Damien (https://github.com/dzamlo)
458 - small fixes 506 - small fixes
507Liorst4 (https://github.com/Liorst4)
508 - Preserve CFLAGS given to configure in common.mk.in
509 - fix emacs config to load as read-write
459Lockdis (https://github.com/Lockdis) 510Lockdis (https://github.com/Lockdis)
460 - Added crow, nyx, and google-earth-pro profiles 511 - Added crow, nyx, and google-earth-pro profiles
461Lukáš Krejčí (https://github.com/lskrejci) 512Lukáš Krejčí (https://github.com/lskrejci)
462 - fixed parsing of --keep-var-tmp 513 - fixed parsing of --keep-var-tmp
463luzpaz (https://github.com/luzpaz) 514luzpaz (https://github.com/luzpaz)
464 - code spelling fixes 515 - code spelling fixes
516Mace Muilman (https://github.com/mace015)
517 - google-chrome{,beta,unstable} flags
465maces (https://github.com/maces) 518maces (https://github.com/maces)
466 - Franz messenger profile 519 - Franz messenger profile
467Madura A (https://github.com/manushanga) 520Madura A (https://github.com/manushanga)
@@ -486,6 +539,7 @@ Matthew Gyurgyik (https://github.com/pyther)
486matu3ba (https://github.com/matu3ba) 539matu3ba (https://github.com/matu3ba)
487 - evince hardening, dbus removed 540 - evince hardening, dbus removed
488 - fix dia profile 541 - fix dia profile
542 - several template fixes
489maxice8 (https://github.com/maxice8) 543maxice8 (https://github.com/maxice8)
490 - fixed missing header 544 - fixed missing header
491Melvin Vermeeren (https://github.com/melvinvermeeren) 545Melvin Vermeeren (https://github.com/melvinvermeeren)
@@ -503,6 +557,8 @@ mustaqimM (https://github.com/mustaqimM)
503 - added profile for Nylas Mail 557 - added profile for Nylas Mail
504n1trux (https://github.com/n1trux) 558n1trux (https://github.com/n1trux)
505 - fix flashpeak-slimjet profile typos 559 - fix flashpeak-slimjet profile typos
560nblock (https://github.com/nblock)
561 - cmus: allow access to resolv.conf
506Nick Fox (https://github.com/njfox) 562Nick Fox (https://github.com/njfox)
507 - add a profile alias for code-oss 563 - add a profile alias for code-oss
508 - add code-oss config directory 564 - add code-oss config directory
@@ -546,6 +602,8 @@ Peter Hogg (https://github.com/pigmonkey)
546 - bitlbee profile fixes 602 - bitlbee profile fixes
547 - mutt profile fixes 603 - mutt profile fixes
548 - fixes for youtube-dl in mpv profile 604 - fixes for youtube-dl in mpv profile
605Peter Sanford (https://github.com/psanford)
606 - fix QtWebEngine in zoom
549Petter Reinholdtsen (pere@hungry.com) 607Petter Reinholdtsen (pere@hungry.com)
550 - Opera profile patch 608 - Opera profile patch
551PharmaceuticalCobweb (https://github.com/PharmaceuticalCobweb) 609PharmaceuticalCobweb (https://github.com/PharmaceuticalCobweb)
@@ -565,6 +623,8 @@ PizzaDude (https://github.com/pizzadude)
565 - added profile for torbrowser-launcher 623 - added profile for torbrowser-launcher
566 - added profile for sayonara and qmmp 624 - added profile for sayonara and qmmp
567 - remove tracelog from Firefox profile 625 - remove tracelog from Firefox profile
626polyzen (https://github.com/polyzen)
627 - fixed wusc issue with mpv/Vulkan
568probonopd (https://github.com/probonopd) 628probonopd (https://github.com/probonopd)
569 - automatic build on Travis CI 629 - automatic build on Travis CI
570pshpsh (https://github.com/pshpsh) 630pshpsh (https://github.com/pshpsh)
@@ -579,6 +639,7 @@ Quentin Minster (https://github.com/laomaiweng)
579 - propagate --quiet to children Firejail'ed processes 639 - propagate --quiet to children Firejail'ed processes
580 - nodbus enhancements/bugfixes 640 - nodbus enhancements/bugfixes
581 - added vim syntax and ftdetect files 641 - added vim syntax and ftdetect files
642 - Allow exec from /usr/libexec & co. with AppArmor
582Rafael Cavalcanti (https://github.com/rccavalcanti) 643Rafael Cavalcanti (https://github.com/rccavalcanti)
583 - chromium profile fixes for Arch Linux 644 - chromium profile fixes for Arch Linux
584Rahiel Kasim (https://github.com/rahiel) 645Rahiel Kasim (https://github.com/rahiel)
@@ -739,6 +800,7 @@ StelFux (https://github.com/StelFux)
739 - Fix youtube video in totem 800 - Fix youtube video in totem
740the-antz (https://github.com/the-antz) 801the-antz (https://github.com/the-antz)
741 - Fix libx265 encoding in ffmpeg profile 802 - Fix libx265 encoding in ffmpeg profile
803 - Fix Firefox profile
742 - Profile tweaks 804 - Profile tweaks
743thewisenerd (https://github.com/thewisenerd) 805thewisenerd (https://github.com/thewisenerd)
744 - allow multiple private-home commands 806 - allow multiple private-home commands
@@ -859,4 +921,4 @@ Zack Weinberg (https://github.com/zackw)
859 with firejail --x11 921 with firejail --x11
860 - support for xpra-extra-params in firejail.config 922 - support for xpra-extra-params in firejail.config
861 923
862Copyright (C) 2014-2019 Firejail Authors 924Copyright (C) 2014-2020 Firejail Authors
diff --git a/RELNOTES b/RELNOTES
index d31145c83..cd7c6f33b 100644
--- a/RELNOTES
+++ b/RELNOTES
@@ -1,5 +1,4 @@
1firejail (0.9.62.2) baseline; urgency=low 1firejail (0.9.62.2) baseline; urgency=low
2 * work in progress
3 * patches from Debian (firejail 0.9.62-3, sid): 2 * patches from Debian (firejail 0.9.62-3, sid):
4 profile-fixes.patch, apparmor-include.patch 3 profile-fixes.patch, apparmor-include.patch
5 * patches from Debian (firejail 0.9.64-4, sid) 4 * patches from Debian (firejail 0.9.64-4, sid)
@@ -8,7 +7,8 @@ firejail (0.9.62.2) baseline; urgency=low
8 * patches from Debian (firejail 0.9.64-4, sid) 7 * patches from Debian (firejail 0.9.64-4, sid)
9 element-profile.patch, usrsharedoc.patch, 8 element-profile.patch, usrsharedoc.patch,
10 pathnames.patch, usr-share-firefox.patch 9 pathnames.patch, usr-share-firefox.patch
11 -- netblue30 <netblue30@yahoo.com> Fri, 7 Aug 2020 08:00:00 -0500 10 * additional hardening and bug fixes
11 -- netblue30 <netblue30@yahoo.com> Fri, 10 Aug 2020 08:00:00 -0500
12 12
13firejail (0.9.62) baseline; urgency=low 13firejail (0.9.62) baseline; urgency=low
14 * added file-copy-limit in /etc/firejail/firejail.config 14 * added file-copy-limit in /etc/firejail/firejail.config
diff --git a/src/firejail/macros.c b/src/firejail/macros.c
index ef64178b5..17ccbdff2 100644
--- a/src/firejail/macros.c
+++ b/src/firejail/macros.c
@@ -300,13 +300,14 @@ void invalid_filename(const char *fname, int globbing) {
300 size_t i = 0; 300 size_t i = 0;
301 while (ptr[i] != '\0') { 301 while (ptr[i] != '\0') {
302 if (iscntrl((unsigned char) ptr[i])) { 302 if (iscntrl((unsigned char) ptr[i])) {
303 fprintf(stderr, "Error: \"%s\" is an invalid filename: no control characters allowed\n", 303 char *msg = fix_control_chars(fname);
304 fix_control_chars(fname)); 304 fprintf(stderr, "Error: \"%s\" is an invalid filename: no control characters allowed\n", msg);
305 free(msg);
305 exit(1); 306 exit(1);
306 } 307 }
307 i++; 308 i++;
308 } 309 }
309 310
310 char *reject; 311 char *reject;
311 if (globbing) 312 if (globbing)
312 reject = "\\&!\"'<>%^{};,"; // file globbing ('*?[]') is allowed 313 reject = "\\&!\"'<>%^{};,"; // file globbing ('*?[]') is allowed