Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Librewolf profile and Add Sway profile #4164

Merged
merged 24 commits into from
Apr 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions etc/inc/disable-common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ blacklist ${HOME}/.config/autostart
blacklist ${HOME}/.config/autostart-scripts
blacklist ${HOME}/.config/awesome
blacklist ${HOME}/.config/i3
blacklist ${HOME}/.config/sway
blacklist ${HOME}/.config/lxsession/LXDE/autostart
blacklist ${HOME}/.config/openbox
blacklist ${HOME}/.config/plasma-workspace
Expand Down
3 changes: 3 additions & 0 deletions etc/profile-a-l/librewolf-nightly.profile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ include librewolf-nightly.local
# added by included profile
#include globals.local

# Add the next line to your librewolf-nightly.local to enable private-bin.
#private-bin librewolf-nightly

# Redirect
include librewolf.profile
34 changes: 31 additions & 3 deletions etc/profile-a-l/librewolf.profile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,40 @@ whitelist ${HOME}/.librewolf
#noblacklist ${HOME}/.mozilla
#whitelist ${HOME}/.mozilla

# librewolf requires a shell to launch on Arch. We can possibly remove sh though.
# Add the next line to your librewolf.local to enable private-bin.
#private-bin bash,dbus-launch,dbus-send,env,librewolf,python*,sh,which
# Uncomment or put in your librewolf.local one of the following whitelist to enable KeePassXC Plugin
# NOTE: start KeePassXC before Librewolf and keep it open to allow communication between them
#whitelist ${RUNUSER}/kpxc_server
#whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer

whitelist /usr/share/doc
whitelist /usr/share/gtk-doc/html
whitelist /usr/share/mozilla
whitelist /usr/share/webext
include whitelist-usr-share-common.inc
vnepogodin marked this conversation as resolved.
Show resolved Hide resolved

# Add the next line to your librewolf.local to enable private-bin (Arch Linux).
#private-bin dbus-launch,dbus-send,librewolf,sh
# Add the next line to your librewolf.local to enable private-etc. Note
# that private-etc must first be enabled in firefox-common.local.
#private-etc librewolf

dbus-user filter
# Uncomment or put in your librewolf.local to enable native notifications.
#dbus-user.talk org.freedesktop.Notifications
# Uncomment or put in your librewolf.local to allow to inhibit screensavers
#dbus-user.talk org.freedesktop.ScreenSaver
# Uncomment or put in your librewolf.local for plasma browser integration
#dbus-user.own org.mpris.MediaPlayer2.plasma-browser-integration
#dbus-user.talk org.kde.JobViewServer
#dbus-user.talk org.kde.kuiserver
# Uncomment or put in your librewolf.local to allow screen sharing under wayland.
#whitelist ${RUNUSER}/pipewire-0
#dbus-user.talk org.freedesktop.portal.*
# Also uncomment or put in your librewolf.local if screen sharing sharing still
# does not work with the above lines (might depend on the portal
# implementation)
#ignore noroot
ignore dbus-user none

# Redirect
include firefox-common.profile
19 changes: 19 additions & 0 deletions etc/profile-a-l/sway.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Firejail profile for Sway
# Description: i3-compatible Wayland compositor
# This file is overwritten after every install/update
# Persistent local customizations
include sway.local
# Persistent global definitions
include globals.local

# all applications started in sway will run in this profile
noblacklist ${HOME}/.config/sway
rusty-snake marked this conversation as resolved.
Show resolved Hide resolved
# sway uses ~/.config/i3 as fallback if there is no ~/.config/sway
noblacklist ${HOME}/.config/i3
include disable-common.inc

caps.drop all
netfilter
noroot
protocol unix,inet,inet6
seccomp