-1

Just some pretext, I am fairly new to this and I'm still learning how SELinux works.

I am trying to Modify OS security module configurations, but the instructions given to me were for Ubuntu and AppArmor.

I am trying to change a few lines in the equivalent of the following file:

/etc/apparmor.d/usr.sbin.mysqld

However, I need to do this in SELinux and I am having trouble finding this file. Where can I access this file or something similar with SELinux? I am using CentOS 7.

2
  • 1
    What is the change that you're trying to mimic?
    – Jeff Schaller
    Jul 8, 2020 at 1:47
  • I need to modify MySQL DB data path. Jul 8, 2020 at 21:54

1 Answer 1

0

AppArmor and SELinux work differently. When AppArmor works on tunables and profiles, such as /etc/apparmor.d/usr.sbin.mysqld, SELinux works on contexts and booleans. If you want to make some change for the file /usr/sbin/mysqld, you can check it's context by listing it with "-Z" option: ls -Z /usr/sbin/mysqld

Then you can set appropriate boolean for the context, but it really depends on what exactly you want to do. If you want to learn more on how SELinux works, there's a good explanatory video: https://www.youtube.com/watch?v=_WOKRaM-HI4

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .