Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Fabian Groffen <grobian@g.o>
Subject: Re: Testing to see if services have crashed on hardened
Date: Tue, 25 Mar 2008 20:45:26 +0100
On 21-03-2008 12:07:24 +0000, Roy Marples wrote:
> On Friday 21 March 2008 10:37:11 Fabian Groffen wrote:
> > Assuming you would use libkvm, on Darwin this means as unprivileged user
> > (not using suid) you can't see any processes at all.
> 
> That's different from FreeBSD and NetBSD then.

Indeed.  And I just found out that Leopard (10.5) dropped the entire kvm
which wasn't working to funky anyway.  I just made some implementation
of walking through all running processes for portage-utils' `qlop -c`
using sysctl calls -- the way to do it on Darwin, and that works even as
normal unprivileged user, so I guess we can just use that.

> > Is there a way to just have some fallback method which is less
> > functional, but just uses some pid file with a lock or something?
> 
> Not all services use pidfiles. Also, some services re-fork and re-write their 
> pidfiles and I'm not sure the lock would carry across in that instance.

I was thinking of a wrapping process, but I only later realised that
this isn't working since many/most daemons fork into the background, so
you loose the control over it anyway.


-- 
Fabian Groffen
Gentoo on a different level
-- 
gentoo-dev@g.o mailing list


References:
Testing to see if services have crashed on hardened
-- Roy Marples
Re: Testing to see if services have crashed on hardened
-- Fabian Groffen
Re: Testing to see if services have crashed on hardened
-- Roy Marples
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Why no updates on delay of 2008.0 release
Next by thread:
Re: Testing to see if services have crashed on hardened
Previous by date:
Re: Re: bzr.eclass into Portage
Next by date:
Re: bzr.eclass into Portage


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.