aboutsummaryrefslogtreecommitdiff
path: root/straper/db/public/apparmor/apparmor.d/abstractions/mysql
diff options
context:
space:
mode:
Diffstat (limited to 'straper/db/public/apparmor/apparmor.d/abstractions/mysql')
-rw-r--r--straper/db/public/apparmor/apparmor.d/abstractions/mysql20
1 files changed, 20 insertions, 0 deletions
diff --git a/straper/db/public/apparmor/apparmor.d/abstractions/mysql b/straper/db/public/apparmor/apparmor.d/abstractions/mysql
new file mode 100644
index 0000000..5643953
--- /dev/null
+++ b/straper/db/public/apparmor/apparmor.d/abstractions/mysql
@@ -0,0 +1,20 @@
+# ------------------------------------------------------------------
+#
+# Copyright (C) 2002-2006 Novell/SUSE
+# Copyright (C) 2013 Christian Boltz
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of version 2 of the GNU General Public
+# License published by the Free Software Foundation.
+#
+# ------------------------------------------------------------------
+
+ abi <abi/4.0>,
+
+ /var/lib/mysql{,d}/mysql{,d}.sock rw,
+ @{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,
+
+ # Include additions to the abstraction
+ include if exists <abstractions/mysql.d>