{
    "content": [
        {
            "type": "text",
            "text": "# CAPTREE (man)\n\n## NAME\n\ncaptree - display tree of process capabilities\n\n## SYNOPSIS\n\ncaptree [OPTIONS] [(pid|glob-name) ...]\n\n## DESCRIPTION\n\ncaptree  displays  the  capabilities on the mentioned processes indicated by pid or glob-name\nvalue(s) given on the command line. If no pid etc values are supplied, pid=1  is  implied.  A\npid value of 0 displays all the processes known to the kernel.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (1 subsections)\n- **EXIT STATUS**\n- **REPORTING BUGS**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "CAPTREE",
        "section": "",
        "mode": "man",
        "summary": "captree - display tree of process capabilities",
        "synopsis": "captree [OPTIONS] [(pid|glob-name) ...]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": "--verbose",
                "arg": null,
                "description": "Displays capability sets and IAB tuples even when they are empty, or redundant. --depth=n Displays the process tree to a depth of n. Note, the default value for this parameter is 0, which implies infinite depth. --colo[u]r=false Colo[u]rs the targeted PIDs, if stdout is a TTY, in red. This option defaults to true when running via a TTY. The --color=false argument will suppress this color. Piping the output into some other program will also suppress the use of colo[u]r."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "capfromtext",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/capfromtext/3/json"
            },
            {
                "name": "capabilities",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/capabilities/7/json"
            },
            {
                "name": "capiab",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/capiab/3/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 15,
                "subsections": [
                    {
                        "name": "--verbose",
                        "lines": 11,
                        "long": "--verbose"
                    }
                ]
            },
            {
                "name": "EXIT STATUS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "captree - display tree of process capabilities\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "captree [OPTIONS] [(pid|glob-name) ...]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "captree  displays  the  capabilities on the mentioned processes indicated by pid or glob-name\nvalue(s) given on the command line. If no pid etc values are supplied, pid=1  is  implied.  A\npid value of 0 displays all the processes known to the kernel.\n\nThe  POSIX.1e capabilities are displayed in double quotes in the capfromtext(3) format. The\nIAB tuple of capabilities is displayed between square brackets in the text  format  described\nin  capiab(3).  Note, the IAB tuple text is omitted if it contains empty A and B components.\nThis is because the regular POSIX.1e text contains information about the Inheritable flag al‐\nready. This behavior can be overridden with the --verbose command line argument.\n\nOptional arguments (which must precede the list of pid|glob-name values):\n\n--help Displays usage information and exits. Note, modern Go runtimes exit with status  0  in\nthis case, but older runtimes exit with status 2.\n",
                "subsections": [
                    {
                        "name": "--verbose",
                        "content": "Displays capability sets and IAB tuples even when they are empty, or redundant.\n\n--depth=n\nDisplays the process tree to a depth of n.  Note, the default value for this parameter\nis 0, which implies infinite depth.\n\n--colo[u]r=false\nColo[u]rs  the targeted PIDs, if stdout is a TTY, in red. This option defaults to true\nwhen running via a TTY. The --color=false argument will suppress  this  color.  Piping\nthe output into some other program will also suppress the use of colo[u]r.\n",
                        "long": "--verbose"
                    }
                ]
            },
            "EXIT STATUS": {
                "content": "If the supplied target cannot be found the exit status is 1. Should an unrecognized option be\nprovided, the exit status is 2. Otherwise, captree exits with status 0.\n",
                "subsections": []
            },
            "REPORTING BUGS": {
                "content": "Please report bugs via:\n\nhttps://bugzilla.kernel.org/buglist.cgi?component=libcap&listid=1090757\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "capfromtext(3), capabilities(7), and capiab(3).\n\nThere is a longer article about captree, which includes some examples, here:\n\nhttps://sites.google.com/site/fullycapable/captree\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Andrew G. Morgan <morgan@kernel.org>\n\n2022-04-11                                   CAPTREE(8)",
                "subsections": []
            }
        }
    }
}