apparmor/profiles/apparmor.d/abstractions
John Johansen 20de92c5d6 Merge branch 'qt-settings-write' into 'master'
Add qt5 writing abstractions

Qt-based applications stores QFileDialog (latest browsed directory) and
other shared user settings inside ~/.config/QtProject.conf. Currently
available qt abstraction only allows to read it (by design), so this
patch introduces abstraction that grants permissions for writing.
Relevant denies discovered with KDE Dragon Player:
/var/log/audit/audit.log.1:type=AVC msg=audit(1533485161.999:981): apparmor="DENIED" operation="mknod" profile="/usr/bin/dragon" name="/home/vincas/.config/QtProject.conf.lock" pid=29911 comm="dragon" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
type=AVC msg=audit(1533486419.266:1141): apparmor="DENIED" operation="file_lock" profile="/usr/bin/dragon" name="/home/vincas/.config/QtProject.conf.lock" pid=30406 comm="dragon" requested_mask="k" denied_mask="k" fsuid=1000 ouid=1000
/var/log/audit/audit.log.1:type=AVC msg=audit(1533485206.575:1006): apparmor="DENIED" operation="link" profile="/usr/bin/dragon" name="/home/vincas/.config/QtProject.conf.Gflpds" pid=29946 comm="dragon" requested_mask="l" denied_mask="l" fsuid=1000 ouid=1000 target="/home/vincas/.config/#12982163"
In addition, added new qt-compose-cache-write abstraction as some applications wants to write compose cache. qt5 abstraction is appended with read-only rule (that's enough for LibreOffice using KDE file dialog).

See merge request apparmor/apparmor!159

Acked-by: John Johansen <john.johansen@canonical.com>
2018-09-18 10:03:08 +00:00
..
apparmor_api Subject: profiles - fix apparmor_api abstractions 2013-01-02 15:02:29 -08:00
ubuntu-browsers.d Updated abstractions to allow writing to some common config dirs 2018-08-14 16:38:18 -04:00
apache2-common profiles: support distributions which merge sbin into bin 2018-07-25 14:07:35 -07:00
aspell profiles: allow aspell access to /usr/share/aspell/ 2015-02-27 23:14:03 -08:00
audio Fix local pulseaudio config file access 2017-12-17 15:56:21 +02:00
authentication Make policy compatible with merged-/usr. 2016-12-03 10:59:01 +01:00
base Update base abstraction for ld.so.conf and friends. 2018-01-26 19:55:31 +02:00
bash Subject: profiles - use @{pid} tunable 2013-01-02 15:34:38 -08:00
consoles as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
cups-client profiles: rw file perms are now needed on AF_UNIX socket files 2013-12-19 23:19:40 -08:00
dbus profiles: Add strict system bus abstraction 2014-01-10 15:34:45 -06:00
dbus-accessibility profiles: Add strict accessibility bus abstraction 2014-01-10 15:35:30 -06:00
dbus-accessibility-strict profiles: Add strict accessibility bus abstraction 2014-01-10 15:35:30 -06:00
dbus-session profiles: Add strict session bus abstraction 2014-01-10 15:35:09 -06:00
dbus-session-strict Allow dbus-user-session D-Bus path 2016-07-26 22:49:51 -05:00
dbus-strict profiles: Add strict system bus abstraction 2014-01-10 15:34:45 -06:00
dconf dconf abstraction: allow reading /etc/dconf/**. 2015-07-19 15:42:54 +02:00
dovecot-common profiles: support distributions which merge sbin into bin 2018-07-25 14:07:35 -07:00
dri-common Move DRI-specific rules into it's own abstraction 2018-02-04 14:21:16 +02:00
dri-enumerate Add dri-enumerate abstraction 2018-02-04 16:01:27 +02:00
enchant Fix from Felix Geyer: in the enchant abstraction, allow the creation of 2012-01-10 11:37:54 +01:00
fcitx profiles: Create abstractions for fcitx input method framework 2016-06-04 00:27:59 -05:00
fcitx-strict profiles: Create abstractions for fcitx input method framework 2016-06-04 00:27:59 -05:00
fonts Updated abstractions to allow writing to some common config dirs 2018-08-14 16:38:18 -04:00
freedesktop.org Rename @{usr_share} → @{system_share_dirs} and @{home_local_share} → @{user_share_dirs}. 2018-07-27 06:33:42 +00:00
gnome Updated abstractions to allow creating some common config dirs 2018-08-14 16:38:18 -04:00
gnupg abstractions/gnupg: allow pubring.kbx 2018-01-20 23:54:08 +01:00
ibus add preliminary ibus abstraction. Will likely need more once more ibus users 2010-12-22 16:57:35 -06:00
kde Update kde abstraction for common settings 2018-08-07 20:20:08 +03:00
kde-globals-write Add kde-globals-write abstraction 2018-08-14 16:49:07 -07:00
kde-icon-cache-write Add kde-icon-cache-write abstraction 2018-08-14 16:49:30 -07:00
kde-language-write Add kde-language-write abstraction 2018-08-14 16:49:16 -07:00
kerberosclient Update samba profiles for samba 4.x 2013-11-20 01:17:52 +01:00
launchpad-integration fix up comments in launchpad-integration 2012-01-11 09:27:22 +01:00
ldapclient ldapclient abstraction: allow rw access to the nslcd socket. 2018-07-30 22:49:24 -04:00
libpam-systemd usr.sbin.sshd: refresh profile and add libpam-systemd abstractions 2016-01-08 20:43:56 -05:00
likewise as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
mdns update for /var/run -> /run udev transition. For compatibility, distributions 2011-07-14 07:57:57 -05:00
mesa mesa abstraction: allow locking .cache/mesa_shader_cache/??/*. 2018-07-24 07:21:51 +00:00
mir profiles: add mir abstraction 2015-03-05 11:46:11 -08:00
mozc profiles: Create abstraction for mozc input method editor 2016-06-04 00:28:03 -05:00
mysql abstractions/mysql: allow access to mysqld.sock 2014-04-28 14:07:17 -07:00
nameservice Allow reading /etc/netconfig in abstractions/nameservice 2017-10-20 22:53:09 +02:00
nis as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
nvidia Update nvidia for reading application profiles 2018-05-22 20:43:56 +03:00
opencl Add OpenCL abstractions 2018-05-13 20:14:15 +00:00
opencl-common Add OpenCL abstractions 2018-05-13 20:14:15 +00:00
opencl-intel Add OpenCL abstractions 2018-05-13 20:14:15 +00:00
opencl-mesa Add OpenCL abstractions 2018-05-13 20:14:15 +00:00
opencl-nvidia Add OpenCL abstractions 2018-05-13 20:14:15 +00:00
opencl-pocl Fix typo (double /) in opencl-pocl abstraction 2018-08-05 17:03:34 +02:00
openssl add FIPS support to abstractions/openssl 2014-01-03 20:43:43 +01:00
orbit2 fixes for abstractions from Mathias Gug 2007-08-28 23:05:56 +00:00
p11-kit profiles: rw file perms are now needed on AF_UNIX socket files 2013-12-19 23:19:40 -08:00
perl Author: Jamie Strandboge <jamie@canonical.com> 2017-06-26 14:04:52 -05:00
php abstractions/php: allow ICU (unicode support) data tables 2018-09-02 15:46:43 +02:00
php5 Add backwards compatibility php5 abstraction 2016-12-07 02:46:59 -08:00
postfix-common update some Postfix profiles 2017-08-22 12:43:18 +02:00
private-files deny writes to upstart user sessions jobs in abstractions/private-files 2013-05-13 14:56:10 -05:00
private-files-strict profiles: rw file perms are now needed on AF_UNIX socket files 2013-12-19 23:19:40 -08:00
python abstractions/python: allow /usr/local/lib/python3 2018-08-15 15:06:10 +02:00
qt5 Add qt5-compose-cache-write abstraction 2018-08-15 13:25:19 +03:00
qt5-compose-cache-write Add qt5-compose-cache-write abstraction 2018-08-15 13:25:19 +03:00
qt5-settings-write Add qt5-write abstraction 2018-08-15 13:02:21 +03:00
recent-documents-write Add recent-documents-write abstraction 2018-08-07 23:27:23 +03:00
ruby abstractions/ruby: add /usr/local/ and vendor_ruby paths 2014-09-08 21:36:47 +02:00
samba Samba profile updates for ActiveDirectory / Kerberos 2017-08-29 13:31:20 +02:00
smbpass as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
ssl_certs add dehydrated certificate location to ssl_* abstractions 2018-08-06 23:15:06 +02:00
ssl_keys add dehydrated certificate location to ssl_* abstractions 2018-08-06 23:15:06 +02:00
svn-repositories as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
ubuntu-bittorrent-clients profiles: Add deluge-{gtk,console} to ubuntu-bittorrent-clients abstraction 2016-03-19 03:08:52 -05:00
ubuntu-browsers Fix ubuntu-browsers for 64bit openSUSE 2018-04-01 16:48:13 +03:00
ubuntu-console-browsers don't #include ubuntu-helpers in the abstractions. This can only be included 2012-01-11 09:00:35 +01:00
ubuntu-console-email don't #include ubuntu-helpers in the abstractions. This can only be included 2012-01-11 09:00:35 +01:00
ubuntu-email Update abstraction for new Thunderbird executable path 2017-12-07 16:41:10 +00:00
ubuntu-feed-readers don't #include ubuntu-helpers in the abstractions. This can only be included 2012-01-11 09:00:35 +01:00
ubuntu-gnome-terminal update ubuntu abstractions to use '# vim:syntax=apparmor' 2010-12-21 12:53:33 -06:00
ubuntu-helpers profiles: support distributions which merge sbin into bin 2018-07-25 14:07:35 -07:00
ubuntu-konsole Subject: profiles - use @{pid} tunable 2013-01-02 15:34:38 -08:00
ubuntu-media-players don't #include ubuntu-helpers in the abstractions. This can only be included 2012-01-11 09:00:35 +01:00
ubuntu-unity7-base profiles/apparmor.d/abstractions/ubuntu-unity7-base: update to use dbus 2016-03-10 16:53:24 -06:00
ubuntu-unity7-launcher add ubuntu-unity7-* abstractions for Ubuntu desktop users 2014-02-05 23:44:04 -05:00
ubuntu-unity7-messaging add ubuntu-unity7-* abstractions for Ubuntu desktop users 2014-02-05 23:44:04 -05:00
ubuntu-xterm update for /var/run -> /run udev transition. For compatibility, distributions 2011-07-14 07:57:57 -05:00
user-download fix user_download abstraction for non-latin file names 2017-06-24 18:12:22 +03:00
user-mail abstractions/user-mail: /var/mail/* should only be accessible to their owners 2016-04-14 15:15:36 -04:00
user-manpages From: Christian Boltz <apparmor@cboltz.de> 2011-08-05 13:12:35 -07:00
user-tmp as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
user-write fix user-write abstraction for non-latin file names 2017-07-02 12:22:21 +03:00
video fixes for abstractions from Mathias Gug 2007-08-28 23:05:56 +00:00
vulkan Add Vulkan abstraction 2018-05-22 21:48:13 +03:00
wayland wayland abstraction: allow wayland-cursor-shared-* (Closes: Debian#870807). 2017-08-05 09:47:27 -04:00
web-data Add /var/www/html to abstractions/web-data, which is the path used on Debian 2014-02-27 14:49:54 -06:00
winbind update abstractions/winbind 2014-02-14 23:37:13 +01:00
wutmp Merge k permission for /var/log/lastlog into abstractions/wutmp 2011-08-16 12:26:44 +02:00
X Move DRI-specific rules into it's own abstraction 2018-02-04 14:21:16 +02:00
xad as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
xdg-desktop Create an xdg-desktop abstraction based on the upstream documentation for 2012-01-11 13:00:34 +01:00