I try to uninstall/reinstall, but it's the same thing
Thanks
Mathias Gug a écrit :
> On Fri, Jun 05, 2009 at 10:22:24PM -0000, pascal wrote:
>
>>>> Jun 5 15:31:41 pascal-laptop mysqld[15676]: 090605 15:31:41 InnoDB:
>>>> Operating system error number 13 in a file operation.
>>>> Jun 5 15:31:41 pascal-laptop mysqld[15676]: InnoDB: The error means
>>>> mysqld does not have the access rights to
>>>> Jun 5 15:31:41 pascal-laptop mysqld[15676]: InnoDB: the directory.
>>>>
>>>>
>>> Why is mysql trying to use /home/mysql/ as its data directory
>>>
>>> Is /var/lib/mysql/ a symlink to /home/mysql/ ?
>>>
>>>
>> Not a symlink, but a datadir setting in my.cnf
>>
>>> This is a non-default setup and thus mysqld apparmor profile needs to be
>>> updated to account for this custom configuration.
>>>
>>>
>>>
>> Apparmor is updated and ok
>>
>> All is good before the update.
>>
>
> Could you post the mysqld apparmor profile (found in /etc/apparmor.d/)?
> Could you check if there are audit messages related to apparmor and
> mysqld in /var/log/kern.log?
>
>
>
kern.log after an update:
Jun 6 14:09:34 pascal-laptop kernel: [ 2778.336042] CE: hpet increasing 7.985:12) : operation= "profile_ replace" usr/share/ gdm/guest- session/ Xsession" name2="default" pid=6760 8.057:13) : operation= "profile_ replace" sbin/dhclient- script" name2="default" pid=6764 8.057:14) : operation= "profile_ replace" sbin/dhclient3" name2="default" pid=6764 8.057:15) : operation= "profile_ replace" usr/lib/ NetworkManager/ nm-dhcp- client. action" name2="default" 8.057:16) : operation= "profile_ replace" usr/lib/ connman/ scripts/ dhclient- script" name2="default" pid=6764 8.245:17) : operation= "profile_ replace" usr/lib/ cups/backend/ cups-pdf" name2="default" pid=6769 8.245:18) : operation= "profile_ replace" usr/sbin/ cupsd" name2="default" pid=6769 8.293:19) : operation= "profile_ replace" usr/sbin/ mysqld" name2="default" pid=6774 8.333:20) : operation= "profile_ replace" usr/sbin/ mysqld" name2="default" pid=6781 5.974:25) : operation= "inode_ create" requested_ mask="a: :" home/mysql/ pascal- laptop. lower-test" "/usr/sbin/ mysqld" 5.974:26) : operation= "inode_ create" requested_ mask="a: :" home/mysql/ pascal- laptop. lower-test" "/usr/sbin/ mysqld" 5.982:27) : operation= "inode_ permission" mask="r: :" denied_mask="r::" fsuid=112 home/mysql/ mysql/db. frm" pid=7179 profile= "/usr/sbin/ mysqld" 6.022:28) : operation= "inode_ create" requested_ mask="a: :" home/mysql/ pascal- laptop. lower-test" "/usr/sbin/ mysqld" 6.022:29) : operation= "inode_ create" requested_ mask="a: :" home/mysql/ pascal- laptop. lower-test" "/usr/sbin/ mysqld" 6.026:30) : operation= "inode_ permission" mask="r: :" denied_mask="r::" fsuid=112 home/mysql/ mysql/user. frm" pid=7195 profile= "/usr/sbin/ mysqld" 6.026:31) : operation= "inode_ permission" mask="r: :" denied_mask="r::" fsuid=112 home/mysql/ mysql/user. frm" pid=7195 profile= "/usr/sbin/ mysqld" 6.026:32) : operation= "inode_ permission" mask="r: :" denied_mask="r::" fsuid=112 home/mysql/ mysql/user. frm" pid=7195 profile= "/usr/sbin/ mysqld" 6.058:33) : operation= "inode_ create" requested_ mask="a: :" home/mysql/ pascal- laptop. lower-test" "/usr/sbin/ mysqld" 6.058:34) : operation= "inode_ create" requested_ mask="a: :" home/mysql/ pascal- laptop. lower-test" "/usr/sbin/ mysqld"
min_delta_ns to 15000 nsec
Jun 6 14:12:27 pascal-laptop kernel: [ 2951.365529] type=1505
audit(124429034
name="/
Jun 6 14:12:28 pascal-laptop kernel: [ 2951.437593] type=1505
audit(124429034
name="/
Jun 6 14:12:28 pascal-laptop kernel: [ 2951.437900] type=1505
audit(124429034
name="/
Jun 6 14:12:28 pascal-laptop kernel: [ 2951.437962] type=1505
audit(124429034
name="/
pid=6764
Jun 6 14:12:28 pascal-laptop kernel: [ 2951.438019] type=1505
audit(124429034
name="/
Jun 6 14:12:28 pascal-laptop kernel: [ 2951.625141] type=1505
audit(124429034
name="/
Jun 6 14:12:28 pascal-laptop kernel: [ 2951.625518] type=1505
audit(124429034
name="/
Jun 6 14:12:28 pascal-laptop kernel: [ 2951.673473] type=1505
audit(124429034
name="/
Jun 6 14:12:28 pascal-laptop kernel: [ 2951.715329] type=1505
audit(124429034
name="/
Jun 6 14:12:45 pascal-laptop kernel: [ 2969.356181] __ratelimit: 12
callbacks suppressed
Jun 6 14:12:45 pascal-laptop kernel: [ 2969.356185] type=1503
audit(124429036
denied_mask="a::" fsuid=0 name="/
pid=7176 profile=
Jun 6 14:12:45 pascal-laptop kernel: [ 2969.356259] type=1503
audit(124429036
denied_mask="a::" fsuid=0 name="/
pid=7176 profile=
Jun 6 14:12:45 pascal-laptop kernel: [ 2969.363748] type=1503
audit(124429036
requested_
name="/
Jun 6 14:12:46 pascal-laptop kernel: [ 2969.403433] type=1503
audit(124429036
denied_mask="a::" fsuid=0 name="/
pid=7191 profile=
Jun 6 14:12:46 pascal-laptop kernel: [ 2969.403508] type=1503
audit(124429036
denied_mask="a::" fsuid=0 name="/
pid=7191 profile=
Jun 6 14:12:46 pascal-laptop kernel: [ 2969.407872] type=1503
audit(124429036
requested_
name="/
Jun 6 14:12:46 pascal-laptop kernel: [ 2969.407921] type=1503
audit(124429036
requested_
name="/
Jun 6 14:12:46 pascal-laptop kernel: [ 2969.408101] type=1503
audit(124429036
requested_
name="/
Jun 6 14:12:46 pascal-laptop kernel: [ 2969.437078] type=1503
audit(124429036
denied_mask="a::" fsuid=0 name="/
pid=7202 profile=
Jun 6 14:12:46 pascal-laptop kernel: [ 2969.437463] type=1503
audit(124429036
denied_mask="a::" fsuid=0 name="/
pid=7202 profile=
/etc/apparmor. d/usr.sbin. mysqld:
# vim:syntax=apparmor
# Last Modified: Tue Jun 19 17:37:30 2007
#include <tunables/global>
/usr/sbin/mysqld { nameservice> user-tmp> mysql> winbind>
#include <abstractions/base>
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
capability dac_override,
capability sys_resource,
capability setgid,
capability setuid,
network tcp,
/etc/hosts.allow r,
/etc/hosts.deny r,
/etc/mysql/*.pem r, mysql/conf. d/ r, mysql/conf. d/* r, share/mysql/ ** r, log/mysql. log rw, log/mysql. err rw, run/mysqld/ mysqld. pid w, run/mysqld/ mysqld. sock w,
/etc/
/etc/
/etc/mysql/my.cnf r,
/usr/sbin/mysqld mr,
/usr/
/var/
/var/
/home/mysql/ r,
/home/mysql/** rwk,
/var/log/mysql/ r,
/var/log/mysql/* rw,
/var/
/var/
}
I try to uninstall/ reinstall, but it's the same thing
Thanks
Mathias Gug a écrit :
> On Fri, Jun 05, 2009 at 10:22:24PM -0000, pascal wrote:
>
>>>> Jun 5 15:31:41 pascal-laptop mysqld[15676]: 090605 15:31:41 InnoDB:
>>>> Operating system error number 13 in a file operation.
>>>> Jun 5 15:31:41 pascal-laptop mysqld[15676]: InnoDB: The error means
>>>> mysqld does not have the access rights to
>>>> Jun 5 15:31:41 pascal-laptop mysqld[15676]: InnoDB: the directory.
>>>>
>>>>
>>> Why is mysql trying to use /home/mysql/ as its data directory
>>>
>>> Is /var/lib/mysql/ a symlink to /home/mysql/ ?
>>>
>>>
>> Not a symlink, but a datadir setting in my.cnf
>>
>>> This is a non-default setup and thus mysqld apparmor profile needs to be
>>> updated to account for this custom configuration.
>>>
>>>
>>>
>> Apparmor is updated and ok
>>
>> All is good before the update.
>>
>
> Could you post the mysqld apparmor profile (found in /etc/apparmor.d/)?
> Could you check if there are audit messages related to apparmor and
> mysqld in /var/log/kern.log?
>
>
>