Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 354053 - sys-process/runit overwrite custom symlink
Summary: sys-process/runit overwrite custom symlink
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-08 03:32 UTC by Xuefer
Modified: 2014-11-13 19:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xuefer 2011-02-08 03:32:00 UTC
1. emerge runit, a new symlink is created
ls -ld /etc/runit/runsvdir/current
lrwxrwxrwx 1 root root 2 Feb  8 11:22 /etc/runit/runsvdir/current -> default/
2. i changed it to "my/"
3. re-emerge runit

expected result: symlink to "my/"
actual result: symlink to "default/"

reasons
 * when by *.ebuild design it's a symlink, it's for user customization
 * user settings should not be overwritten
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-02-08 18:20:34 UTC
You could add a CONFIG_PROTECT entry to /etc/env.d yourself. I guess that would work.
Comment 2 Xuefer 2014-04-15 02:47:13 UTC
I can't take the risk to reinstall it yet. but i /etc/ is already under protection. i'm not talking about /var/service but /etc/runit/runsvdir/current

# emerge --info |grep CONFIG_P
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CONFIG_PROTECT="/etc <- this should protect it already
Comment 3 William Hubbs gentoo-dev 2014-11-13 19:42:16 UTC
This is fixed in 2.1.2. Everything under /etc/runit/runsvdir now will
not be owned by portage, like /etc/init.d for OpenRC based systems.
That subdirectory is now fully user configurable.