apparmor/profiles/apparmor.d/abstractions
Jamie Strandboge 39a3f5b08d Add profiles/apparmor.d/abstractions/ubuntu-helpers:
Lenient profile that is intended to be used when 'Ux' is desired but
does not provide enough environment sanitizing. This effectively is an
open profile that blacklists certain known dangerous files and also
does not allow any capabilities. For example, it will not allow 'm' on files
owned be the user invoking the program. While this provides some additional
protection, please use with care as applications running under this profile
are effectively running without any AppArmor protection. Use this profile
only if the process absolutely must be run (effectively) unconfined.

Limitations:
1. This does not work for root owned processes, because of the way we use
   owner matching in the sanitized helper. We could do a better job with
   this to support root, but it would make the policy harder to understand
   and going unconfined as root is not desirable anyway.

2. For this sanitized_helper to work, the program running in the sanitized
   environment must open symlinks directly in order for AppArmor to mediate
   it. This is confirmed to work with:
    - compiled code which can load shared libraries
    - python imports
   It is known not to work with:
    - perl includes

3. Going forward it might be useful to try sanitizing ruby and java

Use at your own risk. This profile was developed as an interim workaround for
LP: #851986 until AppArmor implements proper environment filtering.

Acked-by: Jamie Strandboge <jamie@canonical.com>



Adjust ubuntu abstractions to use sanitized_helper instead of (P)Ux.

Acked-by: Jamie Strandboge <jamie@canonical.com>



Update launchpad-integration to use a sanitized helper in a similar manner
as that in ubuntu-helpers.

Acked-by: Jamie Strandboge <jamie@canonical.com>
2012-01-11 15:20:42 +01:00
..
ubuntu-browsers.d don't #include ubuntu-helpers in the abstractions. This can only be included 2012-01-11 09:00:35 +01:00
apache2-common Split off various permissions from the httpd2-prefork profile to 2012-01-05 23:28:17 +01:00
aspell - various patches and cleanups from kees@ubuntu.com 2008-06-11 20:19:36 +00:00
audio Bug: https://bugs.launchpad.net/bugs/794974 2011-08-04 16:52:45 -07:00
authentication add p11-kit to authentication abstraction 2012-01-06 11:46:52 -06:00
base Author: James Troup 2012-01-03 17:27:26 -06:00
bash as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
consoles as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
cups-client Description: allow read of @{HOME}/.cups/client.conf and 2012-01-06 10:45:34 -06:00
dbus update for /var/run -> /run udev transition. For compatibility, distributions 2011-07-14 07:57:57 -05:00
dbus-session profiles/apparmor.d/abstractions/dbus-session: Per discussion with John 2011-05-09 18:09:24 +02:00
enchant Fix from Felix Geyer: in the enchant abstraction, allow the creation of 2012-01-10 11:37:54 +01:00
fonts Author: Felix Geyer 2012-01-03 17:25:10 -06:00
freedesktop.org abstractions/freedesktop.org updates: 2010-12-23 18:39:28 -06:00
gnome add xdg-desktop abstraction to gnome and kde. Acked via discussions 2012-01-11 14:17:32 +01:00
gnupg some new abstractions from Mathias Gug 2007-08-27 23:49:51 +00:00
ibus add preliminary ibus abstraction. Will likely need more once more ibus users 2010-12-22 16:57:35 -06:00
kde add xdg-desktop abstraction to gnome and kde. Acked via discussions 2012-01-11 14:17:32 +01:00
kerberosclient Author: Jamie Strandboge <jamie@canonical.com>, 2011-03-23 12:24:11 -07:00
launchpad-integration fix up comments in launchpad-integration 2012-01-11 09:27:22 +01:00
ldapclient split off abstractions/ldapclient from abstractions/nameservice 2011-11-01 17:08:37 +01: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
mysql as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
nameservice split off abstractions/ldapclient from abstractions/nameservice 2011-11-01 17:08:37 +01:00
nis as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
nvidia fixes for abstractions from Mathias Gug 2007-08-28 23:05:56 +00:00
openssl From: Jeff Mahoney <jeffm@suse.com> 2011-08-08 22:22:03 +02:00
orbit2 fixes for abstractions from Mathias Gug 2007-08-28 23:05:56 +00:00
p11-kit add p11-kit abstraction (LP: #912754, LP: #912752) 2012-01-06 11:45:44 -06:00
perl as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
php5 adjust cgi path for php5 abstraction (LP: #538661) 2010-03-30 12:34:32 -05:00
private-files Fix from Felix Geyer: block write access to ~/.kde/env because KDE 2012-01-10 11:54:12 +01:00
private-files-strict Description: Disallow writing and linking to @{HOME}/.pki/nssdb/ .so files 2012-01-06 10:29:32 -06:00
python Description: allow read access of /etc/python{2,3}.[0-7]*/sitecustomize.py 2012-01-06 10:38:06 -06:00
ruby as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
samba From: Jeff Mahoney <jeffm@suse.com> 2011-08-27 01:52:27 +02:00
smbpass as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
ssl_certs From: Jeff Mahoney <jeffm@suse.com> 2011-08-08 22:22:03 +02:00
ssl_keys as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
svn-repositories as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
ubuntu-bittorrent-clients don't #include ubuntu-helpers in the abstractions. This can only be included 2012-01-11 09:00:35 +01:00
ubuntu-browsers don't #include ubuntu-helpers in the abstractions. This can only be included 2012-01-11 09:00:35 +01: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 don't #include ubuntu-helpers in the abstractions. This can only be included 2012-01-11 09:00:35 +01: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 add note to ubuntu-helpers regarding needing to only include it once 2012-01-11 08:50:47 +01:00
ubuntu-konsole update for /var/run -> /run udev transition. For compatibility, distributions 2011-07-14 07:57:57 -05: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-xterm update for /var/run -> /run udev transition. For compatibility, distributions 2011-07-14 07:57:57 -05:00
user-download abstractions/user-download: 2010-12-22 16:52:13 -06:00
user-mail abstractions/user-mail: 2010-12-22 16:55:18 -06: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 abstractions/user-write: 2010-12-22 16:54:40 -06:00
video fixes for abstractions from Mathias Gug 2007-08-28 23:05:56 +00:00
web-data as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
winbind Make abstractions/winbind work on 64bit systems (valid.dat etc. are in 2011-11-01 18:35:29 +01:00
wutmp Merge k permission for /var/log/lastlog into abstractions/wutmp 2011-08-16 12:26:44 +02:00
X This patch adds multiarch support for the X DRI paths. 2011-08-16 22:47:34 -07: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