LINUX.ORG.RU

firejail

 , ,


0

1

После установки spotify-launcher firejail не открывает его через песочницу, хотя все приложения у меня запускаются через неё. Я пытался отредактировать профиль, но всё равно он запускается без неё.

cat /etc/firejail/spotify-launcher.profile 
# Firejail profile for spotify
# This file is overwritten after every install/update
# Persistent local customizations
include spotify.local
# Persistent global definitions
include globals.local

noblacklist ${HOME}/.cache/spotify
noblacklist ${HOME}/.config/spotify
noblacklist ${HOME}/.config/spotify-adblock
noblacklist ${HOME}/.local/share/spotify

blacklist ${HOME}/.bashrc

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
include disable-interpreters.inc
include disable-programs.inc

mkdir ${HOME}/.cache/spotify
mkdir ${HOME}/.config/spotify
mkdir ${HOME}/.local/share/spotify
whitelist ${HOME}/.cache/spotify
whitelist ${HOME}/.config/spotify
whitelist ${HOME}/.config/spotify-adblock
whitelist ${HOME}/.local/share/spotify
include whitelist-common.inc
include whitelist-var-common.inc

caps.drop all
netfilter
nodvd
nogroups
noinput
nonewprivs
noroot
notv
nou2f
protocol unix,inet,inet6,netlink
seccomp
tracelog

disable-mnt
private-bin bash,cat,dirname,find,grep,head,rm,sh,spotify,tclsh,touch,zenity
private-dev
# If you want to see album covers or want to use the radio, add 'ignore private-etc' to your spotify.local.
private-etc alternatives,ca-certificates,crypto-policies,fonts,group,host.conf,hosts,ld.so.cache,ld.so.preload,machine-id,nsswitch.conf,pki,pulse,resolv.conf,spotify-adblock,ssl
private-opt spotify-launcher
private-srv none
private-tmp

# dbus needed for MPRIS
# dbus-user none
# dbus-system none

restrict-namespaces

потому что man firecfg

оба варианта, в т.ч. от пользователя с –fix

router ★★★★★
()
Ответ на: комментарий от mister_me
firejail spotify-launcher                                    
Reading profile /etc/firejail/spotify-launcher.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 24985, child pid 24986
Warning: skipping spotify-launcher for private /opt
Private /opt installed in 0.10 ms
Warning: skipping none for private /srv
Private /srv installed in 0.07 ms
11 programs installed in 26.07 ms
Warning: skipping alternatives for private /etc
Warning: skipping crypto-policies for private /etc
Warning: skipping pki for private /etc
Warning: skipping spotify-adblock for private /etc
Private /etc installed in 69.28 ms
Private /usr/etc installed in 0.00 ms
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: not remounting /run/user/1000/doc
Warning: not remounting /run/user/1000/gvfs
Child process initialized in 200.04 ms
Error: no suitable spotify-launcher executable found

Parent is shutting down, bye...
iskander9908
() автор топика

А оно не на электроне часом?

cobold ★★★★★
()
Для того чтобы оставить комментарий войдите или зарегистрируйтесь.