Sha256: 02434e7e0308e678ef18d78be2ddbad986a28a35752a51ef686c99c116415e36

Contents?: true

Size: 974 Bytes

Versions: 3

Compression:

Stored size: 974 Bytes

Contents

<%
  @path = '/etc/apparmor.d/usr.sbin.mysqld'
  @post = "/etc/init.d/apparmor restart"
  @backup = false
%>

#include <tunables/global>

/usr/sbin/mysqld {
  #include <abstractions/base>
  #include <abstractions/nameservice>
  #include <abstractions/user-tmp>
  #include <abstractions/mysql>
  #include <abstractions/winbind>

  capability dac_override,
  capability sys_resource,
  capability setgid,
  capability setuid,

  network tcp,

  /etc/hosts.allow r,
  /etc/hosts.deny r,

  /etc/mysql/*.pem r,
  /etc/mysql/conf.d/ r,
  /etc/mysql/conf.d/* r,
  /etc/mysql/my.cnf r,
  /usr/sbin/mysqld mr,
  /usr/share/mysql/** r,
  /var/log/mysql.log rw,
  /var/log/mysql.err rw,
  /var/lib/mysql/ r,
  /var/lib/mysql/** rwk,
  /var/log/mysql/ r,
  /var/log/mysql/* rw,
  /var/run/mysqld/mysqld.pid w,
  /var/run/mysqld/mysqld.sock w,

  /sys/devices/system/cpu/ r,
  /sys/devices/system/cpu/** r,

  <%= rubber_env.db_root_dir %>/ r,
  <%= rubber_env.db_root_dir %>/** rwk,
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubber-1.3.2 generators/vulcanize/templates/mysql/config/rubber/role/db/apparmor-mysql.conf
rubber-1.3.1 generators/vulcanize/templates/mysql/config/rubber/role/db/apparmor-mysql.conf
rubber-1.3.0 generators/vulcanize/templates/mysql/config/rubber/role/db/apparmor-mysql.conf