{
    "mode": "man",
    "parameter": "thread-keyring",
    "section": "7",
    "url": "https://www.chedong.com/phpMan.php/man/thread-keyring/7/json",
    "generated": "2026-06-12T16:17:39Z",
    "sections": {
        "NAME": {
            "content": "thread-keyring - per-thread keyring\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The  thread  keyring  is a keyring used to anchor keys on behalf of a process.  It is created\nonly when a thread requests it.  The thread keyring has the name (description) tid.\n\nA special serial number value, KEYSPECTHREADKEYRING, is defined that can be used  in  lieu\nof the actual serial number of the calling thread's thread keyring.\n\nFrom  the  keyctl(1)  utility,  '@t' can be used instead of a numeric key ID in much the same\nway, but as keyctl(1) is a program run after forking, this is of no utility.\n\nThread keyrings are not inherited across clone(2) and fork(2) and are cleared  by  execve(2).\nA thread keyring is destroyed when the thread that refers to it terminates.\n\nInitially,  a  thread  does  not  have  a  thread keyring.  If a thread doesn't have a thread\nkeyring when it is accessed, then it will be created if it is to be modified;  otherwise  the\noperation fails with the error ENOKEY.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "keyctl(1), keyctl(3), keyrings(7), persistent-keyring(7), process-keyring(7),\nsession-keyring(7), user-keyring(7), user-session-keyring(7)\n",
            "subsections": []
        },
        "COLOPHON": {
            "content": "This 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                            THREAD-KEYRING(7)",
            "subsections": []
        }
    },
    "summary": "thread-keyring - per-thread keyring",
    "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": "process-keyring",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/process-keyring/7/json"
        },
        {
            "name": "session-keyring",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/session-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"
        }
    ]
}