~maria-captains/ourdelta/ourdelta-montyprogram-fixes

« back to all changes in this revision

Viewing changes to bakery/debian-5.3/dist/Ubuntu/apparmor-profile

  • Committer: knielsen at knielsen-hq
  • Date: 2011-10-26 13:56:10 UTC
  • Revision ID: knielsen@knielsen-hq.org-20111026135610-oi0wsahas23s6fx4
Do not install an apparmor profile by default, and remove any default profile found.
But leave a profile explicitly installed and maintained by users.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# vim:syntax=apparmor
2
 
# Last Modified: Tue Jun 19 17:37:30 2007
3
 
#include <tunables/global>
4
 
 
5
 
/usr/sbin/mysqld {
6
 
  #include <abstractions/base>
7
 
  #include <abstractions/nameservice>
8
 
  #include <abstractions/user-tmp>
9
 
  #include <abstractions/mysql>
10
 
  #include <abstractions/winbind>
11
 
 
12
 
  capability dac_override,
13
 
  capability sys_resource,
14
 
  capability setgid,
15
 
  capability setuid,
16
 
 
17
 
  network tcp,
18
 
 
19
 
  /etc/hosts.allow r,
20
 
  /etc/hosts.deny r,
21
 
 
22
 
  /etc/mysql/*.pem r,
23
 
  /etc/mysql/conf.d/ r,
24
 
  /etc/mysql/conf.d/* r,
25
 
  /etc/mysql/my.cnf r,
26
 
  /usr/sbin/mysqld mr,
27
 
  /usr/share/mysql/** r,
28
 
  /usr/lib/mysql/plugin/*.so* mr,
29
 
  /var/log/mysql.log rw,
30
 
  /var/log/mysql.err rw,
31
 
  /var/lib/mysql/ r,
32
 
  /var/lib/mysql/** rwk,
33
 
  /var/log/mysql/ r,
34
 
  /var/log/mysql/* rw,
35
 
  /var/run/mysqld/mysqld.pid w,
36
 
  /var/run/mysqld/mysqld.sock w,
37
 
 
38
 
  /sys/devices/system/cpu/ r,
39
 
}
 
1
# This file is intensionally empty to disable apparmor by default for newer
 
2
# versions of MariaDB, while providing seamless upgrade from older versions
 
3
# and from mysql, where apparmor is used.
 
4
#
 
5
# By default, we do not want to have any apparmor profile for the MariaDB
 
6
# server. It does not provide much useful functionality/security, and causes
 
7
# several problems for users who often are not even aware that apparmor
 
8
# exists and runs on their system.
 
9
#
 
10
# Users can modify and maintain their own profile, and in this case it will
 
11
# be used.
 
12
#
 
13
# When upgrading from previous version, users who modified the profile
 
14
# will be promptet to keep or discard it, while for default installs
 
15
# we will automatically disable the profile.