public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Boyd Stephen Smith Jr." <bss03@volumehost.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Hosted server as distcc machine
Date: Mon, 20 Mar 2006 22:49:42 -0600	[thread overview]
Message-ID: <200603202249.42756.bss03@volumehost.net> (raw)
In-Reply-To: <49bf44f10603202025n77d277ccv7e5b82d05d10a482@mail.gmail.com>

On Monday 20 March 2006 22:25, Grant <emailgrant@gmail.com> wrote about 
'[gentoo-user] Hosted server as distcc machine':
> Is there anything wrong with
> making a remote machine [a] distcc system?

Not really, but you do need to realize that distcc doesn't guarantee that 
jobs will be sent to the remote machines and will not prevent jobs from 
being run locally.  If there are not enough distcc hosts to support the 
number of jobs being run, or the network is down to 1 or more, or other 
such issues, you might end up having too many compiles being run locally.  
This applies even if you put something like localhost/2 in your distcc 
hosts -- when distcc runs out of hosts it unconditionally uses local 
compilation.

Also, distccd is a wide-open security hole: there's little to no 
restriction on what a client can run on the host, and AFAIK only 
ip/host-based restrictions on who can connect.  A few, well-placed IP 
packets with spoofed sources could theoretically result in a rooted box 
(depending on other security features like firewalls, syn cookies, 
restricted shells, chroot jails, and presence of local privilege 
escalation exploits).

It's probably better to use distcc over ssh, using an ssh-agent and PKI 
authentication.  That does involve giving shell access to an account, but 
you probably already have an account that will work. :)  Unfortunately, 
this removes the host's ability to limit simultaneous distcc jobs AFAIK.  
It also makes it quite a bit harder to distcc from cron, but most of the 
time that shouldn't be an issue.

-- 
"If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability."
-- Gentoo Developer Ciaran McCreesh
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2006-03-21  4:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-21  4:25 [gentoo-user] Hosted server as distcc machine Grant
2006-03-21  4:49 ` Boyd Stephen Smith Jr. [this message]
2006-03-22 23:10   ` Grant
2006-03-23 22:55     ` Boyd Stephen Smith Jr.
2006-03-24 19:25       ` Grant
2006-03-25  5:03         ` Boyd Stephen Smith Jr.
2006-03-27 18:16           ` Grant
2006-03-29  5:13             ` Zac Slade

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200603202249.42756.bss03@volumehost.net \
    --to=bss03@volumehost.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox