Bug 120711 - dc_client fails to create pid file
dc_client fails to create pid file
Product: Fedora
Classification: Fedora
Component: distcache (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
Depends On:
  Show dependency treegraph
Reported: 2004-04-13 08:53 EDT by Kaj J. Niemi
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version: 1.4.5-2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-04-13 09:20:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kaj J. Niemi 2004-04-13 08:53:57 EDT
Description of problem:
By default, dc_client attemtps to create /var/run/dc_client.pid as
nobody. This doesn't work as as /var/run is not writeable by any
others than root.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. /sbin/service dc_client start
1. "/usr/bin/dc_client -pidfile /var/run/distcache/dc_client.pid
-listen UNIX:/var/cache/mod_ssl/distcache -sockowner apache -sockperms
0600 -user nobody -server IP:localhost:5555"
3. ps ax|grep dc_client
Actual results:
Nothing there

Expected results:
Should work

Additional info:
I guess the easiest thing would be to create /var/run/distcache and
let nobody:nobody write to it. Alternatively the pid file creation
could be moved to an earlier point in the code but I'm not sure if
that is smart.
Comment 1 Kaj J. Niemi 2004-04-13 09:00:52 EDT
It is worth to note that dc_server does not suffer from the same problem.
Comment 2 Joe Orton 2004-04-13 09:06:56 EDT
Thanks for the report; this is a regression since 0.4.x.  Yes, it
should just write the pidfile before going setuid nobody, it's a
simple fix.
Comment 3 Joe Orton 2004-04-13 09:20:59 EDT
Fixed in 1.4.5-2.

Note You need to log in before you can comment on or make changes to this bug.