How to view SELinux config file

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
OS: CentOS 7.4.1708
I'm testing SELinux but I can't figure out how to open the config file to view it. I'm sure this is simple but nothing seems to work. How do I do this?
Attempt 1) I navigated to /etc/sysconfig but I can't navigate further into the /selinux folder. This folder is cyan colored which indicates that it is a symbolic link. I'm not sure what to do in that case.
Attempt 2) I typed cat /selinux/config but received the error
cat: /selinux/config: No such file or directory
I'm not trying to edit the config file. I just want to look inside to learn about the settings inside of it.
--update--
My Nginx reverse proxy wouldn't work until I entered this into the command line,
httpd_can_network_connect true
I'm trying to look at the config or related files to see/understand what I did to make my reverse proxy work.
Thanks so much for any help!
centos selinux
add a comment |Â
up vote
1
down vote
favorite
OS: CentOS 7.4.1708
I'm testing SELinux but I can't figure out how to open the config file to view it. I'm sure this is simple but nothing seems to work. How do I do this?
Attempt 1) I navigated to /etc/sysconfig but I can't navigate further into the /selinux folder. This folder is cyan colored which indicates that it is a symbolic link. I'm not sure what to do in that case.
Attempt 2) I typed cat /selinux/config but received the error
cat: /selinux/config: No such file or directory
I'm not trying to edit the config file. I just want to look inside to learn about the settings inside of it.
--update--
My Nginx reverse proxy wouldn't work until I entered this into the command line,
httpd_can_network_connect true
I'm trying to look at the config or related files to see/understand what I did to make my reverse proxy work.
Thanks so much for any help!
centos selinux
Do you mean that you want to see the domain, file context, etc. definitions?
â Ignacio Vazquez-Abrams
Feb 9 at 17:24
httpd_can_network_connect trueI used this command to make a reverse proxy server work and I'm trying to figure out what I did by looking at the config or related file.
â DR01D
Feb 9 at 17:26
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
OS: CentOS 7.4.1708
I'm testing SELinux but I can't figure out how to open the config file to view it. I'm sure this is simple but nothing seems to work. How do I do this?
Attempt 1) I navigated to /etc/sysconfig but I can't navigate further into the /selinux folder. This folder is cyan colored which indicates that it is a symbolic link. I'm not sure what to do in that case.
Attempt 2) I typed cat /selinux/config but received the error
cat: /selinux/config: No such file or directory
I'm not trying to edit the config file. I just want to look inside to learn about the settings inside of it.
--update--
My Nginx reverse proxy wouldn't work until I entered this into the command line,
httpd_can_network_connect true
I'm trying to look at the config or related files to see/understand what I did to make my reverse proxy work.
Thanks so much for any help!
centos selinux
OS: CentOS 7.4.1708
I'm testing SELinux but I can't figure out how to open the config file to view it. I'm sure this is simple but nothing seems to work. How do I do this?
Attempt 1) I navigated to /etc/sysconfig but I can't navigate further into the /selinux folder. This folder is cyan colored which indicates that it is a symbolic link. I'm not sure what to do in that case.
Attempt 2) I typed cat /selinux/config but received the error
cat: /selinux/config: No such file or directory
I'm not trying to edit the config file. I just want to look inside to learn about the settings inside of it.
--update--
My Nginx reverse proxy wouldn't work until I entered this into the command line,
httpd_can_network_connect true
I'm trying to look at the config or related files to see/understand what I did to make my reverse proxy work.
Thanks so much for any help!
centos selinux
edited Feb 9 at 17:30
asked Feb 9 at 17:21
DR01D
1115
1115
Do you mean that you want to see the domain, file context, etc. definitions?
â Ignacio Vazquez-Abrams
Feb 9 at 17:24
httpd_can_network_connect trueI used this command to make a reverse proxy server work and I'm trying to figure out what I did by looking at the config or related file.
â DR01D
Feb 9 at 17:26
add a comment |Â
Do you mean that you want to see the domain, file context, etc. definitions?
â Ignacio Vazquez-Abrams
Feb 9 at 17:24
httpd_can_network_connect trueI used this command to make a reverse proxy server work and I'm trying to figure out what I did by looking at the config or related file.
â DR01D
Feb 9 at 17:26
Do you mean that you want to see the domain, file context, etc. definitions?
â Ignacio Vazquez-Abrams
Feb 9 at 17:24
Do you mean that you want to see the domain, file context, etc. definitions?
â Ignacio Vazquez-Abrams
Feb 9 at 17:24
httpd_can_network_connect true I used this command to make a reverse proxy server work and I'm trying to figure out what I did by looking at the config or related file.â DR01D
Feb 9 at 17:26
httpd_can_network_connect true I used this command to make a reverse proxy server work and I'm trying to figure out what I did by looking at the config or related file.â DR01D
Feb 9 at 17:26
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
The SELinux policy source is in the selinux-policy SRPM. Once you have downloaded, installed, and patch-built it you will need to look under serefpolicy-x.y.z/policy/modules/contrib/apache.* to find all the httpd-related rules and booleans and then follow the rabbit down the hole from there.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
The SELinux policy source is in the selinux-policy SRPM. Once you have downloaded, installed, and patch-built it you will need to look under serefpolicy-x.y.z/policy/modules/contrib/apache.* to find all the httpd-related rules and booleans and then follow the rabbit down the hole from there.
add a comment |Â
up vote
2
down vote
accepted
The SELinux policy source is in the selinux-policy SRPM. Once you have downloaded, installed, and patch-built it you will need to look under serefpolicy-x.y.z/policy/modules/contrib/apache.* to find all the httpd-related rules and booleans and then follow the rabbit down the hole from there.
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
The SELinux policy source is in the selinux-policy SRPM. Once you have downloaded, installed, and patch-built it you will need to look under serefpolicy-x.y.z/policy/modules/contrib/apache.* to find all the httpd-related rules and booleans and then follow the rabbit down the hole from there.
The SELinux policy source is in the selinux-policy SRPM. Once you have downloaded, installed, and patch-built it you will need to look under serefpolicy-x.y.z/policy/modules/contrib/apache.* to find all the httpd-related rules and booleans and then follow the rabbit down the hole from there.
answered Feb 9 at 17:39
Ignacio Vazquez-Abrams
32.1k66780
32.1k66780
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f423093%2fhow-to-view-selinux-config-file%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Do you mean that you want to see the domain, file context, etc. definitions?
â Ignacio Vazquez-Abrams
Feb 9 at 17:24
httpd_can_network_connect trueI used this command to make a reverse proxy server work and I'm trying to figure out what I did by looking at the config or related file.â DR01D
Feb 9 at 17:26