Great Circle Associates Firewalls
(February 1994)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Can you print from a chroot'd process?
From: John Gibbins <johng @ weema . chi . uwa . edu . au>
Date: Mon, 14 Feb 1994 12:50:47 +0800 (WST)
To: firewalls @ GreatCircle . COM
In-reply-to: <9402120213 . AA26085 @ uhunix . uhcc . Hawaii . Edu> from "Tim Newsham" at Feb 11, 94 04:13:03 pm

Tim Newsham states:
> John Gibbins stated:
> > We are installing a package that I have very little trust in (but have no
> > choice in installing :-(, so I can't say no).  To protect the rest of the
> > system from massive security holes it may contain (including shell escapes)
> > I want to run it via chroot() for obvious reasons.
> > 
> > My problem is that users of the package need to be able to print.
> > How can I do this from within a chroot'd process (with min effort :-) without
> > impacting normal (non chroot) users?
> 
> The way I understand it the printing commands send files to the
> print spooler through a unix domain socket in the /dev directory.  If
> you set up your print spooler to open up a socket in the chroot'ed
> /dev as well it would probably do the trick.

The hard part is the last sentence.  How do I tell lpd to look for two
UNIX domain sockets (/dev/printer and /chroot_dir/dev/printer)?

Simply copying lpr (and the necessary shared libraries) to the chroot area
and creating an /etc/printcap with remote machine/printer entries 
pointing to the current machine is not sufficient.  lpr wants to 
talk to lpd on the local machine which in turn talks to lpd on the 
remote machine so I need to run two copies of lpd on the same machine
(one chroot'd and one not).  I have not been able to do that.

Any suggestions?
thanks
johng

-- 
John Gibbins                           The Western Australian Research Institute
The University of Western Australia      for Child Health Ltd     ,-_|\
email:  johng @
 chi .
 uwa .
 edu .
 au           GPO Box D184              /     \
Phone:  +61-9-3408547                  PERTH  W.A. 6001          *_,-._/
Fax:    +61-9-3883414                  AUSTRALIA                      v
"Nothing is foolproof as fools are so ingenious"

Indexed By Date Previous: Re: two security issues
From: smb @ research . att . com
Next: Re: Can you print from a chroot'd process?
From: Barney Wolff <barney @ databus . com>
Indexed By Thread Previous: Re: Can you print from a chroot'd process?
From: Icarus Sparry <I . Sparry @ ss1 . bath . ac . uk>
Next: Re: Can you print from a chroot'd process?
From: Barney Wolff <barney @ databus . com>

Google
 
Search Internet Search www.greatcircle.com