Commit graph

6046 commits

Author SHA1 Message Date
rusty-snake
4747e0ed7f
Whitelist runuser common (#3286)
* introduce whitelist-runuser-common.inc

 * If an applications does not need a whitelist it can/should be
   nowhitelisted. Example:

     nowhitelist ${RUNUSER}/pulse
     include whitelist-runuser-common.inc

 * ${RUNUSER}/bus is inaccessible with nodbus regardless of the
   whitelist. (as it should)

 * strange wayland setups with an second wayland-compostior need to
   whitelist ${RUNUSER}/wayland-1, ${RUNUSER}/wayland-2 and so on.

 * some display-manager store there Xauthority file in ${RUNUSER}.
   test results with fedora 31:
   - ssdm: ~/.Xauthority is used
   - lightdm: /run/lightdm/USER/Xauthority
   - gdm: /run/user/UID/gdm/Xauthority

 * IMPORTANT: ATM we can only enable this for non-graphical and GTK3
   programs because mutter (GNOMEs window-manger) stores the Xauthority
   file for Xwayland under /run/user/UID/.mutter-Xwaylandauth.XXXXXX
   where XXXXXX is random. Until we have whitelist globbing we can't
   whitelist this file. QT/KDE and other toolkits without full wayland
   support won't be able to start.

* wru update 1

- add wru to more profiles.
- blacklist ${RUNUSER} works for the most cli programs too.

* add wruc to more profiles

* fixes

* fixes

* wruc: hide pulse pid

* update

* remove wruc from all the x11 profiles

* fixes

* fix ordering

* read-only

* revert read-only

* update

*
2020-03-31 16:51:02 +00:00
Topi Miettinen
19eca5fd83 Mention --seccomp.32 etc in usage 2020-03-31 14:58:59 +00:00
smitsohu
d1967d21f4
merges 2020-03-31 15:07:23 +02:00
smitsohu
34e5973bcd
extra x11 hardening 2020-03-31 15:07:01 +02:00
rusty-snake
54d817c8a0 abiword and more gnome-games
- four-in-a-row
 - gnome-mahjongg
 - gnome-robots
 - gnome-sudoku
 - gnome-taquin
 - gnome-tetravex

harden gnome-chess
2020-03-29 16:47:21 +02:00
rusty-snake
2d4485ef8a
Merge pull request #3296 from 0x7969/master
Create ferdi.profile
2020-03-29 13:40:09 +00:00
0x7969
dbfe989767
Added paths for ferdi 2020-03-29 15:22:58 +02:00
0x7969
6477863223
Added ferdi to firecfg.config 2020-03-29 15:18:48 +02:00
rusty-snake
cb77e5a5ff blacklist libvirt and flatpak [skip ci] 2020-03-29 13:32:02 +02:00
rusty-snake
6309857565 more game profiles
- frogatto
 - gnome_games-common.profile
   - gnome-2048 (make redirect)
   - gnome-mines
   - gnome-nibbles
   - lightsoff
 - ts3client_runscript.sh (fix #3279)
 - warmux (don't get confused with the warmux/wormux thing)
2020-03-29 13:01:05 +02:00
glitsj16
a8d4501732
support GTK2 apps in wusc 2020-03-28 11:42:06 +00:00
Topi Miettinen
88eadbf31f seccomp: allow defining separate filters for 32-bit arch
System calls (names and numbers) are not exactly the same for 32 bit
and 64 bit architectures. Let's allow defining separate filters for
32-bit arch using seccomp.32, seccomp.32.drop, seccomp.32.keep. This
is useful for mixed 64/32 bit application environments like Steam and
Wine.

Implement protocol and mdwx filtering also for 32 bit arch. It's still
better to block secondary archs completely if not needed.

Lists of supported system calls are also updated.

Warn if preload libraries would be needed due to trace, tracelog or
postexecseccomp (seccomp.drop=execve etc), because a 32-bit dynamic
linker does not understand the 64 bit preload libraries.

Closes #3267.

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
2020-03-28 11:24:25 +00:00
Atrate
ec0a097a07
Added compatibility with BetterDiscord (#3300)
Signed-off-by: Atrate <Atrate@protonmail.com>
2020-03-27 14:34:56 +00:00
Topi Miettinen
e54da994e9 fsec-print: print address of BPF_JA jump in hex
Since target addresses for other (conditional) jumps are in hex, it's
very confusing to have one jump address in decimal.
2020-03-26 21:04:31 +00:00
0x7969
9c1a79dcb4
Create ferdi.profile
Exact copy of franz.profile, simply renamed franz to ferdi.
2020-03-25 12:22:24 +00:00
Tad
e4cb6b4274 Add a profile for X2GoClient 2020-03-23 17:01:31 -04:00
netblue30
3737f792a4 penguin-command 2020-03-23 15:04:18 -04:00
netblue30
5b395e72df Merge branch 'master' of https://github.com/netblue30/firejail 2020-03-23 14:54:25 -04:00
netblue30
65c8a6bf66 penguin-commad 2020-03-23 14:54:06 -04:00
rusty-snake
41f144dd15 fixup 255697b 2020-03-23 19:48:31 +01:00
netblue30
255697b15a apparmor 2020-03-23 14:32:49 -04:00
rusty-snake
5b081b6981
Merge pull request #3293 from 0x7969/master
Update wire-desktop.profile
2020-03-23 14:26:22 +00:00
0x7969
3559f453e9
Update etc/wire-desktop.profile
Co-Authored-By: rusty-snake <41237666+rusty-snake@users.noreply.github.com>
2020-03-23 14:22:33 +00:00
rusty-snake
3fe5e4e259 replace tabs with spaces 2020-03-23 10:37:47 +01:00
0x7969
077f1bb23c
Update wire-desktop.profile 2020-03-23 00:32:56 +00:00
netblue30
b68c243c45 kmplayer etc 2020-03-22 09:30:54 -04:00
netblue30
3d35a3e623 fix profstats to print warning for nonexistent include files 2020-03-22 08:54:16 -04:00
rusty-snake
779937d250 fixes 2020-03-22 13:26:34 +01:00
rusty-snake
05819c0584 new profiles: agenda, gnome-pomodoro, gnome-todo
rules for xdg-dbus-proxy:

dbus-user filter
dbus-user.own org.gnome.Pomodoro
dbus-user.talk ca.desrt.dconf
dbus-user.talk org.gnome.Shell
dbus-system none

dbus-user filter
dbus-user.own org.gnome.Todo
dbus-user.talk ca.desrt.dconf
dbus-user.talk org.gnome.evolution.dataserver.AddressBook9
dbus-user.talk org.gnome.evolution.dataserver.Calendar8
dbus-user.talk org.gnome.evolution.dataserver.Sources5
dbus-user.talk org.gnome.evolution.dataserver.Subprocess.Backend.*
dbus-user.talk org.gnome.OnlineAccounts
dbus-user.talk org.gnome.SettingsDaemon.Color
dbus-system filter
dbus-system.talk org.freedesktop.login1

dbus-user filter
dbus.own com.github.dahenson.agenda
dbus.talk ca.desrt.dconf
dbus-system block
2020-03-22 13:20:55 +01:00
netblue30
502a73e49c iagno profile 2020-03-21 08:58:03 -04:00
smitsohu
132d606af0
Merge pull request #3275 from dmfreemon/add-name-or-private-dir-to-xpra-window-title
add name or private directory being used to the window title when xpra is being used
2020-03-19 23:56:43 +01:00
netblue30
b3a5fa8025 Merge branch 'master' of https://github.com/netblue30/firejail 2020-03-19 15:30:29 -04:00
netblue30
5dbdf657bd new profiles: ripperx, sound-juicer 2020-03-19 15:30:08 -04:00
rusty-snake
dd8c7d1ea1 extend default.profile 2020-03-19 19:19:52 +01:00
rusty-snake
49e763ef0f harden baobab and gitg 2020-03-19 19:14:37 +01:00
netblue30
93be590192 various profile fixes 2020-03-19 14:12:06 -04:00
netblue30
8a820b48de apparmor support for bind, nslookup, host 2020-03-19 10:02:35 -04:00
netblue30
306d68db79 fix readme.md 2020-03-19 08:31:03 -04:00
netblue30
888186195f fix readme.md 2020-03-19 08:29:46 -04:00
netblue30
61295cefe4 profile stats 2020-03-19 08:28:58 -04:00
rusty-snake
4442aac3f2 misc fixes
remove netfilter from profiles with net none

allow Viber to use dig, dig is in its private-bin, so I assume that it
need it.

blacklist resolvectl which can also be used for dns lookups
2020-03-19 12:05:14 +01:00
glitsj16
3539a023a6
fix nslookup.profile header 2020-03-19 06:14:27 +00:00
glitsj16
ef2aabc38d
fix host.profile header 2020-03-19 06:13:01 +00:00
netblue30
3c555a6ca4 nslookup, host profiles 2020-03-18 22:17:59 -04:00
netblue30
a81a8b4539 profile fixes 2020-03-18 12:28:19 -04:00
netblue30
3ab7e4bb77 fix mplayer profile 2020-03-17 14:51:10 -04:00
smitsohu
0d99824028
remount fix - #3280 2020-03-16 22:25:16 +01:00
netblue30
b7e4f402f4 profile fixes 2020-03-16 15:55:52 -04:00
dmfreemon@users.noreply.github.com
7f39af86dd handle malloc() failures; use gnu_basename() instead of basenaem() 2020-03-15 18:00:43 -05:00
netblue30
25796cc5fa some profile hardening 2020-03-15 17:45:45 -04:00