[apparmor] [patch] abstractions/mysql: allow access to mysqld.sock
Seth Arnold
seth.arnold at canonical.com
Mon Apr 28 21:08:29 UTC 2014
On Mon, Apr 28, 2014 at 10:51:39PM +0200, Felix Geyer wrote:
> The path of the MySQL socket is often named mysqld.sock instead
> of mysql.sock.
> For example in Ubuntu trusty it is /run/mysqld/mysqld.sock.
> Allow access to all combinations of mysql and mysqld in the abstraction.
Acked-by: Seth Arnold <seth.arnold at canonical.com>
Committed revision 2506.
Thanks
>
> === modified file 'profiles/apparmor.d/abstractions/mysql'
> --- profiles/apparmor.d/abstractions/mysql 2013-01-13 13:38:28 +0000
> +++ profiles/apparmor.d/abstractions/mysql 2014-04-28 20:42:14 +0000
> @@ -9,7 +9,7 @@
> #
> # ------------------------------------------------------------------
>
> - /var/lib/mysql/mysql.sock rw,
> - /{var/,}run/mysql/mysql.sock rw,
> + /var/lib/mysql{,d}/mysql{,d}.sock rw,
> + /{var/,}run/mysql{,d}/mysql{,d}.sock rw,
> /usr/share/{mysql,mysql-community-server,mariadb}/charsets/ r,
> /usr/share/{mysql,mysql-community-server,mariadb}/charsets/*.xml r,
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20140428/17d3bdeb/attachment.pgp>
More information about the AppArmor
mailing list