On Fri, 2008-03-21 at 12:08 +0000, Roy Marples wrote: > On Friday 21 March 2008 10:44:12 Natanael Copa wrote: > > err... run rc-status as root? > > > > I mean if you are not supposed to see if a process is running or not as > > normal user, then hardned is doin it's job when does not allow rc-status > > to show this info to the unprivileged user. > > > > if (!HARDENED || (HARDENED && euid=0) { > > /* show if process is running or not */ > > } > > Ideally I'd like a runtime catch rather than a define for this though, but > that's probably the best idea thus far.
/* pid 1 is most likely owned by root */ hardened = pid_is_running(1); if (!hardened || (hardened && euid==0) { .... -nc > > Thanks Thanks for working on openrc. > Roy -- gentoo-dev@lists.gentoo.org mailing list