{
    "mode": "man",
    "parameter": "proc_self",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/proc_self/5/json",
    "generated": "2026-10-07T20:15:20Z",
    "sections": {
        "NAME": {
            "content": "/proc/pid/, /proc/self/ - process information\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "/proc/pid/\nThere  is a numerical subdirectory for each running process; the subdirectory is named\nby the process ID.  Each /proc/pid subdirectory contains the pseudo-files and directo‐\nries described below.\n\nThe files inside each /proc/pid directory are normally owned by the effective user and\neffective group ID of the process.  However, as a security measure, the  ownership  is\nmade root:root if the process's \"dumpable\" attribute is set to a value other than 1.\n\nBefore Linux 4.11, root:root meant the \"global\" root user ID and group ID (i.e., UID 0\nand  GID  0  in the initial user namespace).  Since Linux 4.11, if the process is in a\nnoninitial user namespace that has a valid mapping for user (group) ID  0  inside  the\nnamespace,  then  the  user  (group) ownership of the files under /proc/pid is instead\nmade the same as the root user (group) ID of the namespace.  This means that inside  a\ncontainer, things work as expected for the container \"root\" user.\n\nThe process's \"dumpable\" attribute may change for the following reasons:\n\n•  The attribute was explicitly set via the prctl(2) PRSETDUMPABLE operation.\n\n•  The  attribute  was  reset to the value in the file /proc/sys/fs/suiddumpable (de‐\nscribed below), for the reasons described in prctl(2).\n\nResetting the \"dumpable\" attribute to 1 reverts the ownership of the /proc/pid/* files\nto the process's effective UID and GID.  Note, however, that if the effective  UID  or\nGID is subsequently modified, then the \"dumpable\" attribute may be reset, as described\nin  prctl(2).   Therefore, it may be desirable to reset the \"dumpable\" attribute after\nmaking any desired changes to the process's effective UID or GID.\n\n/proc/self/\nThis directory refers to the process accessing the /proc filesystem, and is  identical\nto the /proc directory named by the process ID of the same process.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "proc(5)\n\nLinux man-pages 6.7                          2023-08-15                                  procpid(5)",
            "subsections": []
        }
    },
    "summary": "/proc/pid/, /proc/self/ - process information",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "proc",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/proc/5/json"
        }
    ]
}