Details
-
Type:
Bug
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 10.0.21
-
Fix Version/s: None
-
Component/s: Admin statements
-
Labels:
-
Environment:Fedora release 22 (Twenty Two)
Description
I did a fresh install of fedora 22, then I installed dnf install mariadb-server.
After that I tried to start the service
systemctl start mariadb
Failed to start mariadb.service: Access denied
I know this is an issue wuth selinux, if I disable selinux everything works fine.
This is the error on messages
Oct 1 13:05:48 soprano audit: <audit-1107> pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: denied
and on audit.log
Is there a way to start fedora, without disable selinux.
Thanks
type=USER_AVC msg=audit(1443722877.675:3237): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: denied { start }
for auid=1002 uid=0 gid=0 path="/usr/lib/systemd/system/mariadb.service" cmdline="systemctl start mariadb" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mysqld_unit_file_t:s0 tclass=service exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Please check What to Do if MariaDB Doesn't Start KB page. It has a section about creating SELinux policies, hope it will help.