This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit ea1714f3e47b421f677ac5bcfd2a5a1eceb4969a
Author: Marco Casaroli <[email protected]>
AuthorDate: Fri Oct 23 16:32:30 2026 +0200

    Documentation: Describe the user and group of a process in procfs.
    
    Describe the Uid: and Gid: lines of /proc/<pid>/status and the owner of
    the /proc/<pid> entries with CONFIG_SCHED_USER_IDENTITY.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 Documentation/os/filesystem/procfs.rst | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Documentation/os/filesystem/procfs.rst 
b/Documentation/os/filesystem/procfs.rst
index 9f3cc7f6ae0..9a914c68b94 100644
--- a/Documentation/os/filesystem/procfs.rst
+++ b/Documentation/os/filesystem/procfs.rst
@@ -49,3 +49,16 @@ Example::
 
   nsh> cat /proc/2/cmdline
   <pthread> 0x527420
+
+Process user and group
+======================
+
+With ``CONFIG_SCHED_USER_IDENTITY=y``, ``/proc/<pid>/status`` has two more
+lines.  ``Uid:`` gives the real and the effective user ID of the task group
+of ``<pid>``.  ``Gid:`` gives the real and the effective group ID::
+
+  Uid:        1000 1000
+  Gid:        1000 1000
+
+``stat()`` of ``/proc/<pid>`` and of the files in it gives the effective
+user and group ID of the task group in ``st_uid`` and ``st_gid``.

Reply via email to