{
    "content": [
        {
            "type": "text",
            "text": "# pam_sm_open_session (man)\n\n## NAME\n\npamsmopensession - PAM service function to start session management\n\n## SYNOPSIS\n\n#include <security/pammodules.h>\nint pamsmopensession(pamhandlet *pamh, int flags, int argc, const char argv);\n\n## DESCRIPTION\n\nThe pamsmopensession function is the service module's implementation of the\npamopensession(3) interface.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **RETURN VALUES**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pam_sm_open_session",
        "section": "",
        "mode": "man",
        "summary": "pamsmopensession - PAM service function to start session management",
        "synopsis": "#include <security/pammodules.h>\nint pamsmopensession(pamhandlet *pamh, int flags, int argc, const char argv);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "pam",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/pam/3/json"
            },
            {
                "name": "pamopensession",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/pamopensession/3/json"
            },
            {
                "name": "pamsmclosesession",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/pamsmclosesession/3/json"
            },
            {
                "name": "pamstrerror",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/pamstrerror/3/json"
            },
            {
                "name": "PAM",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/PAM/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "RETURN VALUES",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pamsmopensession - PAM service function to start session management\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "#include <security/pammodules.h>\n\nint pamsmopensession(pamhandlet *pamh, int flags, int argc, const char argv);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The pamsmopensession function is the service module's implementation of the\npamopensession(3) interface.\n\nThis function is called to commence a session. The only valid value for flags is zero or:\n\nPAMSILENT\nDo not emit any messages.\n",
                "subsections": []
            },
            "RETURN VALUES": {
                "content": "PAMSESSIONERR\nCannot make/remove an entry for the specified session.\n\nPAMSUCCESS\nThe session was successfully started.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pam(3), pamopensession(3), pamsmclosesession(3), pamstrerror(3), PAM(8)\n\n\n\nLinux-PAM Manual                             06/08/2020                       PAMSMOPENSESSION(3)",
                "subsections": []
            }
        }
    }
}