/
snap
/
core22
/
2411
/
etc
/
apparmor.d
/
abstractions
/
/snap/core22/2411/etc/apparmor.d/abstractions
mkdir
upload
Name
Size
Mode
Actions
apparmor_api/
-
0755
rm
ubuntu-browsers.d/
-
0755
rm
apache2-common
978
0644
edit
dl
rm
aspell
412
0644
edit
dl
rm
audio
1988
0644
edit
dl
rm
authentication
1857
0644
edit
dl
rm
base
6929
0644
edit
dl
rm
bash
1614
0644
edit
dl
rm
consoles
903
0644
edit
dl
rm
crypto
809
0644
edit
dl
rm
cups-client
820
0644
edit
dl
rm
dbus
694
0644
edit
dl
rm
dbus-accessibility
745
0644
edit
dl
rm
dbus-accessibility-strict
760
0644
edit
dl
rm
dbus-network-manager-strict
1403
0644
edit
dl
rm
dbus-session
747
0644
edit
dl
rm
dbus-session-strict
1010
0644
edit
dl
rm
dbus-strict
781
0644
edit
dl
rm
dconf
344
0644
edit
dl
rm
dovecot-common
675
0644
edit
dl
rm
dri-common
542
0644
edit
dl
rm
dri-enumerate
393
0644
edit
dl
rm
enchant
2220
0644
edit
dl
rm
exo-open
1921
0644
edit
dl
rm
fcitx
558
0644
edit
dl
rm
fcitx-strict
821
0644
edit
dl
rm
fonts
2278
0644
edit
dl
rm
freedesktop.org
1404
0644
edit
dl
rm
gio-open
1546
0644
edit
dl
rm
gnome
3815
0644
edit
dl
rm
gnupg
459
0644
edit
dl
rm
gtk
1458
0644
edit
dl
rm
gvfs-open
1180
0644
edit
dl
rm
hosts_access
511
0644
edit
dl
rm
ibus
992
0644
edit
dl
rm
kde
2867
0644
edit
dl
rm
kde-globals-write
413
0644
edit
dl
rm
kde-icon-cache-write
256
0644
edit
dl
rm
kde-language-write
575
0644
edit
dl
rm
kde-open5
3699
0644
edit
dl
rm
kerberosclient
1281
0644
edit
dl
rm
ldapclient
856
0644
edit
dl
rm
libpam-systemd
770
0644
edit
dl
rm
likewise
595
0644
edit
dl
rm
mdns
554
0644
edit
dl
rm
mesa
1186
0644
edit
dl
rm
mir
694
0644
edit
dl
rm
mozc
573
0644
edit
dl
rm
mysql
739
0644
edit
dl
rm
nameservice
4389
0644
edit
dl
rm
nis
625
0644
edit
dl
rm
nss-systemd
1248
0644
edit
dl
rm
nvidia
751
0644
edit
dl
rm
opencl
370
0644
edit
dl
rm
opencl-common
516
0644
edit
dl
rm
opencl-intel
673
0644
edit
dl
rm
opencl-mesa
636
0644
edit
dl
rm
opencl-nvidia
896
0644
edit
dl
rm
opencl-pocl
2916
0644
edit
dl
rm
openssl
648
0644
edit
dl
rm
orbit2
197
0644
edit
dl
rm
p11-kit
999
0644
edit
dl
rm
perl
974
0644
edit
dl
rm
php
1158
0644
edit
dl
rm
php-worker
558
0644
edit
dl
rm
php5
208
0644
edit
dl
rm
postfix-common
1356
0644
edit
dl
rm
private-files
1660
0644
edit
dl
rm
private-files-strict
1212
0644
edit
dl
rm
python
1860
0644
edit
dl
rm
qt5
863
0644
edit
dl
rm
qt5-compose-cache-write
399
0644
edit
dl
rm
qt5-settings-write
514
0644
edit
dl
rm
recent-documents-write
466
0644
edit
dl
rm
ruby
1008
0644
edit
dl
rm
samba
1159
0644
edit
dl
rm
smbpass
581
0644
edit
dl
rm
snap_browsers
1672
0644
edit
dl
rm
ssl_certs
1560
0644
edit
dl
rm
ssl_keys
938
0644
edit
dl
rm
svn-repositories
1760
0644
edit
dl
rm
ubuntu-bittorrent-clients
821
0644
edit
dl
rm
ubuntu-browsers
1621
0644
edit
dl
rm
ubuntu-console-browsers
731
0644
edit
dl
rm
ubuntu-console-email
718
0644
edit
dl
rm
ubuntu-email
1087
0644
edit
dl
rm
ubuntu-feed-readers
456
0644
edit
dl
rm
ubuntu-gnome-terminal
300
0644
edit
dl
rm
ubuntu-helpers
3791
0644
edit
dl
rm
ubuntu-konsole
453
0644
edit
dl
rm
ubuntu-media-players
2352
0644
edit
dl
rm
ubuntu-unity7-base
2558
0644
edit
dl
rm
ubuntu-unity7-launcher
311
0644
edit
dl
rm
ubuntu-unity7-messaging
313
0644
edit
dl
rm
ubuntu-xterm
346
0644
edit
dl
rm
user-download
987
0644
edit
dl
rm
user-mail
944
0644
edit
dl
rm
user-manpages
1000
0644
edit
dl
rm
user-tmp
760
0644
edit
dl
rm
user-write
972
0644
edit
dl
rm
video
231
0644
edit
dl
rm
vulkan
1089
0644
edit
dl
rm
wayland
645
0644
edit
dl
rm
web-data
811
0644
edit
dl
rm
winbind
882
0644
edit
dl
rm
wutmp
711
0644
edit
dl
rm
X
1989
0644
edit
dl
rm
xad
984
0644
edit
dl
rm
xdg-desktop
782
0644
edit
dl
rm
xdg-open
2285
0644
edit
dl
rm
Edit:
/snap/core22/2411/etc/apparmor.d/abstractions/kde-open5
(3699B)
# vim:syntax=apparmor abi <abi/3.0>, # This abstraction is designed to be used in a child profile to limit what # confined application can invoke via kde-open5 helper. # # NOTE: most likely you want to use xdg-open abstraction instead for better # portability across desktop environments, unless you are sure that confined # application only uses /usr/bin/kde-open5 directly. # # Usage example: # # ``` # profile foo /usr/bin/foo { # ... # /usr/bin/kde-open5 rPx -> foo//kde-open5, # ... # } # end of main profile # # # out-of-line child profile # profile foo//kde-open5 { # include <abstractions/kde-open5> # # # needed for ubuntu-* abstractions # include <abstractions/ubuntu-helpers> # # # Only allow to handle http[s]: and mailto: links # include <abstractions/ubuntu-browsers> # include <abstractions/ubuntu-email> # # # Add if accesibility access is considered as required # # (for message boxe in case exo-open fails) # include <abstractions/dbus-accessibility> # # # Add if audio support for message box is # # considered as required. # include if exists <abstractions/gstreamer> # # # < add additional allowed applications here > # } # ``` include <abstractions/audio> # for alert messages include <abstractions/base> include <abstractions/dbus-accessibility-strict> include <abstractions/dbus-network-manager-strict> include <abstractions/dbus-session-strict> include <abstractions/dbus-strict> include <abstractions/kde-icon-cache-write> include <abstractions/kde> include <abstractions/nameservice> # for IceProcessMessages () from libICE.so (called by libQtCore.so) include <abstractions/openssl> include <abstractions/qt5> include <abstractions/recent-documents-write> include <abstractions/X> # Main executables /usr/bin/kde-open5 rix, /usr/lib/@{multiarch}/libexec/kf5/kioslave{,5} ix, # DBus dbus bus=session interface=org.kde.KLauncher member=start_service_by_desktop_path peer=(name=org.kde.klauncher5), # Denied system files deny /usr/lib/vlc/plugins/* w, # VLC backed tries to create plugins.dat.16109 # libpcre2 on openSUSE tries to mmap() shared memory on directory. # see: https://lists.ubuntu.com/archives/apparmor/2019-January/011925.html # AppArmor does not allow to distinguish "real" file vs shared memory one, # so we deny this path to protect from loading exploits from /tmp. deny /tmp/#[0-9]*[0-9] m, # System files /dev/tty r, /etc/xdg/accept-languages.codes r, /etc/xdg/menus/{,*/} r, /usr/share/*fonts*/conf.avail/*.conf r, # for openSUSE, when showing error message box /usr/share/ghostscript/fonts/ r, # for openSUSE, when showing error message box /usr/share/hwdata/pnp.ids r, # for openSUSE, when showing error message box, for QXcbConnection::initializeScreens() from libQt5XcbQpa.so /usr/share/icu/[0-9]*.[0-9]*/*.dat r, # for openSUSE /usr/share/kservices5/{,**} r, # for KProtocolManager::defaultUserAgent() from libKF5KIOCore.so /usr/share/mime/ r, /usr/share/mime/generic-icons r, /usr/share/plasma/look-and-feel/*/contents/defaults r, # TODO: move to kde abstraction? /usr/share/sounds/ r, @{PROC}/sys/kernel/core_pattern r, @{PROC}/sys/kernel/random/boot_id r, # User files owner /tmp/xauth-[0-9]*-_[0-9] r, # for libQt5XcbQpa.so owner @{run}/user/[0-9]*/#[0-9]* rw, # for /run/user/1000/#13 owner @{run}/user/[0-9]*/kioclient*slave-socket lrw -> @{run}/user/[0-9]/#[0-9]*, # for KIO::Slave::holdSlave(QString const&, QUrl const&) () from libKF5KIOCore.so (not 100% sure) owner @{HOME}/.cache/kio_http/ rw, # Include additions to the abstraction include if exists <abstractions/kde-open5.d>
Save
cmd:
run