patch : first example not showing umask field from Table 1-2
Subsystems (2)
PATCH 3/3 patch : first example not showing umask field from Table 1-2
Signe-off-by Hans Weber <[email protected]>
--- Documentation/filesystems/proc.rst | 105 ++++++++++++++++------------- 1 file changed, 58 insertions(+), 47 deletions(-)
Documentation/filesystems/proc.rst +58 -47
@@ -138,7 +138,7 @@ usually fail with ESRCH. /proc (as of 5.10.0) ====================================================================================== - Name T Content + Name T Content ====================================================================================== arch_status f Task architecture specific information attr d API for security modules
@@ -213,52 +213,63 @@ usually fail with ESRCH. For example, to get the status information of a process, all you have to do is read the file /proc/PID/status:: - >cat /proc/self/status - Name: cat - State: R (running) - Tgid: 5452 - Pid: 5452 - PPid: 743 - TracerPid: 0 (2.4) - Uid: 501 501 501 501 - Gid: 100 100 100 100 - FDSize: 256 - Groups: 100 14 16 - VmPeak: 5004 kB - VmSize: 5004 kB - VmLck: 0 kB - VmHWM: 476 kB - VmRSS: 476 kB - RssAnon: 352 kB - RssFile: 120 kB - RssShmem: 4 kB - VmData: 156 kB - VmStk: 88 kB - VmExe: 68 kB - VmLib: 1412 kB - VmPTE: 20 kb - VmSwap: 0 kB - HugetlbPages: 0 kB - CoreDumping: 0 - THP_enabled: 1 - Threads: 1 - SigQ: 0/28578 - SigPnd: 0000000000000000 - ShdPnd: 0000000000000000 - SigBlk: 0000000000000000 - SigIgn: 0000000000000000 - SigCgt: 0000000000000000 - CapInh: 00000000fffffeff - CapPrm: 0000000000000000 - CapEff: 0000000000000000 - CapBnd: ffffffffffffffff - CapAmb: 0000000000000000 - NoNewPrivs: 0 - Seccomp: 0 - Speculation_Store_Bypass: thread vulnerable - SpeculationIndirectBranch: conditional enabled - voluntary_ctxt_switches: 0 - nonvoluntary_ctxt_switches: 1 +>cat /proc/self/status +Name: cat +Umask: 0022 +State: R (running) +Tgid: 19633 +Ngid: 0 +Pid: 19633 +PPid: 13898 +TracerPid: 0 +Uid: 1000 1000 1000 1000 +Gid: 1000 1000 1000 1000 +FDSize: 256 +Groups: 24 25 27 29 30 44 46 108 113 114 119 1000 +NStgid: 19633 +NSpid: 19633 +NSpgid: 19633 +NSsid: 13898 +VmPeak: 5440 kB +VmSize: 5440 kB +VmLck: 0 kB +VmPin: 0 kB +VmHWM: 520 kB +VmRSS: 520 kB +RssAnon: 68 kB +RssFile: 452 kB +RssShmem: 0 kB +VmData: 316 kB +VmStk: 132 kB +VmExe: 20 kB +VmLib: 1460 kB +VmPTE: 44 kB +VmSwap: 0 kB +HugetlbPages: 0 kB +CoreDumping: 0 +THP_enabled: 1 +Threads: 1 +SigQ: 0/47433 +SigPnd: 0000000000000000 +ShdPnd: 0000000000000000 +SigBlk: 0000000000000000 +SigIgn: 0000000000000000 +SigCgt: 0000000000000000 +CapInh: 0000000000000000 +CapPrm: 0000000000000000 +CapEff: 0000000000000000 +CapBnd: 000001ffffffffff +CapAmb: 0000000000000000 +NoNewPrivs: 0 +Seccomp: 0 +Seccomp_filters: 0 +Speculation_Store_Bypass: vulnerable +Cpus_allowed: ff +Cpus_allowed_list: 0-7 +Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 +Mems_allowed_list: 0 +voluntary_ctxt_switches: 0 +nonvoluntary_ctxt_switches: 0 This shows you nearly the same information you would get if you viewed it with the ps command. In fact, ps uses the proc file system to obtain its
Signature · 1 line
2.30.2
Randy Dunlap
reviewerQuoted 4 lines · Hans Weber
Signe-off-by Hans Weber <[email protected]>--- Documentation/filesystems/proc.rst | 105 ++++++++++++++++------------- 1 file changed, 58 insertions(+), 47 deletions(-)
Warning: trailing whitespace in line 228 of Documentation/filesystems/proc.rst
also:
Quoted 14 lines
Documentation/filesystems/proc.rst +1
-1@@ -138,7 +138,7 @@ usually fail with ESRCH. /proc (as of 5.10.0) ====================================================================================== - Name T Content + Name T Content ====================================================================================== arch_status f Task architecture specific information attr d API for security modules
Documentation/filesystems/proc.rst usually fail with ESRCH. · line 215
Quoted 3 lines
Documentation/filesystems/proc.rst +0
-0@@ -213,52 +213,63 @@ usually fail with ESRCH. For example, to get the status information of a process, all you have to do is read the file /proc/PID/status::
Why make all of these changes? Is the only difference the indentation? If you are adding some missing fields, then say so. And the Subject: line says "unmask", but I don't see anything here about "unmask".
Quoted 106 lines
Documentation/filesystems/proc.rst +57
-46- >cat /proc/self/status - Name: cat - State: R (running) - Tgid: 5452 - Pid: 5452 - PPid: 743 - TracerPid: 0 (2.4) - Uid: 501 501 501 501 - Gid: 100 100 100 100 - FDSize: 256 - Groups: 100 14 16 - VmPeak: 5004 kB - VmSize: 5004 kB - VmLck: 0 kB - VmHWM: 476 kB - VmRSS: 476 kB - RssAnon: 352 kB - RssFile: 120 kB - RssShmem: 4 kB - VmData: 156 kB - VmStk: 88 kB - VmExe: 68 kB - VmLib: 1412 kB - VmPTE: 20 kb - VmSwap: 0 kB - HugetlbPages: 0 kB - CoreDumping: 0 - THP_enabled: 1 - Threads: 1 - SigQ: 0/28578 - SigPnd: 0000000000000000 - ShdPnd: 0000000000000000 - SigBlk: 0000000000000000 - SigIgn: 0000000000000000 - SigCgt: 0000000000000000 - CapInh: 00000000fffffeff - CapPrm: 0000000000000000 - CapEff: 0000000000000000 - CapBnd: ffffffffffffffff - CapAmb: 0000000000000000 - NoNewPrivs: 0 - Seccomp: 0 - Speculation_Store_Bypass: thread vulnerable - SpeculationIndirectBranch: conditional enabled - voluntary_ctxt_switches: 0 - nonvoluntary_ctxt_switches: 1 +>cat /proc/self/status +Name: cat +Umask: 0022 +State: R (running) +Tgid: 19633 +Ngid: 0 +Pid: 19633 +PPid: 13898 +TracerPid: 0 +Uid: 1000 1000 1000 1000 +Gid: 1000 1000 1000 1000 +FDSize: 256 +Groups: 24 25 27 29 30 44 46 108 113 114 119 1000 +NStgid: 19633 +NSpid: 19633 +NSpgid: 19633 +NSsid: 13898 +VmPeak: 5440 kB +VmSize: 5440 kB +VmLck: 0 kB +VmPin: 0 kB +VmHWM: 520 kB +VmRSS: 520 kB +RssAnon: 68 kB +RssFile: 452 kB +RssShmem: 0 kB +VmData: 316 kB +VmStk: 132 kB +VmExe: 20 kB +VmLib: 1460 kB +VmPTE: 44 kB +VmSwap: 0 kB +HugetlbPages: 0 kB +CoreDumping: 0 +THP_enabled: 1 +Threads: 1 +SigQ: 0/47433 +SigPnd: 0000000000000000 +ShdPnd: 0000000000000000 +SigBlk: 0000000000000000 +SigIgn: 0000000000000000 +SigCgt: 0000000000000000 +CapInh: 0000000000000000 +CapPrm: 0000000000000000 +CapEff: 0000000000000000 +CapBnd: 000001ffffffffff +CapAmb: 0000000000000000 +NoNewPrivs: 0 +Seccomp: 0 +Seccomp_filters: 0 +Speculation_Store_Bypass: vulnerable +Cpus_allowed: ff +Cpus_allowed_list: 0-7 +Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 +Mems_allowed_list: 0 +voluntary_ctxt_switches: 0 +nonvoluntary_ctxt_switches: 0 This shows you nearly the same information you would get if you viewed it with the ps command. In fact, ps uses the proc file system to obtain its
Signature · 1 line
~Randy