{
    "mode": "man",
    "parameter": "keyutils",
    "section": "7",
    "url": "https://www.chedong.com/phpMan.php/man/keyutils/7/json",
    "generated": "2026-10-04T15:18:25Z",
    "sections": {
        "NAME": {
            "content": "keyutils - in-kernel key management utilities\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The  keyutils  package  is a library and a set of utilities for accessing the kernel keyrings\nfacility.\n\nA header file is supplied to provide the definitions and declarations required to access  the\nlibrary:\n\n#include <keyutils.h>\n\nTo link with the library, the following:\n\n-lkeyutils\n\nshould be specified to the linker.\n\nThree system calls are provided:\n\naddkey(2)\nSupply a new key to the kernel.\n\nrequestkey(2)\nFind an existing key for use, or, optionally, create one if one does not exist.\n\nkeyctl(2)\nControl a key in various ways.  The library provides a variety of wrappers around this\nsystem call and those should be used rather than calling it directly.\n\nSee the addkey(2), requestkey(2), and keyctl(2) manual pages for more information.\n\nThe keyctl() wrappers are listed on the keyctl(3) manual page.\n",
            "subsections": []
        },
        "UTILITIES": {
            "content": "A program is provided to interact with the kernel facility by a number of subcommands, e.g.:\n\nkeyctl add user foo bar @s\n\nSee the keyctl(1) manual page for information on that.\n\nThe  kernel  has the ability to upcall to userspace to fabricate new keys.  This can be trig‐\ngered by requestkey(), but userspace is better off using addkey() instead  if  it  possibly\ncan.\n\nThe  upcalling  mechanism  is  usually routed via the request-key(8) program.  What this does\nwith any particular key is configurable in:\n\n/etc/request-key.conf\n/etc/request-key.d/\n\nSee the request-key.conf(5) and the request-key(8) manual pages for more information.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "keyctl(1), keyctl(3), keyrings(7), persistent-keyring(7), process-keyring(7),\nsession-keyring(7), thread-keyring(7), user-keyring(7), user-session-keyring(7),\npamkeyinit(8)\n\nLinux                                        21 Feb 2014                                 KEYUTILS(7)",
            "subsections": []
        }
    },
    "summary": "keyutils - in-kernel key management utilities",
    "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": "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"
        },
        {
            "name": "pamkeyinit",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/pamkeyinit/8/json"
        }
    ]
}