[PATCH] proc.5: Add /proc/[pid]/loginuid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Lucas Werkmeister <mail@xxxxxxxxxxxxxxxxxxx>
---

Notes:
    On my system, this file is used by logname(1), but I decided against
    mentioning the command, since it’s an indirect relation at best (via
    getlogin(3)) that’s not mentioned in other documentation either.

 man5/proc.5 | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/man5/proc.5 b/man5/proc.5
index dd05db6c6..25a971afc 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -1190,9 +1190,23 @@ this file is protected to allow reading only by the real UID of the process.
 Since Linux 2.6.36,
 .\" commit 3036e7b490bf7878c6dae952eec5fb87b1106589
 this file is readable by all users on the system.
-.\" FIXME Describe /proc/[pid]/loginuid
-.\"       Added in 2.6.11; updating requires CAP_AUDIT_CONTROL
-.\"       CONFIG_AUDITSYSCALL
+.TP
+.IR /proc/[pid]/loginuid " (since Linux 2.6.11)"
+This file contains the login user ID of the process,
+which is typically set by
+.BR pam_loginuid (8)
+during the login process and not influenced by later user changes
+such as through commands like
+.BR su (1)
+or
+.BR sudo (8).
+A process must be privileged
+.RB ( CAP_AUDIT_CONTROL )
+to update this file.
+This file is present only if the kernel was configured with
+.BR CONFIG_AUDIT " (since Linux 5.1),"
+previously
+.BR CONFIG_AUDITSYSCALL .
 .TP
 .IR /proc/[pid]/map_files/ " (since kernel 3.3)
 .\" commit 640708a2cff7f81e246243b0073c66e6ece7e53e
-- 
2.23.0




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux