How to view SELinux config file

The name of the pictureThe name of the pictureThe name of the pictureClash 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!







share|improve this question






















  • 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














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!







share|improve this question






















  • 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












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!







share|improve this question














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!









share|improve this question













share|improve this question




share|improve this question








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 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
















  • 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















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










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.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    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






























    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.






    share|improve this answer
























      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.






      share|improve this answer






















        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.






        share|improve this answer












        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 9 at 17:39









        Ignacio Vazquez-Abrams

        32.1k66780




        32.1k66780






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)