{
    "mode": "man",
    "parameter": "runcon",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/runcon/1/json",
    "generated": "2026-05-30T05:11:48Z",
    "synopsis": "runcon CONTEXT COMMAND [args]\nruncon [ -c ] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [args]",
    "sections": {
        "NAME": {
            "content": "runcon - run command with specified security context\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "runcon CONTEXT COMMAND [args]\nruncon [ -c ] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [args]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Run  COMMAND with completely-specified CONTEXT, or with current or transitioned security con‐\ntext modified by one or more of LEVEL, ROLE, TYPE, and USER.\n\nIf none of -c, -t, -u, -r, or -l, is specified, the first argument is used  as  the  complete\ncontext.  Any additional arguments after COMMAND are interpreted as arguments to the command.\n\nNote that only carefully-chosen contexts are likely to successfully run.\n\nRun  a  program  in  a different SELinux security context.  With neither CONTEXT nor COMMAND,\nprint the current security context.\n\nMandatory arguments to long options are mandatory for short options too.\n\nCONTEXT\nComplete security context\n",
            "subsections": [
                {
                    "name": "-c --compute",
                    "content": "compute process transition context before modifying\n",
                    "flag": "-c",
                    "long": "--compute"
                },
                {
                    "name": "-t --type",
                    "content": "type (for same role as parent)\n",
                    "flag": "-t",
                    "long": "--type"
                },
                {
                    "name": "-u --user",
                    "content": "user identity\n",
                    "flag": "-u",
                    "long": "--user"
                },
                {
                    "name": "-r --role",
                    "content": "role\n",
                    "flag": "-r",
                    "long": "--role"
                },
                {
                    "name": "-l --range",
                    "content": "levelrange\n\n--help display this help and exit\n",
                    "flag": "-l",
                    "long": "--range"
                },
                {
                    "name": "--version",
                    "content": "output version information and exit\n",
                    "long": "--version"
                }
            ]
        },
        "AUTHOR": {
            "content": "Written by Russell Coker.\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "GNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright © 2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3  or  later\n<https://gnu.org/licenses/gpl.html>.\nThis  is free software: you are free to change and redistribute it.  There is NO WARRANTY, to\nthe extent permitted by law.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Full documentation <https://www.gnu.org/software/coreutils/runcon>\nor available locally via: info '(coreutils) runcon invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                   RUNCON(1)",
            "subsections": []
        }
    },
    "summary": "runcon - run command with specified security context",
    "flags": [
        {
            "flag": "-c",
            "long": "--compute",
            "arg": null,
            "description": "compute process transition context before modifying"
        },
        {
            "flag": "-t",
            "long": "--type",
            "arg": null,
            "description": "type (for same role as parent)"
        },
        {
            "flag": "-u",
            "long": "--user",
            "arg": null,
            "description": "user identity"
        },
        {
            "flag": "-r",
            "long": "--role",
            "arg": null,
            "description": "role"
        },
        {
            "flag": "-l",
            "long": "--range",
            "arg": null,
            "description": "levelrange --help display this help and exit"
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "output version information and exit"
        }
    ],
    "examples": [],
    "see_also": []
}