Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518814 - net-misc/radvd-2.3 - init script fails to disable autoconfig
Summary: net-misc/radvd-2.3 - init script fails to disable autoconfig
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Michael Weber (RETIRED)
URL: https://github.com/reubenhwk/radvd/co...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-02 11:09 UTC by Bjarke Istrup Pedersen (RETIRED)
Modified: 2014-08-22 16:41 UTC (History)
1 user (show)

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


Attachments
Patch to update init script (update-init.d-script.patch,1.00 KB, patch)
2014-08-02 11:45 UTC, Bjarke Istrup Pedersen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2014-08-02 11:09:36 UTC
Versions of radvd from after this commit needs to have their init script updated.

Since radvd is run as the user "radvd", it does not have access to modify sysctl by itself - however, the code tries to do just that, to disable autoconf on the interfaces it is listening. (This is why I'm setting this as a major bug, since it prevents radvd from working)

A solution to this would be to have the init script disable autoconf, since that prevents the code from trying to do this.

Not 100% sure how to do this, but maybe grepping /etc/conf.d/radvd for interfaces, and then doing the same as currently done with forwarding.

Having the user do it manually in /etc/sysctl.conf is not going to work, if the interface is a VLAN or a bridge, since these interfaces doesn't exist yet when the sysctl init script is run.

It would be nice if it could be fixed :)
Comment 1 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2014-08-02 11:45:34 UTC
Created attachment 382072 [details, diff]
Patch to update init script

I'm no expert in bash, but this patch should fix it, so it disables autoconfiguration for every interface that is mentioned in the configuration file.
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-08-22 04:37:26 UTC
can you test 2.5, they made a change that may mean we don't need to do this in the init script.

Move disable_ipv6_autoconfig to privsep
Comment 3 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2014-08-22 16:41:36 UTC
It looks like it is working as at should - I'm closing the bug :)

Thanks