{
    "content": [
        {
            "type": "text",
            "text": "# pam_sepermit (man)\n\n## NAME\n\npamsepermit - PAM module to allow/deny login depending on SELinux enforcement state\n\n## SYNOPSIS\n\npamsepermit.so [debug] [conf=/path/to/config/file]\n\n## DESCRIPTION\n\nThe pamsepermit module allows or denies login depending on SELinux enforcement state.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS**\n- **MODULE TYPES PROVIDED**\n- **RETURN VALUES**\n- **FILES**\n- **EXAMPLES**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pam_sepermit",
        "section": "",
        "mode": "man",
        "summary": "pamsepermit - PAM module to allow/deny login depending on SELinux enforcement state",
        "synopsis": "pamsepermit.so [debug] [conf=/path/to/config/file]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "auth     [success=done ignore=ignore default=bad] pamsepermit.so",
            "auth     required  pamunix.so",
            "account  required  pamunix.so",
            "session  required  pampermit.so"
        ],
        "see_also": [
            {
                "name": "sepermit.conf",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/sepermit.conf/5/json"
            },
            {
                "name": "pam.conf",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pam.conf/5/json"
            },
            {
                "name": "pam.d",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pam.d/5/json"
            },
            {
                "name": "pam",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/pam/7/json"
            },
            {
                "name": "selinux",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/selinux/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 16,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "MODULE TYPES PROVIDED",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "RETURN VALUES",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pamsepermit - PAM module to allow/deny login depending on SELinux enforcement state\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pamsepermit.so [debug] [conf=/path/to/config/file]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The pamsepermit module allows or denies login depending on SELinux enforcement state.\n\nWhen the user which is logging in matches an entry in the config file he is allowed access\nonly when the SELinux is in enforcing mode. Otherwise he is denied access. For users not\nmatching any entry in the config file the pamsepermit module returns PAMIGNORE return\nvalue.\n\nThe config file contains a list of user names one per line with optional arguments. If the\nname is prefixed with @ character it means that all users in the group name match. If it is\nprefixed with a % character the SELinux user is used to match against the name instead of the\naccount name. Note that when SELinux is disabled the SELinux user assigned to the account\ncannot be determined. This means that such entries are never matched when SELinux is disabled\nand pamsepermit will return PAMIGNORE.\n\nSee sepermit.conf(5) for details.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "debug\nTurns on debugging via syslog(3).\n\nconf=/path/to/config/file\nPath to alternative config file overriding the default.\n",
                "subsections": []
            },
            "MODULE TYPES PROVIDED": {
                "content": "The auth and account module types are provided.\n",
                "subsections": []
            },
            "RETURN VALUES": {
                "content": "PAMAUTHERR\nSELinux is disabled or in the permissive mode and the user matches.\n\nPAMSUCCESS\nSELinux is in the enforcing mode and the user matches.\n\nPAMIGNORE\nThe user does not match any entry in the config file.\n\nPAMUSERUNKNOWN\nThe module was unable to determine the user's name.\n\nPAMSERVICEERR\nError during reading or parsing the config file.\n",
                "subsections": []
            },
            "FILES": {
                "content": "/etc/security/sepermit.conf\nDefault configuration file\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "auth     [success=done ignore=ignore default=bad] pamsepermit.so\nauth     required  pamunix.so\naccount  required  pamunix.so\nsession  required  pampermit.so\n\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "sepermit.conf(5), pam.conf(5), pam.d(5), pam(7) selinux(8)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "pamsepermit and this manual page were written by Tomas Mraz <tmraz@redhat.com>.\n\nLinux-PAM                                    05/07/2023                              PAMSEPERMIT(8)",
                "subsections": []
            }
        }
    }
}