{
    "content": [
        {
            "type": "text",
            "text": "# PROCESS-KEYRING(7) (man)\n\n**Summary:** process-keyring - per-process shared keyring\n\n## See Also\n\n- keyctl(1)\n- keyctl(3)\n- keyrings(7)\n- persistent-keyring(7)\n- session-keyring(7)\n- thread-keyring(7)\n- user-keyring(7)\n- user-session-keyring(7)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **DESCRIPTION** (17 lines)\n- **SEE ALSO** (3 lines)\n- **COLOPHON** (7 lines)\n\n## Full Content\n\n### NAME\n\nprocess-keyring - per-process shared keyring\n\n### DESCRIPTION\n\nThe  process  keyring is a keyring used to anchor keys on behalf of a process.  It is created\nonly when a process requests it.  The process keyring has the name (description) pid.\n\nA special serial number value, KEYSPECPROCESSKEYRING, is defined that can be used in  lieu\nof the actual serial number of the calling process's process keyring.\n\nFrom  the  keyctl(1)  utility,  '@p' can be used instead of a numeric key ID in much the same\nway, but since keyctl(1) is a program run after forking, this is of no utility.\n\nA thread created using the clone(2) CLONETHREAD flag has the same  process  keyring  as  the\ncaller  of  clone(2).  When a new process is created using fork() it initially has no process\nkeyring.  A process's process keyring is cleared on execve(2).  The process  keyring  is  de‐\nstroyed when the last thread that refers to it terminates.\n\nIf  a  process  doesn't  have a process keyring when it is accessed, then the process keyring\nwill be created if the keyring is to be modified; otherwise, the error ENOKEY results.\n\n### SEE ALSO\n\nkeyctl(1), keyctl(3), keyrings(7), persistent-keyring(7), session-keyring(7),\nthread-keyring(7), user-keyring(7), user-session-keyring(7)\n\n### COLOPHON\n\nThis page is part of release 5.10 of the Linux man-pages project.  A description of the\nproject, information about reporting bugs, and the latest version of this page, can be found\nat https://www.kernel.org/doc/man-pages/.\n\n\n\nLinux                                        2020-08-13                           PROCESS-KEYRING(7)\n\n"
        }
    ],
    "structuredContent": {
        "command": "PROCESS-KEYRING",
        "section": "7",
        "mode": "man",
        "summary": "process-keyring - per-process shared keyring",
        "synopsis": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "keyctl",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/keyctl/1/json"
            },
            {
                "name": "keyctl",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/keyctl/3/json"
            },
            {
                "name": "keyrings",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/keyrings/7/json"
            },
            {
                "name": "persistent-keyring",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/persistent-keyring/7/json"
            },
            {
                "name": "session-keyring",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/session-keyring/7/json"
            },
            {
                "name": "thread-keyring",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/thread-keyring/7/json"
            },
            {
                "name": "user-keyring",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/user-keyring/7/json"
            },
            {
                "name": "user-session-keyring",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/user-session-keyring/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COLOPHON",
                "lines": 7,
                "subsections": []
            }
        ]
    }
}