[Bug 306886] Re: AppArmor profile included doesn't allow mysql to bind to socket
Ivan, can you also add the following to your apparmor profile, and restart it: network inet stream, ** Changed in: mysql-dfsg-5.0 (Ubuntu) Assignee: (unassigned) => Jamie Strandboge (jdstrand) -- AppArmor profile included doesn't allow mysql to bind to socket https://bugs.launchpad.net/bugs/306886 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 306886] Re: AppArmor profile included doesn't allow mysql to bind to socket
I have the same problem on Ubuntu 8.10, added the extra option to mysql apparmor profile, but still the problem persists if I deactivate apparmor mysql gets to starts, otherwise it fails The only message that appears during the restart of mysql is the following: Mar 19 14:22:55 zeus kernel: [15026.996883] type=1503 audit(1237490575.367:92): operation="socket_create" family="inet" sock_type="stream" protocol=0 pid=21713 profile="/usr/sbin/mysqld" -- AppArmor profile included doesn't allow mysql to bind to socket https://bugs.launchpad.net/bugs/306886 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 306886] Re: AppArmor profile included doesn't allow mysql to bind to socket
Rather than removing apparmor, try adding to mysql's apparmor profile in /etc/apparmor.d/usr.sbin.mysqld: /var/run/samba/winbindd_privileged/pipe rw, Then do: $ sudo /etc/init.d/apparmor force-reload $ sudo /etc/init.d/mysql stop $ sudo /etc/init.d/mysql start Please report back if this fixes your problem. If not, please post the Apparmor messages from /var/log/kern.log. -- AppArmor profile included doesn't allow mysql to bind to socket https://bugs.launchpad.net/bugs/306886 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 306886] Re: AppArmor profile included doesn't allow mysql to bind to socket
confirmed on 9.04 alpha 4 (with updates till today) also mention that I'm running on a 2.6.27-11 kernel, since my Intel graphics card is not well supported. mysqld would run well after removing apparmor -- AppArmor profile included doesn't allow mysql to bind to socket https://bugs.launchpad.net/bugs/306886 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 306886] Re: AppArmor profile included doesn't allow mysql to bind to socket
I can confirm this bug occuring with mysql-server-5.0 and apparmor on Ubuntu 8.04.2. When apparmor was installed, running '/etc/init.d/mysql start' would give errors. After uninstalling apparmor, mysqld started successfully. -- AppArmor profile included doesn't allow mysql to bind to socket https://bugs.launchpad.net/bugs/306886 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 306886] Re: AppArmor profile included doesn't allow mysql to bind to socket
It's a little messy and includes entries after i disabled AppArmor for MySQL. If you want i can purge MySQL and reinstall and give you a clean kern.log... Dec 10 13:15:20 avebi01 kernel: [ 40.551814] type=1503 audit(1228914920.026:3): operation="socket_create" family="inet" sock_type="stream" protocol=0 pid=5116 profile="/usr/sbin/mysqld" Dec 10 14:48:16 avebi01 kernel: [ 5617.384400] type=1503 audit(1228920496.804:4): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=6389 profile="/usr/sbin/mysqld" Dec 10 14:48:16 avebi01 kernel: [ 5617.494100] type=1503 audit(1228920496.916:5): operation="socket_create" family="inet" sock_type="stream" protocol=0 pid=6389 profile="/usr/sbin/mysqld" Dec 10 15:03:21 avebi01 kernel: [ 6521.866269] type=1503 audit(1228921401.284:6): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=6814 profile="/usr/sbin/mysqld" Dec 10 15:03:21 avebi01 kernel: [ 6521.961477] type=1503 audit(1228921401.386:7): operation="socket_create" family="inet" sock_type="stream" protocol=0 pid=6814 profile="/usr/sbin/mysqld" Dec 10 15:05:06 avebi01 kernel: [ 6627.177932] type=1503 audit(1228921506.596:8): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=6930 profile="/usr/sbin/mysqld" Dec 10 15:05:06 avebi01 kernel: [ 6627.282747] type=1503 audit(1228921506.706:9): operation="socket_create" family="inet" sock_type="stream" protocol=0 pid=6930 profile="/usr/sbin/mysqld" Dec 10 15:06:39 avebi01 kernel: [ 6720.360944] type=1503 audit(1228921599.777:10): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=7216 profile="/usr/sbin/mysqld" Dec 10 15:06:39 avebi01 kernel: [ 6720.464183] type=1503 audit(1228921599.887:11): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=7223 profile="/usr/sbin/mysqld" Dec 10 15:06:40 avebi01 kernel: [ 6720.831695] type=1503 audit(1228921600.256:12): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=7239 profile="/usr/sbin/mysqld" Dec 10 15:06:40 avebi01 kernel: [ 6721.015246] type=1503 audit(1228921600.434:13): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=7250 profile="/usr/sbin/mysqld" Dec 10 15:06:40 avebi01 kernel: [ 6721.052875] type=1503 audit(1228921600.474:14): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=7257 profile="/usr/sbin/mysqld" Dec 10 15:06:40 avebi01 kernel: [ 6721.090154] type=1503 audit(1228921600.514:15): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=7264 profile="/usr/sbin/mysqld" Dec 10 15:06:40 avebi01 kernel: [ 6721.404047] type=1505 audit(1228921600.826:16): operation="profile_replace" name="/usr/sbin/mysqld" name2="default" pid=7301 Dec 10 15:06:41 avebi01 kernel: [ 6721.883158] type=1503 audit(1228921601.304:17): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=7411 profile="/usr/sbin/mysqld" Dec 10 15:06:41 avebi01 kernel: [ 6721.994488] type=1503 audit(1228921601.416:18): operation="socket_create" family="inet" sock_type="stream" protocol=0 pid=7411 profile="/usr/sbin/mysqld" Dec 10 15:08:19 avebi01 kernel: [ 6819.640120] type=1503 audit(1228921699.056:19): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=7669 profile="/usr/sbin/mysqld" Dec 10 15:08:19 avebi01 kernel: [ 6819.743046] type=1503 audit(1228921699.164:20): operation="socket_create" family="inet" sock_type="stream" protocol=0 pid=7669 profile="/usr/sbin/mysqld" Dec 10 15:13:16 avebi01 kernel: [ 7117.446155] type=1503 audit(1228921996.864:21): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=8017 profile="/usr/sbin/mysqld" Dec 10 15:13:16 avebi01 kernel: [ 7117.541069] type=1503 audit(1228921996.954:22): operation="socket_create" family="inet" sock_type="stream" protocol=0 pid=8017 profile="/usr/sbin/mysqld" Dec 10 15:15:01 avebi01 kernel: [ 7221.790055] type=1503 audit(1228922101.207:23): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=8287 profile="/usr/sbin/mysqld" Dec 10 15:15:01 avebi01 kernel: [ 7221.837482] type=1503 audit(1228922101.257:24): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name