2020-09-12 17:19:23 +02:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# Author: Jamie Strandboge <jamie@canonical.com>
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <tunables/global>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
/usr/bin/totem-video-thumbnailer flags=(attach_disconnected) {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/totem>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
# Probably needed due to this program being run with bwrap
|
|
|
|
@{HOMEDIRS} w,
|
|
|
|
owner @{HOME}/ w,
|
|
|
|
|
|
|
|
# Allow read on almost anything in @{HOME}. Lenient, but private-files-strict is in
|
|
|
|
# effect.
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/private-files-strict>
|
2020-09-12 17:19:23 +02:00
|
|
|
owner @{HOME}/[^.]* rw,
|
|
|
|
owner @{HOME}/[^.]*/** rw,
|
|
|
|
|
|
|
|
# Not needed by nautilus, but maybe other applications
|
|
|
|
owner /**.[pP][nN][gG] w,
|
|
|
|
owner /**.[jJ][pP]{,[eE]}[gG] w,
|
|
|
|
|
|
|
|
/usr/bin/totem-video-thumbnailer rm,
|
|
|
|
|
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
2020-12-10 22:33:39 +01:00
|
|
|
include <local/usr.bin.totem-previewers>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/usr/bin/totem-audio-preview flags=(attach_disconnected) {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/totem>
|
|
|
|
include <abstractions/audio>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
# Allow read on anything in @{HOME}. Lenient, but private-files-strict is in
|
|
|
|
# effect.
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/private-files-strict>
|
2020-09-12 17:19:23 +02:00
|
|
|
owner @{HOME}/[^.]* rw,
|
|
|
|
owner @{HOME}/[^.]*/** rw,
|
|
|
|
|
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
2020-12-10 22:33:39 +01:00
|
|
|
include <local/usr.bin.totem-previewers>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|