Sha256: a7f9fd4758cff274298882a6db40b867da44e439a9deb460e5811715c9af1d24

Contents?: true

Size: 1004 Bytes

Versions: 66

Compression:

Stored size: 1004 Bytes

Contents

<%
  @path = '/etc/apparmor.d/usr.sbin.mysqld'
  @post = "service 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,

	/usr/lib/mysql/plugin/ r,

  /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

66 entries across 66 versions & 1 rubygems

Version Path
rubber-2.0.2 templates/mysql/config/rubber/role/db/apparmor-mysql.conf
rubber-2.0.1 templates/mysql/config/rubber/role/db/apparmor-mysql.conf
rubber-2.0.0 templates/mysql/config/rubber/role/db/apparmor-mysql.conf
rubber-2.0.0.pre12 templates/mysql/config/rubber/role/db/apparmor-mysql.conf
rubber-2.0.0.pre11 templates/mysql/config/rubber/role/db/apparmor-mysql.conf
rubber-2.0.0.pre10 templates/mysql/config/rubber/role/db/apparmor-mysql.conf