[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implement
From: |
Jan Hudec |
Subject: |
Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes |
Date: |
Sat, 31 Jan 2004 14:47:03 +0100 |
User-agent: |
Mutt/1.5.5.1+cvs20040105i |
On Sat, Jan 31, 2004 at 15:25:02 +0200, Momchil Velikov wrote:
> Jan> Personaly, I would simply set the shell to
> Jan> chroot /home/jdev /usr/bin/cvs server
>
> chroot(2) needs EUID 0.
There is also /usr/bin/setuid...
But yes, it's easier to set the chroot jail your way -- it's less
binaries.
> >> #include <unistd.h>
> >>
> >> #define JAIL "/home/jdev"
> >>
> >> int
> >> main ()
> >> {
> >> umask (002);
> >> if (chdir (JAIL) == 0 && chroot (JAIL) == 0 && chdir ("/") == 0)
> >> {
> >> setuid (getuid ());
> >> execl ("/usr/bin/cvs", "cvs", "server", 0);
> >> }
> >>
> >> return 0;
> >> }
>
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec
<address@hidden>
- Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes, (continued)
- Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes, Scott Parish, 2004/01/30
- Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes, Andrew Suffield, 2004/01/30
- Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes, Scott Parish, 2004/01/30
- Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes, Andrew Suffield, 2004/01/30
- Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes, Scott Parish, 2004/01/30
- Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes, Colin Walters, 2004/01/30
- Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes, Jan Hudec, 2004/01/31
- Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes, Momchil Velikov, 2004/01/31
- Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes, Jan Hudec, 2004/01/31
- Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes, Momchil Velikov, 2004/01/31
- Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes,
Jan Hudec <=
- [Gnu-arch-users] Re: RFC: arch protocol, smart server, and tla implementation prototypes, Warren Turkal, 2004/01/31
- Re: [Gnu-arch-users] Re: RFC: arch protocol, smart server, and tla implementation prototypes, Robert Collins, 2004/01/31
- Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes, Scott Parish, 2004/01/30
Re: [Gnu-arch-users] RFC: arch protocol, smart server, and tla implementation prototypes, Florian Weimer, 2004/01/30
Message not available