some uid's in /proc/pid/loginuid are strange
4294967295 is just (unsigned long) -1. -1 means that loginuid was not set. This is normal behavior for processes that were not spawned by any login process (e.g. for daemons).loginuid is -1 by default; pam_loginuid module changes it to your user id whenever you login (in a tty/in DM/via ssh), and this value is preserved by child processes.
I am gravedigging, but I stumped on this and I have infos to share.
- kernel support
loginuid support required the kernel compiled with CONFIG_AUDITSYSCALL
To check:
zgrep CONFIG_AUDITSYSCALL /boot/config* /proc/config.gz
- kernel bugs
At the moment, I can check on two centos hosts.Both of them have 64 bit kernels compiled with CONFIG_AUDITSYSCALL=y
I am logged as a normal user in bash.
centos 5.11, kernel 2.6.18-419.el5
cat /proc/$$/loginuid
4294967295
centos 6.10, kernel 2.6.32-754.28.1.el6
cat /proc/$$/loginuid
503