Bug 430192
| Summary: | Enforce level prevents mysqld from running | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | David Highley <david.m.highley> |
| Component: | selinux-policy-targeted | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED NOTABUG | QA Contact: | Ben Levenson <benl> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 8 | Keywords: | Reopened |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-01-30 15:26:19 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 430195 | ||
| Bug Blocks: | |||
|
Description
David Highley
2008-01-25 04:06:39 UTC
What avc messages are you seeing? type=AVC msg=audit(1201309200.360:626): avc: denied { unlink } for pid=13640
comm="mysqld" name="#sql_95c_0.MYI" dev=dm-0 ino=27001804
scontext=system_u:system_r:mysqld_t:s0
tcontext=system_u:object_r:user_home_dir_t:s0 tclass=file
type=SYSCALL msg=audit(1201309200.360:626): arch=c000003e syscall=87 success=yes
exit=0 a0=451097d0 a1=10 a2=451095ae a3=0 items=0 ppid=2339 pid=13640
auid=4294967295 uid=27 gid=27 euid=27 suid=27 fsuid=27 egid=27 sgid=27 fsgid=27
tty=(none) comm="mysqld" exe="/usr/libexec/mysqld"
subj=system_u:system_r:mysqld_t:s0 key=(null)
type=AVC msg=audit(1201309782.935:636): avc: denied { write } for pid=6524
comm="mysqld" name="housekeeping.MYI" dev=dm-0 ino=27067325
scontext=system_u:system_r:mysqld_t:s0 tcontext=system_u:object_r:user_home_t:s0
tclass=file
type=SYSCALL msg=audit(1201309782.935:636): arch=c000003e syscall=2 success=yes
exit=105 a0=45148e90 a1=2 a2=0 a3=4513e75b items=0 ppid=2339 pid=6524
auid=4294967295 uid=27 gid=27 euid=27 suid=27 fsuid=27 egid=27 sgid=27 fsgid=27
tty=(none) comm="mysqld" exe="/usr/libexec/mysqld"
subj=system_u:system_r:mysqld_t:s0 key=(null)
type=AVC msg=audit(1201316463.604:679): avc: denied { write } for pid=6524
comm="mysqld" name="housekeeping.MYI" dev=dm-0 ino=27067325
scontext=system_u:system_r:mysqld_t:s0 tcontext=system_u:object_r:user_home_t:s0
tclass=file
type=SYSCALL msg=audit(1201316463.604:679): arch=c000003e syscall=2 success=yes
exit=105 a0=45148e90 a1=2 a2=0 a3=4513e75b items=0 ppid=2339 pid=6524
auid=4294967295 uid=27 gid=27 euid=27 suid=27 fsuid=27 egid=27 sgid=27 fsgid=27
tty=(none) comm="mysqld" exe="/usr/libexec/mysqld"
subj=system_u:system_r:mysqld_t:s0 key=(null)
You have files mislabeled in /var/lib restorecon -R -F -v /var/lib Should fix the labeling. If you create files in your home dir and then move them to a system directory, make sure you label the correctly. restorecon will set the file context to the system defaults. OK, I did the command above and find that several things get relabeled. At the time I reported the issue I had done a relabel of /var/lib and found that some labels needed to be changed. I then did a touch /.autorelabel and did a reboot. The only thing that has been done since that time is patch updates and clamav auto updates its data files. So how does one keep the labels correct? Changed a passwd file shell entry to /sbin/nologin and relabel /var/lib fixed this issue. |