Re: dev/log in jail
On Thu, Jul 31, 2014 at 06:50:23PM +0200, Jerome BENOIT wrote: > I just want to create from command line (if possible), not mount it (via bind > or). perl -e 'use Socket; socket(SERVER, PF_UNIX, SOCK_STREAM, 0); unlink "/tmp/mysock"; bind(SERVER, sockaddr_un("/tmp/mysock")) or die $@;' PS Please reply to the list next time. Reco -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140801083557.GA3591@x101h
Re: dev/log in jail
Hello List, On 31/07/14 19:33, Sven Hartge wrote: > Jerome BENOIT wrote: >> On 31/07/14 18:52, Henrique de Moraes Holschuh wrote: >>> On Thu, 31 Jul 2014, Jerome BENOIT wrote: > I have a very naive question: how can we create a dev/log socket, similar to `/dev/log', in a chroot jail ? > >>> It can be done through bind mounts (refer to the mount(8) >>> manpage) or by configuring the log daemon to listen at the extra >>> socket. > >> Is there a way to create one by hand ? > > Of course, it is so well hidden ! but it won't be useful since nobody will collect the > information from it. > > You need to either a) bind mount an existing /dev/log (as already > said) or b) consult the documentation of your syslog-daemon on how > to configure it to create and listen to an extra socket (as also > already said). So, I will stick this way. Thanks for your hints, Jerome > > Grüße, Sven. > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/53da9563.6090...@rezozer.net
Re: dev/log in jail
Jerome BENOIT wrote: > On 31/07/14 18:52, Henrique de Moraes Holschuh wrote: >> On Thu, 31 Jul 2014, Jerome BENOIT wrote: >>> I have a very naive question: how can we create a dev/log socket, >>> similar to `/dev/log', in a chroot jail ? >> It can be done through bind mounts (refer to the mount(8) manpage) or >> by configuring the log daemon to listen at the extra socket. > Is there a way to create one by hand ? Of course, but it won't be useful since nobody will collect the information from it. You need to either a) bind mount an existing /dev/log (as already said) or b) consult the documentation of your syslog-daemon on how to configure it to create and listen to an extra socket (as also already said). Grüße, Sven. -- Sigmentation fault. Core dumped. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/fasgjg096...@mids.svenhartge.de
Re: dev/log in jail
Hi, On 31/07/14 18:52, Henrique de Moraes Holschuh wrote: > On Thu, 31 Jul 2014, Jerome BENOIT wrote: >> I have a very naive question: >> how can we create a dev/log socket, similar to `/dev/log', in a chroot jail ? > > It can be done through bind mounts (refer to the mount(8) manpage) or by > configuring the log daemon to listen at the extra socket. > Is there a way to create one by hand ? Jerome -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/53da77a1.8020...@rezozer.net
Re: dev/log in jail
On Thu, 31 Jul 2014, Jerome BENOIT wrote: > I have a very naive question: > how can we create a dev/log socket, similar to `/dev/log', in a chroot jail ? It can be done through bind mounts (refer to the mount(8) manpage) or by configuring the log daemon to listen at the extra socket. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140731165233.gb11...@khazad-dum.debian.net
Re: dev/log in jail
Hi. On Thu, Jul 31, 2014 at 06:25:38PM +0200, Jerome BENOIT wrote: > > > On 31/07/14 17:54, B wrote: > > On Thu, 31 Jul 2014 17:46:08 +0200 > > Jerome BENOIT wrote: > > > >> how can we create a dev/log socket, similar to `/dev/log', in a > >> chroot jail ? > > > > The least Linux deserves from its users is them making at least > > a minimum of self researches about trivial questions… > > > > I did, and I cannot find. > Probably you're searching wrong way then. Let me he help you: https://startpage.com/do/search?query=bind-mount%20%2Fdev%2Flog Reco -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140731164239.GA16948@x101h
Re: dev/log in jail
On 31/07/14 17:54, B wrote: > On Thu, 31 Jul 2014 17:46:08 +0200 > Jerome BENOIT wrote: > >> how can we create a dev/log socket, similar to `/dev/log', in a >> chroot jail ? > > The least Linux deserves from its users is them making at least > a minimum of self researches about trivial questions… > I did, and I cannot find. Jerome -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/53da6e02.5030...@rezozer.net
Re: dev/log in jail
On Thu, 31 Jul 2014 17:46:08 +0200 Jerome BENOIT wrote: > how can we create a dev/log socket, similar to `/dev/log', in a > chroot jail ? The least Linux deserves from its users is them making at least a minimum of self researches about trivial questions… -- If ignorance is bliss, why aren't there more happy people? signature.asc Description: PGP signature
dev/log in jail
Hello List, I have a very naive question: how can we create a dev/log socket, similar to `/dev/log', in a chroot jail ? Thanks in advance, Jerome -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/53da64c0.6080...@rezozer.net