[redhat-lspp] API for getting loginuid, for use by newrole and run_init

Steve Grubb sgrubb at redhat.com
Tue Jan 24 15:04:37 UTC 2006


On Tuesday 24 January 2006 08:30, Stephen Smalley wrote:
> Are there plans to add an API for getting the loginuid of the current
> process (e.g. getluid() or getloginuid()) either to glibc or in a
> separate library so that we can easily create and/or modify programs to
> get and use the loginuid without needing to directly replicate the code
> to read and parse /proc/self/loginuid each time?


These have been in libaudit for quite some time:

extern uid_t audit_getloginuid(void);
extern int  audit_setloginuid(uid_t uid);


-Steve




More information about the redhat-lspp mailing list