From: Natanael Copa <natanael.copa@gmail.com>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Testing to see if services have crashed on hardened
Date: Fri, 21 Mar 2008 13:39:48 +0100 [thread overview]
Message-ID: <1206103188.31941.24.camel@nc.nor.wtbts.org> (raw)
In-Reply-To: <200803211208.30919.roy@marples.name>
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
next prev parent reply other threads:[~2008-03-21 12:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-21 10:20 [gentoo-dev] Testing to see if services have crashed on hardened Roy Marples
2008-03-21 10:37 ` Fabian Groffen
2008-03-21 12:07 ` Roy Marples
2008-03-22 10:27 ` [gentoo-dev] Why no updates on delay of 2008.0 release Ben de Groot
2008-03-22 15:39 ` Sylvain Alain
2008-03-22 21:34 ` [gentoo-dev] " Duncan
2008-03-22 18:54 ` Christian Faulhammer
2008-03-23 2:01 ` [gentoo-dev] " Chrissy Fullam
2008-03-23 5:54 ` [gentoo-dev] " Duncan
2008-03-23 12:17 ` [gentoo-dev] " Richard Freeman
2008-03-23 12:26 ` Ciaran McCreesh
2008-03-23 13:00 ` Ben de Groot
2008-03-25 19:45 ` [gentoo-dev] Testing to see if services have crashed on hardened Fabian Groffen
2008-03-21 10:44 ` Natanael Copa
2008-03-21 12:08 ` Roy Marples
2008-03-21 12:39 ` Natanael Copa [this message]
2008-03-21 13:08 ` Roy Marples
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1206103188.31941.24.camel@nc.nor.wtbts.org \
--to=natanael.copa@gmail.com \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox