profile fixes

This commit is contained in:
netblue30 2016-04-13 09:48:54 -04:00
parent 0d0233986f
commit eecbcd355e
12 changed files with 31 additions and 26 deletions

View file

@ -160,6 +160,7 @@ realinstall:
install -c -m 0644 .etc/dillo.profile $(DESTDIR)/$(sysconfdir)/firejail/. install -c -m 0644 .etc/dillo.profile $(DESTDIR)/$(sysconfdir)/firejail/.
install -c -m 0644 .etc/cmus.profile $(DESTDIR)/$(sysconfdir)/firejail/. install -c -m 0644 .etc/cmus.profile $(DESTDIR)/$(sysconfdir)/firejail/.
install -c -m 0644 .etc/dnsmasq.profile $(DESTDIR)/$(sysconfdir)/firejail/. install -c -m 0644 .etc/dnsmasq.profile $(DESTDIR)/$(sysconfdir)/firejail/.
install -c -m 0644 .etc/palemoon.profile $(DESTDIR)/$(sysconfdir)/firejail/.
sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/firejail/login.users ]; then install -c -m 0644 etc/login.users $(DESTDIR)/$(sysconfdir)/firejail/.; fi;" sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/firejail/login.users ]; then install -c -m 0644 etc/login.users $(DESTDIR)/$(sysconfdir)/firejail/.; fi;"
sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/firejail/firejail.config ]; then install -c -m 0644 etc/firejail.config $(DESTDIR)/$(sysconfdir)/firejail/.; fi;" sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/firejail/firejail.config ]; then install -c -m 0644 etc/firejail.config $(DESTDIR)/$(sysconfdir)/firejail/.; fi;"
rm -fr .etc rm -fr .etc

28
README
View file

@ -18,6 +18,21 @@ License: GPL v2
Firejail Authors: Firejail Authors:
netblue30 (netblue30@yahoo.com) netblue30 (netblue30@yahoo.com)
Fred-Barclay (https://github.com/Fred-Barclay)
- added Vivaldi, Atril profiles
- added PaleMoon profile
avoidr (https://github.com/avoidr)
- whitelist fix
- recently-used.xbel fix
- added parole profile
- blacklist ncat, manpage fixes,
- hostname support in profile file
- Google Chrome profile rework
- added cmus profile
- man page fixes
- add net iface support in profile files
- paths fix
- lots of profile fixes
Petter Reinholdtsen (pere@hungry.com) Petter Reinholdtsen (pere@hungry.com)
- Opera profile patch - Opera profile patch
n1trux (https://github.com/n1trux) n1trux (https://github.com/n1trux)
@ -30,8 +45,6 @@ Benjamin Kampmann (https://github.com/ligthyear)
- Forward exit code from child process - Forward exit code from child process
dshmgh (https://github.com/dshmgh) dshmgh (https://github.com/dshmgh)
- overlayfs fix for systems with /home mounted on a separate partition - overlayfs fix for systems with /home mounted on a separate partition
Fred-Barclay (https://github.com/Fred-Barclay)
- added Vivaldi, Atril profiles
yumkam (https://github.com/yumkam) yumkam (https://github.com/yumkam)
- add compile-time option to restrict --net= to root only - add compile-time option to restrict --net= to root only
- man page fixes - man page fixes
@ -95,17 +108,6 @@ Peter Hogg (https://github.com/pigmonkey)
- rtorrent profile - rtorrent profile
rogshdo (https://github.com/rogshdo) rogshdo (https://github.com/rogshdo)
- BitlBee profile - BitlBee profile
avoidr (https://github.com/avoidr)
- whitelist fix
- recently-used.xbel fix
- added parole profile
- blacklist ncat, manpage fixes,
- hostname support in profile file
- Google Chrome profile rework
- added cmus profile
- man page fixes
- add net iface support in profile files
- paths fix
Bruno Nova (https://github.com/brunonova) Bruno Nova (https://github.com/brunonova)
- whitelist fix - whitelist fix
- bash arguments fix - bash arguments fix

View file

@ -281,5 +281,5 @@ $ man firejail-profile
## New security profiles ## New security profiles
lxterminal, Epiphany, cherrytree, Polari, Vivaldi, Atril, qutebrowser, SlimJet, Battle for Wesnoth, Hedgewars, qTox, lxterminal, Epiphany, cherrytree, Polari, Vivaldi, Atril, qutebrowser, SlimJet, Battle for Wesnoth, Hedgewars, qTox,
OpenSSH client, OpenBox window manager, Dillo, cmus, dnsmasq. OpenSSH client, OpenBox window manager, Dillo, cmus, dnsmasq, PaleMoon

View file

@ -18,6 +18,7 @@ firejail (0.9.40-rc1) baseline; urgency=low
* new profiles: lxterminal, Epiphany, cherrytree, Polari, Vivaldi, Atril * new profiles: lxterminal, Epiphany, cherrytree, Polari, Vivaldi, Atril
* new profiles: qutebrowser, SlimJet, Battle for Wesnoth, Hedgewars * new profiles: qutebrowser, SlimJet, Battle for Wesnoth, Hedgewars
* new profiles: qTox, OpenSSH client, OpenBox, Dillo, cmus, dnsmasq * new profiles: qTox, OpenSSH client, OpenBox, Dillo, cmus, dnsmasq
* new profiles: PaleMoon
* build rpm packages using "make rpms" * build rpm packages using "make rpms"
* bugfixes * bugfixes
-- netblue30 <netblue30@yahoo.com> Sun, 3 Apr 2016 08:00:00 -0500 -- netblue30 <netblue30@yahoo.com> Sun, 3 Apr 2016 08:00:00 -0500

View file

@ -40,7 +40,7 @@ blacklist /usr/bin/python2*
blacklist /usr/lib/python2* blacklist /usr/lib/python2*
blacklist /usr/local/lib/python2* blacklist /usr/local/lib/python2*
blacklist /usr/include/python2* blacklist /usr/include/python2*
blacklist /usr/share/python2* #If this exists (not on my machine). blacklist /usr/share/python2*
# Python 3 # Python 3
blacklist /usr/bin/python3* blacklist /usr/bin/python3*

View file

@ -80,3 +80,4 @@
/etc/firejail/dillo.profile /etc/firejail/dillo.profile
/etc/firejail/cmus.profile /etc/firejail/cmus.profile
/etc/firejail/dnsmasq.profile /etc/firejail/dnsmasq.profile
/etc/firejail/palemoon.profile

View file

@ -501,7 +501,7 @@ void fs_blacklist(void) {
char *new_name = expand_home(ptr, homedir); char *new_name = expand_home(ptr, homedir);
ptr = new_name; ptr = new_name;
// expand path macro - look for the file in /usr/local/bin, /bin, /usr/bin, /sbin and /usr/sbin directories // expand path macro - look for the file in /usr/local/bin, /usr/local/sbin, /bin, /usr/bin, /sbin and /usr/sbin directories
if (ptr) { if (ptr) {
if (strncmp(ptr, "${PATH}", 7) == 0) { if (strncmp(ptr, "${PATH}", 7) == 0) {
char *fname = ptr + 7; char *fname = ptr + 7;

View file

@ -15,7 +15,7 @@ expect {
} }
expect { expect {
timeout {puts "TESTING ERROR 3\n";exit} timeout {puts "TESTING ERROR 3\n";exit}
"parent is shutting down" "Parent is shutting down"
} }
sleep 1 sleep 1

View file

@ -15,7 +15,7 @@ expect {
} }
expect { expect {
timeout {puts "TESTING ERROR 2\n";exit} timeout {puts "TESTING ERROR 2\n";exit}
"parent is shutting down, bye" "Parent is shutting down, bye"
} }
sleep 1 sleep 1

View file

@ -16,7 +16,7 @@ expect {
expect { expect {
timeout {puts "TESTING ERROR 2\n";exit} timeout {puts "TESTING ERROR 2\n";exit}
"after mount" {puts "TESTING ERROR 2.1\n";exit} "after mount" {puts "TESTING ERROR 2.1\n";exit}
"parent is shutting down" "Parent is shutting down"
} }
sleep 1 sleep 1
@ -32,7 +32,7 @@ expect {
expect { expect {
timeout {puts "TESTING ERROR 5\n";exit} timeout {puts "TESTING ERROR 5\n";exit}
"after mount" {puts "TESTING ERROR 5.1\n";exit} "after mount" {puts "TESTING ERROR 5.1\n";exit}
"parent is shutting down" "Parent is shutting down"
} }
puts "\nall done\n" puts "\nall done\n"

View file

@ -11,7 +11,7 @@ expect {
} }
expect { expect {
timeout {puts "TESTING ERROR 2\n";exit} timeout {puts "TESTING ERROR 2\n";exit}
"parent is shutting down" "Parent is shutting down"
} }
sleep 2 sleep 2
@ -27,7 +27,7 @@ expect {
} }
expect { expect {
timeout {puts "TESTING ERROR 5\n";exit} timeout {puts "TESTING ERROR 5\n";exit}
"parent is shutting down" "Parent is shutting down"
} }
sleep 2 sleep 2
@ -39,7 +39,7 @@ expect {
} }
expect { expect {
timeout {puts "TESTING ERROR 12\n";exit} timeout {puts "TESTING ERROR 12\n";exit}
"parent is shutting down" "Parent is shutting down"
} }
sleep 2 sleep 2
@ -55,7 +55,7 @@ expect {
} }
expect { expect {
timeout {puts "TESTING ERROR 15\n";exit} timeout {puts "TESTING ERROR 15\n";exit}
"parent is shutting down" "Parent is shutting down"
} }
sleep 2 sleep 2
@ -71,7 +71,7 @@ expect {
} }
expect { expect {
timeout {puts "TESTING ERROR 25\n";exit} timeout {puts "TESTING ERROR 25\n";exit}
"parent is shutting down" "Parent is shutting down"
} }
sleep 2 sleep 2

View file

@ -23,7 +23,7 @@ expect {
} }
expect { expect {
timeout {puts "TESTING ERROR 4\n";exit} timeout {puts "TESTING ERROR 4\n";exit}
"parent is shutting down, bye..." "Parent is shutting down, bye..."
} }
puts "\nall done\n" puts "\nall done\n"