aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-06-19 21:08:52 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2017-06-19 21:08:52 -0400
commite4b03bc316965e6e27bb88d340a5fe0b34669ca1 (patch)
tree02f12d41e2444d43131ca01deed1df61c607eb2a
parentmplayer and smplayer profiles (diff)
downloadfirejail-e4b03bc316965e6e27bb88d340a5fe0b34669ca1.tar.gz
firejail-e4b03bc316965e6e27bb88d340a5fe0b34669ca1.tar.zst
firejail-e4b03bc316965e6e27bb88d340a5fe0b34669ca1.zip
added calibre profile
-rw-r--r--README.md2
-rw-r--r--etc/calibre.profile35
-rw-r--r--etc/disable-programs.inc2
-rw-r--r--etc/ebook-viewer.profile10
-rw-r--r--platform/debian/conffiles2
-rw-r--r--src/firecfg/firecfg.config2
-rw-r--r--src/firejail/x11.c4
7 files changed, 54 insertions, 3 deletions
diff --git a/README.md b/README.md
index b9b50d788..aef7e96fa 100644
--- a/README.md
+++ b/README.md
@@ -66,5 +66,5 @@ Use this issue to request new profiles: https://github.com/netblue30/firejail/is
66 66
67## New profiles: 67## New profiles:
68 68
69curl, mplayer2, SMPlayer 69curl, mplayer2, SMPlayer, Calibre, ebook-viewer
70 70
diff --git a/etc/calibre.profile b/etc/calibre.profile
new file mode 100644
index 000000000..b75e0c276
--- /dev/null
+++ b/etc/calibre.profile
@@ -0,0 +1,35 @@
1# Persistent global definitions go here
2include /etc/firejail/globals.local
3
4# This file is overwritten during software install.
5# Persistent customizations should go in a .local file.
6include /etc/firejail/calibre.local
7
8noblacklist ~/.config/calibre
9noblacklist ~/.cache/calibre
10
11include /etc/firejail/disable-common.inc
12include /etc/firejail/disable-programs.inc
13#include /etc/firejail/disable-devel.inc
14include /etc/firejail/disable-passwdmgr.inc
15
16caps.drop all
17#ipc-namespace
18netfilter
19no3d
20nogroups
21nonewprivs
22noroot
23nosound
24novideo
25protocol unix,inet,inet6
26seccomp
27shell none
28tracelog
29
30#private-bin
31private-dev
32private-tmp
33
34noexec ${HOME}
35noexec /tmp
diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc
index 3b2c150fc..7a3ca37ed 100644
--- a/etc/disable-programs.inc
+++ b/etc/disable-programs.inc
@@ -62,6 +62,7 @@ blacklist ${HOME}/.config/borg
62blacklist ${HOME}/.config/brasero 62blacklist ${HOME}/.config/brasero
63blacklist ${HOME}/.config/brave 63blacklist ${HOME}/.config/brave
64blacklist ${HOME}/.config/caja 64blacklist ${HOME}/.config/caja
65blacklist ${HOME}/.config/calibre
65blacklist ${HOME}/.config/catfish 66blacklist ${HOME}/.config/catfish
66blacklist ${HOME}/.config/cherrytree 67blacklist ${HOME}/.config/cherrytree
67blacklist ${HOME}/.config/chromium 68blacklist ${HOME}/.config/chromium
@@ -361,6 +362,7 @@ blacklist ${HOME}/.cache/INRIA
361blacklist ${HOME}/.cache/QuiteRss 362blacklist ${HOME}/.cache/QuiteRss
362blacklist ${HOME}/.cache/attic 363blacklist ${HOME}/.cache/attic
363blacklist ${HOME}/.cache/borg 364blacklist ${HOME}/.cache/borg
365blacklist ${HOME}/.cache/calibre
364blacklist ${HOME}/.cache/champlain 366blacklist ${HOME}/.cache/champlain
365blacklist ${HOME}/.cache/chromium 367blacklist ${HOME}/.cache/chromium
366blacklist ${HOME}/.cache/qupzilla 368blacklist ${HOME}/.cache/qupzilla
diff --git a/etc/ebook-viewer.profile b/etc/ebook-viewer.profile
new file mode 100644
index 000000000..ba28e3550
--- /dev/null
+++ b/etc/ebook-viewer.profile
@@ -0,0 +1,10 @@
1# Persistent global definitions go here
2include /etc/firejail/globals.local
3
4# This file is overwritten during software install.
5# Persistent customizations should go in a .local file.
6include /etc/firejail/ebook-viewer.local
7
8# Firejail profile for ebook-viewer (Calibre)
9include /etc/firejail/calibre.profile
10net none
diff --git a/platform/debian/conffiles b/platform/debian/conffiles
index ad01c9b2a..05b5a819f 100644
--- a/platform/debian/conffiles
+++ b/platform/debian/conffiles
@@ -310,3 +310,5 @@
310/etc/firejail/curl.profile 310/etc/firejail/curl.profile
311/etc/firejail/mplayer.profile 311/etc/firejail/mplayer.profile
312/etc/firejail/smplayer.profile 312/etc/firejail/smplayer.profile
313/etc/firejail/ebook-viewer.profile
314/etc/firejail/calibre.profile
diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config
index 7bac70887..1ac8234ab 100644
--- a/src/firecfg/firecfg.config
+++ b/src/firecfg/firecfg.config
@@ -23,6 +23,7 @@ bless
23blender 23blender
24brasero 24brasero
25brave 25brave
26calibre
26catfish 27catfish
27cherrytree 28cherrytree
28chromium 29chromium
@@ -50,6 +51,7 @@ dolphin
50dosbox 51dosbox
51dragon 52dragon
52dropbox 53dropbox
54ebook-viewer
53elinks 55elinks
54empathy 56empathy
55eog 57eog
diff --git a/src/firejail/x11.c b/src/firejail/x11.c
index 5ce156603..79ebc3b1b 100644
--- a/src/firejail/x11.c
+++ b/src/firejail/x11.c
@@ -639,7 +639,7 @@ void x11_start_xpra(int argc, char **argv) {
639 639
640 // build the start command 640 // build the start command
641 char *server_argv[256] = { // rest initialyzed to NULL 641 char *server_argv[256] = { // rest initialyzed to NULL
642 "xpra", "start", display_str, "--no-daemon", 642 "xpra", "start", display_str, "--no-daemon", "--use-display",
643 }; 643 };
644 unsigned pos = 0; 644 unsigned pos = 0;
645 while (server_argv[pos] != NULL) pos++; 645 while (server_argv[pos] != NULL) pos++;
@@ -736,7 +736,7 @@ void x11_start_xpra(int argc, char **argv) {
736 } 736 }
737 737
738 // add a small delay, on some systems it takes some time for the server to start 738 // add a small delay, on some systems it takes some time for the server to start
739 sleep(1); 739 sleep(5);
740 740
741 // check X11 socket 741 // check X11 socket
742 char *fname; 742 char *fname;