diff options
author | glitsj16 <glitsj16@users.noreply.github.com> | 2019-03-02 05:06:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-02 05:06:12 +0000 |
commit | 37dc45e5d1df5c8fdca79dd89e39a03d08d3c9aa (patch) | |
tree | be7bddf1240fe364cc38f4e977d85093bbf33748 | |
parent | Add new profile for simplescreenrecorder (#2500) (diff) | |
download | firejail-37dc45e5d1df5c8fdca79dd89e39a03d08d3c9aa.tar.gz firejail-37dc45e5d1df5c8fdca79dd89e39a03d08d3c9aa.tar.zst firejail-37dc45e5d1df5c8fdca79dd89e39a03d08d3c9aa.zip |
Add new profile for sysprof (#2501)
* Create sysprof.profile
* Create sysprof-cli.profile
* Add sysprof to firecfg
-rw-r--r-- | etc/sysprof-cli.profile | 18 | ||||
-rw-r--r-- | etc/sysprof.profile | 47 | ||||
-rw-r--r-- | src/firecfg/firecfg.config | 1 |
3 files changed, 66 insertions, 0 deletions
diff --git a/etc/sysprof-cli.profile b/etc/sysprof-cli.profile new file mode 100644 index 000000000..28d279d77 --- /dev/null +++ b/etc/sysprof-cli.profile | |||
@@ -0,0 +1,18 @@ | |||
1 | # Firejail profile for sysprof-cli | ||
2 | # Description: Kernel based performance profiler (CLI) | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include sysprof-cli.local | ||
6 | # Persistent global definitions | ||
7 | # added by included profile | ||
8 | #include globals.local | ||
9 | |||
10 | nodbus | ||
11 | |||
12 | # There is no GUI help menu to break in the CLI version | ||
13 | private-bin sysprof-cli | ||
14 | private-lib | ||
15 | |||
16 | |||
17 | # Redirect | ||
18 | include sysprof.profile | ||
diff --git a/etc/sysprof.profile b/etc/sysprof.profile new file mode 100644 index 000000000..a3135d001 --- /dev/null +++ b/etc/sysprof.profile | |||
@@ -0,0 +1,47 @@ | |||
1 | # Firejail profile for sysprof | ||
2 | # Description: Kernel based performance profiler (GUI) | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include sysprof.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | include disable-common.inc | ||
10 | include disable-devel.inc | ||
11 | include disable-interpreters.inc | ||
12 | include disable-passwdmgr.inc | ||
13 | include disable-programs.inc | ||
14 | include disable-xdg.inc | ||
15 | |||
16 | apparmor | ||
17 | caps.drop all | ||
18 | ipc-namespace | ||
19 | machine-id | ||
20 | net none | ||
21 | no3d | ||
22 | # nodbus - makes settings immutable | ||
23 | nodvd | ||
24 | nogroups | ||
25 | nonewprivs | ||
26 | # Ubuntu 16.04 version needs root privileges - uncomment if you don't use that | ||
27 | #noroot | ||
28 | nosound | ||
29 | notv | ||
30 | nou2f | ||
31 | novideo | ||
32 | protocol unix,netlink | ||
33 | shell none | ||
34 | tracelog | ||
35 | |||
36 | disable-mnt | ||
37 | #private-bin sysprof - breaks GUI help menu | ||
38 | private-cache | ||
39 | private-dev | ||
40 | private-etc alternatives,fonts,ld.so.cache,machine-id,ssl | ||
41 | # private-lib breaks GUI help menu | ||
42 | #private-lib gdk-pixbuf-2.*,gio,gtk3,gvfs/libgvfscommon.so,libgconf-2.so.*,librsvg-2.so.*,libsysprof-2.so,libsysprof-ui-2.so | ||
43 | private-tmp | ||
44 | |||
45 | memory-deny-write-execute | ||
46 | noexec ${HOME} | ||
47 | noexec /tmp | ||
diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config index a417afa68..9a3823030 100644 --- a/src/firecfg/firecfg.config +++ b/src/firecfg/firecfg.config | |||
@@ -435,6 +435,7 @@ supertuxkart | |||
435 | surf | 435 | surf |
436 | sylpheed | 436 | sylpheed |
437 | synfigstudio | 437 | synfigstudio |
438 | sysprof | ||
438 | teamspeak3 | 439 | teamspeak3 |
439 | telegram | 440 | telegram |
440 | telegram-desktop | 441 | telegram-desktop |