[Bug 306886] Re: AppArmor profile included doesn't allow mysql to bind to socket

Márcio Santos marcio.santos at ua.pt
Wed Dec 10 18:04:32 GMT 2008


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="/var/run/samba/winbindd_privileged/pipe" pid=8294 profile="/usr/sbin/mysqld"
Dec 10 15:15:01 avebi01 kernel: [ 7222.163211] type=1503 audit(1228922101.587:25): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=8310 profile="/usr/sbin/mysqld"
Dec 10 15:15:01 avebi01 kernel: [ 7222.315886] type=1503 audit(1228922101.737:26): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=8318 profile="/usr/sbin/mysqld"
Dec 10 15:15:01 avebi01 kernel: [ 7222.383010] type=1503 audit(1228922101.807:27): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=8325 profile="/usr/sbin/mysqld"
Dec 10 15:15:01 avebi01 kernel: [ 7222.424074] type=1503 audit(1228922101.847:28): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=8332 profile="/usr/sbin/mysqld"
Dec 10 15:15:01 avebi01 kernel: [ 7222.466064] type=1503 audit(1228922101.887:29): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=8339 profile="/usr/sbin/mysqld"
Dec 10 15:15:02 avebi01 kernel: [ 7222.690635] type=1505 audit(1228922102.107:30): operation="profile_replace" name="/usr/sbin/mysqld" name2="default" pid=8376
Dec 10 15:15:02 avebi01 kernel: [ 7223.135443] type=1503 audit(1228922102.558:31): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=8486 profile="/usr/sbin/mysqld"
Dec 10 15:15:02 avebi01 kernel: [ 7223.268441] type=1503 audit(1228922102.685:32): operation="socket_create" family="inet" sock_type="stream" protocol=0 pid=8486 profile="/usr/sbin/mysqld"
Dec 10 15:24:03 avebi01 kernel: [ 7763.632884] type=1505 audit(1228922643.056:33): operation="profile_remove" name="/usr/sbin/mysqld" name2="default" pid=8853
Dec 10 15:25:01 avebi01 kernel: [ 7822.416145] type=1505 audit(1228922701.834:34): operation="profile_load" name="/usr/sbin/mysqld" name2="default" pid=9312
Dec 10 15:25:02 avebi01 kernel: [ 7822.866213] type=1503 audit(1228922702.284:35): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=9422 profile="/usr/sbin/mysqld"
Dec 10 15:25:02 avebi01 kernel: [ 7822.990591] type=1503 audit(1228922702.404:36): operation="socket_create" family="inet" sock_type="stream" protocol=0 pid=9422 profile="/usr/sbin/mysqld"
Dec 10 15:26:14 avebi01 kernel: [ 7895.176232] type=1503 audit(1228922774.597:37): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=9692 profile="/usr/sbin/mysqld"
Dec 10 15:26:14 avebi01 kernel: [ 7895.223656] type=1503 audit(1228922774.647:38): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=9699 profile="/usr/sbin/mysqld"
Dec 10 15:26:14 avebi01 kernel: [ 7895.550526] type=1503 audit(1228922774.967:39): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=9715 profile="/usr/sbin/mysqld"
Dec 10 15:26:15 avebi01 kernel: [ 7895.701665] type=1503 audit(1228922775.124:40): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=9723 profile="/usr/sbin/mysqld"
Dec 10 15:26:15 avebi01 kernel: [ 7895.746477] type=1503 audit(1228922775.164:41): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=9730 profile="/usr/sbin/mysqld"
Dec 10 15:26:15 avebi01 kernel: [ 7895.783544] type=1503 audit(1228922775.204:42): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=9737 profile="/usr/sbin/mysqld"
Dec 10 15:26:15 avebi01 kernel: [ 7895.827465] type=1503 audit(1228922775.244:43): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=9744 profile="/usr/sbin/mysqld"
Dec 10 15:26:15 avebi01 kernel: [ 7896.046066] type=1505 audit(1228922775.468:44): operation="profile_replace" name="/usr/sbin/mysqld" name2="default" pid=9781
Dec 10 15:26:15 avebi01 kernel: [ 7896.489868] type=1503 audit(1228922775.908:45): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=9891 profile="/usr/sbin/mysqld"
Dec 10 15:26:16 avebi01 kernel: [ 7896.638752] type=1503 audit(1228922776.054:46): operation="socket_create" family="inet" sock_type="stream" protocol=0 pid=9891 profile="/usr/sbin/mysqld"
Dec 10 15:26:47 avebi01 kernel: [ 7927.869727] type=1505 audit(1228922807.284:47): operation="profile_remove" name="/usr/sbin/mysqld" name2="default" pid=10091
Dec 10 15:29:07 avebi01 kernel: [ 8068.263412] type=1505 audit(1228922947.684:48): operation="profile_remove" info="failed: profile does not exist" name2="default" pid=10530
Dec 10 15:30:03 avebi01 kernel: [ 8124.516139] type=1505 audit(1228923003.934:49): operation="profile_load" name="/usr/sbin/mysqld" name2="default" pid=10937
Dec 10 15:30:09 avebi01 kernel: [ 8129.886932] type=1503 audit(1228923009.304:50): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/samba/winbindd_privileged/pipe" pid=11073 profile="/usr/sbin/mysqld"
Dec 10 15:30:09 avebi01 kernel: [ 8130.002863] type=1503 audit(1228923009.424:51): operation="socket_create" family="inet" sock_type="stream" protocol=0 pid=11073 profile="/usr/sbin/mysqld"
Dec 10 15:30:32 avebi01 kernel: [ 8153.405122] type=1505 audit(1228923032.827:52): operation="profile_remove" name="/usr/sbin/mysqld" name2="default" pid=11240

Hope it helps

-- 
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
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.



More information about the Ubuntu-server-bugs mailing list