On Tue, Jul 8, 2008 at 7:27 PM, Dustin Kirkland <[EMAIL PROTECTED]> wrote:
> I have attached an updated patch for the status_of_proc() function, that
> we're currently carrying in Ubuntu.
>
> I have replaced the call to pidofproc() with an invocation
> of /bin/pidof.
>
> It seems that pidofproc() will attempt to call "kill -0" on a pid, if a
> pidfile is found.  This "kill" operation will only succeed if the euid
> is that of the user owning the daemon, or the root user.
>
> Querying the status of a daemon is an operation that should be
> accessible by non-privileged users.  I think this is a reasonable
> tradeoff.  I have tested this with modifications to the init scripts of:
> (at, bind9, cron, dovecot, openssh-server, samba, sysklogd).  It works
> very well.
>
>
> Additionally, you mentioned the current lenny freeze.  This is a very
> small, compact, standalone function within lsb-base.  This change should
> not affect any existing functionality.  Would you reconsider including
> this under the current freeze?  Patches to a number of init scripts are
> gated upon this functionality being incorporated into lsb-base.

I will see what I can do, but I'm not the gatekeeper for whether or
not it will actually make it in; lsb-base is already frozen, so the
decision is above my pay grade.


Chris



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to