From 08c8c86233337ff00ccb7112f659776e5ac1efe1 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 19 Jun 2016 07:15:16 -0400 Subject: libreoffice support --- Makefile.in | 8 ++++++++ etc/disable-devel.inc | 2 +- etc/libreoffice.profile | 4 ++++ etc/localc.profile | 5 +++++ etc/lodraw.profile | 5 +++++ etc/loffice.profile | 5 +++++ etc/lofromtemplate.profile | 5 +++++ etc/loimpress.profile | 5 +++++ etc/lomath.profile | 5 +++++ etc/loweb.profile | 5 +++++ etc/lowriter.profile | 5 +++++ platform/debian/conffiles | 10 ++++++++++ src/firecfg/firecfg.config | 9 ++++++++- 13 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 etc/localc.profile create mode 100644 etc/lodraw.profile create mode 100644 etc/loffice.profile create mode 100644 etc/lofromtemplate.profile create mode 100644 etc/loimpress.profile create mode 100644 etc/lomath.profile create mode 100644 etc/loweb.profile create mode 100644 etc/lowriter.profile diff --git a/Makefile.in b/Makefile.in index 7f21811f5..c7ecab5ac 100644 --- a/Makefile.in +++ b/Makefile.in @@ -197,6 +197,14 @@ realinstall: install -c -m 0644 .etc/mpv.profile $(DESTDIR)/$(sysconfdir)/firejail/. install -c -m 0644 .etc/franz.profile $(DESTDIR)/$(sysconfdir)/firejail/. install -c -m 0644 .etc/libreoffice.profile $(DESTDIR)/$(sysconfdir)/firejail/. + install -c -m 0644 .etc/localc.profile $(DESTDIR)/$(sysconfdir)/firejail/. + install -c -m 0644 .etc/lodraw.profile $(DESTDIR)/$(sysconfdir)/firejail/. + install -c -m 0644 .etc/loffice.profile $(DESTDIR)/$(sysconfdir)/firejail/. + install -c -m 0644 .etc/lofromtemplate.profile $(DESTDIR)/$(sysconfdir)/firejail/. + install -c -m 0644 .etc/loimpress.profile $(DESTDIR)/$(sysconfdir)/firejail/. + install -c -m 0644 .etc/lomath.profile $(DESTDIR)/$(sysconfdir)/firejail/. + install -c -m 0644 .etc/loweb.profile $(DESTDIR)/$(sysconfdir)/firejail/. + install -c -m 0644 .etc/lowriter.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;" install -c -m 0644 etc/firejail.config $(DESTDIR)/$(sysconfdir)/firejail/. rm -fr .etc diff --git a/etc/disable-devel.inc b/etc/disable-devel.inc index 4e401055a..821aa1ea4 100644 --- a/etc/disable-devel.inc +++ b/etc/disable-devel.inc @@ -37,7 +37,7 @@ blacklist /usr/lib/php* blacklist /usr/bin/ruby blacklist /usr/lib/ruby -# Programs using python: deluge, firefox addons, filezilla, cherrytree, xchat, hexchat +# Programs using python: deluge, firefox addons, filezilla, cherrytree, xchat, hexchat, libreoffice # Python 2 #blacklist /usr/bin/python2* #blacklist /usr/lib/python2* diff --git a/etc/libreoffice.profile b/etc/libreoffice.profile index 9056b1df2..6cbdbfd66 100644 --- a/etc/libreoffice.profile +++ b/etc/libreoffice.profile @@ -12,3 +12,7 @@ noroot protocol unix,inet,inet6,netlink seccomp tracelog + +private-dev +whitelist /tmp/.X11-unix/ + diff --git a/etc/localc.profile b/etc/localc.profile new file mode 100644 index 000000000..fecd08822 --- /dev/null +++ b/etc/localc.profile @@ -0,0 +1,5 @@ +################################ +# LibreOffice profile +################################ +include /etc/firejail/libreoffice.profile + diff --git a/etc/lodraw.profile b/etc/lodraw.profile new file mode 100644 index 000000000..9a53d9fb0 --- /dev/null +++ b/etc/lodraw.profile @@ -0,0 +1,5 @@ +################################ +# LibreOffice profile +################################ +include /etc/firejail/liberoffice.profile + diff --git a/etc/loffice.profile b/etc/loffice.profile new file mode 100644 index 000000000..fecd08822 --- /dev/null +++ b/etc/loffice.profile @@ -0,0 +1,5 @@ +################################ +# LibreOffice profile +################################ +include /etc/firejail/libreoffice.profile + diff --git a/etc/lofromtemplate.profile b/etc/lofromtemplate.profile new file mode 100644 index 000000000..fecd08822 --- /dev/null +++ b/etc/lofromtemplate.profile @@ -0,0 +1,5 @@ +################################ +# LibreOffice profile +################################ +include /etc/firejail/libreoffice.profile + diff --git a/etc/loimpress.profile b/etc/loimpress.profile new file mode 100644 index 000000000..fecd08822 --- /dev/null +++ b/etc/loimpress.profile @@ -0,0 +1,5 @@ +################################ +# LibreOffice profile +################################ +include /etc/firejail/libreoffice.profile + diff --git a/etc/lomath.profile b/etc/lomath.profile new file mode 100644 index 000000000..fecd08822 --- /dev/null +++ b/etc/lomath.profile @@ -0,0 +1,5 @@ +################################ +# LibreOffice profile +################################ +include /etc/firejail/libreoffice.profile + diff --git a/etc/loweb.profile b/etc/loweb.profile new file mode 100644 index 000000000..fecd08822 --- /dev/null +++ b/etc/loweb.profile @@ -0,0 +1,5 @@ +################################ +# LibreOffice profile +################################ +include /etc/firejail/libreoffice.profile + diff --git a/etc/lowriter.profile b/etc/lowriter.profile new file mode 100644 index 000000000..fecd08822 --- /dev/null +++ b/etc/lowriter.profile @@ -0,0 +1,5 @@ +################################ +# LibreOffice profile +################################ +include /etc/firejail/libreoffice.profile + diff --git a/platform/debian/conffiles b/platform/debian/conffiles index 6635a594b..b3aa62217 100644 --- a/platform/debian/conffiles +++ b/platform/debian/conffiles @@ -107,3 +107,13 @@ /etc/firejail/mpv.profile /etc/firejail/franz.profile /etc/firejail/libreoffice.profile +/etc/firejail/localc.profile +/etc/firejail/lodraw.profile +/etc/firejail/loffice.profile +/etc/firejail/lofromtemplate.profile +/etc/firejail/loimpress.profile +/etc/firejail/lomath.profile +/etc/firejail/loweb.profile +/etc/firejail/lowriter.profile + + diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config index eeac7a088..fa2dee81d 100644 --- a/src/firecfg/firecfg.config +++ b/src/firecfg/firecfg.config @@ -106,7 +106,14 @@ evince fbreader gwenview gthumb -LibreOffice +libreoffice +lodraw +loffice +lofromtemplate +loimpres +lomath +loweb +lowriter Mathematica mathematica okular -- cgit v1.2.3-70-g09d2