lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chroot/setuid for lilypond (for LSR)


From: Sebastiano Vigna
Subject: Re: chroot/setuid for lilypond (for LSR)
Date: Sat, 05 Mar 2005 08:18:33 -0000

On Fri, 2005-03-04 at 13:56 -0500, Paul Jarc wrote:
> Sebastiano Vigna <address@hidden> wrote:
> I'd suggest:
> if (change_root) {
>   if (chdir(change_root) || chroot(".")) {
> 
> Otherwise, you might use -c alone and be misled into thinking you're
> safer than you really are.  This also makes -d unnecessary.

The point is that if you cannot set the working directory getting the
output file written in the right place becomes awkward (you must set it
explicitly). I agree, however, that an additional chdir("/") after the
chroot is probably a good idea.
-- 
Ciao,

                                        seba





reply via email to

[Prev in Thread] Current Thread [Next in Thread]