Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19647 - invalid ownership on /var/run/radvd
Summary: invalid ownership on /var/run/radvd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The ipv6 Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-20 01:07 UTC by Darrell Wright
Modified: 2005-06-28 10:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Corrected ebuild (radvd-0.7.2-r1.ebuild,1.29 KB, text/plain)
2003-04-21 08:53 UTC, Guy Martin (RETIRED)
Details
radvd-0.7.2-r1-r2.patch (radvd-0.7.2-r1-r2.patch,1.34 KB, patch)
2005-06-28 10:53 UTC, Francesco R. (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darrell Wright 2003-04-20 01:07:24 UTC
The radvd daemon does not start because the specified pidfile under
/var/run/radvd cannot be created.  The directory is there but has root
ownership/group and is the only user that can write to it.  radvd is run as the
radvd user and thus cannot write to a pidfile there.  

The fix is to chown radvd /var/run/radvd

Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3.
Comment 1 Guy Martin (RETIRED) gentoo-dev 2003-04-20 18:54:58 UTC
I've found two solutions to correct this bug. 
First using chmod 75.75 instead of fperms (didn't try fperms 75.75) 
Second putting pid file in /var/run. 
 
Btw, the first one need to unmerge radvd because portage don't overwrite directory 
and then does not change permission of it. 
 
Hannes, why did you forced pid file to be in /var/run/radvd ? Is it for fhs compilance ? 
 
Comment 2 Hannes Mehnert (RETIRED) gentoo-dev 2003-04-20 19:56:22 UTC
Guy: /var/run/radvd is because the pid file is created by the
radvd user, he can't write to /var/run (or where is your
suggested destination?)

feel free to change fperms to chmod.
Comment 3 Guy Martin (RETIRED) gentoo-dev 2003-04-21 08:51:39 UTC
Ok, I've resolved the problem. 
I force /var/run/radvd to be owned by radvd.radvd in pkg_preinst() 
I've also added a .keep file in /var/run/radvd coz portage seems to remove this 
directory when reemering. 
 
I'll add enabling ipv6 routing in radvd init.d file and then remove the pkg_postinst 
function. 
 
This will be radvd-0.7.2-r1 which will be unmasked. 
 
Hannes so you agree with this ? 
 
(corrected ebuild will follow) 
Comment 4 Guy Martin (RETIRED) gentoo-dev 2003-04-21 08:53:07 UTC
Created attachment 10944 [details]
Corrected ebuild
Comment 5 Hannes Mehnert (RETIRED) gentoo-dev 2003-04-21 09:44:18 UTC
Guy: looks fine, feel free to commit.
Comment 6 Guy Martin (RETIRED) gentoo-dev 2003-04-21 10:12:13 UTC
Fixed in version 0.7.2-r1 
Comment 7 Francesco R. (RETIRED) gentoo-dev 2005-06-28 10:53:45 UTC
Created attachment 62171 [details, diff]
radvd-0.7.2-r1-r2.patch

just tryed a fresh install and it die in "pkg_preinst" (does not create
user:group radvd).

The patch attached switch to the use of "enewuser", "enewgroup" from
"eutils.eclass"

chown of "/var/run/radvd" is postponed to make use of newly created user:group

then "keepdir" is used to keep /var/run/radvd comment #3