Page 1 of 1

/proc/self/loginuid

Posted: 15 Jul 2024, 03:26
by cparke
I am using Porteus v5.01 KDE edition.

For some reason, even though /etc/pam.d/kde (and all the other files in the /etc/pam.d directory for that matter) has a 'session required pam_loginuid.so' entry, nevertheless there is no '/proc/self/loginuid' pseudo-file at all!

This is a problem for me, as I have an application that uses this pseudo-file and crashes without it!

Any idea why this Linux pseudo-file isn't present? (I've read elsewhere that Kernel build flag CONFIG_AUDITSYSCALL, set by CONFIG_AUDIT=y in the Makefile, may be a reason)

/proc/self/loginuid

Posted: 15 Jul 2024, 05:01
by ncmprhnsbl
can confirm.
cparke wrote:
15 Jul 2024, 03:26
Any idea why this Linux pseudo-file isn't present? (I've read elsewhere that Kernel build flag CONFIG_AUDITSYSCALL, set by CONFIG_AUDIT=y in the Makefile, may be a reason)
if it is the CONFIG_AUDIT= kernel build setting causing this, it would appear that porteus kernels have typically been built without this set. we might have to try that.
(there is CONFIG_HAVE_ARCH_AUDITSYSCALL=y ..that might be unrelated..)

..looking further, you might need the package: audit as well (can be got from salix)
and to quote from here: https://slackware.nl/slakfinder/show.php?pkg=2638731
The audit subsystem, which is not enabled in stock Slackware kernels
must be enabled and the kernel rebuilt in order to use auditd