Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29173 - Possibly wrong argument listed for CHROOTing DNS
Summary: Possibly wrong argument listed for CHROOTing DNS
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Security Guide (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: http://www.gentoo.org/doc/en/gentoo-s...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-19 23:52 UTC by Charles N. Burns
Modified: 2003-09-22 02:48 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 Charles N. Burns 2003-09-19 23:52:13 UTC
From security document:

"This will create a chrooted environment in /chroot. Now all we have to do is
modify the init script for supporting the new environment. Edit
/etc/init.d/named and add -t /chroot/dns to the start function. You may also
want to change the stop function to point to the correct pid file in
/chroot/var/run/named/named.pid. Restart your DNS server."

Note the "Edit /etc/init.d/named and add -t /chroot/dns to the start function."
While I haven't implemented this yet, looking through the start-stop-function
manpage, "-t" is to test an action but take no action. Unless I misinterpret,
the author may have meant "-r" for "Chdir  and  chroot to root before starting
the process."

Reproducible: Always
Steps to Reproduce:
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2003-09-22 02:48:05 UTC
The option we pass is for named (bind), not for start-stop-function. The option for bind to have it chroot itself is "-t".

If we were passing a chroot-request to start-stop-function, it would first chroot itself and then try to start bind (named). However, since the bind (named) binary isn't inside the chroot, it would fail. And even if the binaries were inside the chroot, we would need to have all libraries inside the chroot too.