[PATCH 04/16] libnetfs: track file name in struct peropen

2013-07-30 Thread Justus Winter
Track the relative path used to obtain a file handle in the struct peropen. * libnetfs/netfs.h (struct peropen): New field path. * libnetfs/make-peropen.c (netfs_make_peropen): Initialize path. * libnetfs/release-peropen.c (netfs_release_peropen): Free path. * libnetfs/fsys-getroot.c

[PATCH 14/16] trans/symlink.c: add fsys_get_source

2013-07-30 Thread Justus Winter
Create a server function returning EOPNOTSUPP. * trans/symlink.c (S_fsys_get_source): New function. --- trans/symlink.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/trans/symlink.c b/trans/symlink.c index 30b9712..5ccac6d 100644 --- a/trans/symlink.c +++ b/trans/symlink.c @@

[PATCH 11/16] libdiskfs: add fsys_get_source

2013-07-30 Thread Justus Winter
Software Foundation, Inc. + + Written by Justus Winter 4win...@informatik.uni-hamburg.de + + This file is part of the GNU Hurd. + + The GNU Hurd is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software

[PATCH 12/16] libnetfs: add fsys_get_source

2013-07-30 Thread Justus Winter
, Inc. + + Written by Justus Winter 4win...@informatik.uni-hamburg.de + + This file is part of the GNU Hurd. + + The GNU Hurd is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either

[PATCH 10/16] hurd: add fsys_get_children

2013-07-30 Thread Justus Winter
fsys_get_children returns any active translators bound to nodes of the receiving filesystem as an argz vector containing file names relative to the root of the receiving translator. * hurd/fsys.defs: Add fsys_get_children. * hurd/fsys_reply.defs: Add fsys_get_children. --- hurd/fsys.defs |

[PATCH 15/16] hurd: add fsys_get_source

2013-07-30 Thread Justus Winter
Return information about the source of the receiving filesystem. If the concept of a source is applicable, SOURCE should refer to the source of the receiving translator and should be a description considered appropriate in the context of the translator. For example for the case of block device

[PATCH 13/16] libtrivfs: add fsys_get_source

2013-07-30 Thread Justus Winter
--- /dev/null +++ b/libtrivfs/fsys-get-source.c @@ -0,0 +1,33 @@ +/* fsys_get_source + + Copyright (C) 2013 Free Software Foundation, Inc. + + Written by Justus Winter 4win...@informatik.uni-hamburg.de + + This file is part of the GNU Hurd. + + The GNU Hurd is free software; you can redistribute

[PATCH 16/16] trans: add mtab translator

2013-07-30 Thread Justus Winter
. + + Written by Justus Winter 4win...@informatik.uni-hamburg.de + + This file is part of the GNU Hurd. + + The GNU Hurd is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either

[PATCH 3/4] tmpfs: drop privileges in the tmpfs translator

2013-07-27 Thread Justus Winter
* tmpfs/tmpfs.c (main): Drop privileges. --- tmpfs/tmpfs.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/tmpfs/tmpfs.c b/tmpfs/tmpfs.c index 7da3dd5..1872a7d 100644 --- a/tmpfs/tmpfs.c +++ b/tmpfs/tmpfs.c @@ -29,6 +29,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA

[PATCH 2/4] trans: drop privileges in the null translator

2013-07-27 Thread Justus Winter
* trans/null.c (main): Drop privileges. --- trans/null.c |5 + 1 file changed, 5 insertions(+) diff --git a/trans/null.c b/trans/null.c index 1f985b3..8b3b4e0 100644 --- a/trans/null.c +++ b/trans/null.c @@ -31,6 +31,7 @@ #include fcntl.h #include limits.h #include argp.h +#include

[PATCH 1/4] libshouldbeinlibc: Add nullauth.{c,h}

2013-07-27 Thread Justus Winter
+++ b/libshouldbeinlibc/nullauth.c @@ -0,0 +1,47 @@ +/* Drop all authentication credentials. + + Copyright (C) 2013 Free Software Foundation, Inc. + + Written by Justus Winter 4win...@informatik.uni-hamburg.de + + This file is part of the GNU Hurd. + + This program is free software; you can

[PATCH 4/4] utils: add nullauth utility

2013-07-27 Thread Justus Winter
. + + Copyright (C) 2013 Free Software Foundation, Inc. + + Written by Justus Winter 4win...@informatik.uni-hamburg.de + + This file is part of the GNU Hurd. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License

Dropping privileges in various translators

2013-07-27 Thread Justus Winter
Hi folks :) this is a patch series adding setnullauth () to libshouldbeinlibc and demonstrating its use for dropping unix privileges in the null and tmpfs translators. A nullauth utility is provided to start arbitrary programs without any privileges. This can be used to run the translator on

[PATCH 2/5] console-client: add daemonizing support

2013-07-26 Thread Justus Winter
This patch adds daemonizing support using libdaemon. * console-client/console.c (daemonize): New variable. (options): Add --daemonize argument. (parse_opt): Handle --daemonize argument. (daemon_error): New error(3) like macro. (main): Daemonize. * console-client/Makefile: Use libdaemon specific

[PATCH 1/5] Add configure checks for libdaemon

2013-07-26 Thread Justus Winter
* configure.ac: Add check for libdaemon. * config.make.in: Make the libdaemon specific variables available. --- config.make.in |5 + configure.ac |6 ++ 2 files changed, 11 insertions(+) diff --git a/config.make.in b/config.make.in index b8002a1..73b54de 100644 ---

[PATCH 3/5] debian/control: Add build dependency on libdaemon

2013-07-26 Thread Justus Winter
--- debian/control |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index a2801c6..957ab53 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Build-Depends: mig (= 1.3-2), gnumach-dev (= 2:1.3.99.dfsg.cvs20070526), libc0.3-dev

[PATCH 5/5] Drop hurd_console_startup.patch

2013-07-26 Thread Justus Winter
This is no longer necessary with the initscript in place. --- debian/patches/hurd_console_startup.patch | 32 - debian/patches/series |1 - 2 files changed, 33 deletions(-) delete mode 100644 debian/patches/hurd_console_startup.patch diff

[PATCH 4/5] Add an initscript for the hurd console

2013-07-26 Thread Justus Winter
--- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ hurd (20130707-2) UNRELEASED; urgency=low [ Justus Winter ] * Include the umount utility in hurd and hurd-udeb. + * Add an initscript for hurd-console. [ Samuel Thibault ] * Bump Standards-Version to 3.9.4 (no changes). diff

Re: patches for sysvinit, debian repository for testing

2013-07-15 Thread Justus Winter
Quoting Samuel Thibault (2013-07-15 11:18:03) Hello, Justus Winter, le Tue 09 Jul 2013 10:46:43 +0200, a écrit : this is a patch series for the sysvinit package. Comments are welcome. Patches seven and eight are somewhat questionable, but I'd propose the first six for inclusion. Any

Re: Weekly report (4th week) - Debian GNU/Hurd Debianish initialization

2013-07-13 Thread Justus Winter
Quoting Charlie Derr (2013-07-12 16:50:51) On 07/12/2013 10:40 AM, Justus Winter wrote: Hi :) Quoting Charlie Derr (2013-07-12 16:08:16) Thanks so much for all your efforts. I immediately attempted to upgrade to your packages on my working install of debian/GNU hurd. It's running

Re: Weekly report (4th week) - Debian GNU/Hurd Debianish initialization

2013-07-12 Thread Justus Winter
Hi :) Quoting Charlie Derr (2013-07-12 16:08:16) Thanks so much for all your efforts. I immediately attempted to upgrade to your packages on my working install of debian/GNU hurd. It's running on an old IBM Netvista. I seem to be locked up though before getting a console (I did make the

Re: Passive translators

2013-07-09 Thread Justus Winter
Hi Thomas :) Quoting Thomas Schwinge (2013-07-09 15:40:18) Hi! On Tue, 09 Jul 2013 15:00:00 +0200, Justus Winter 4win...@informatik.uni-hamburg.de wrote: Quoting Pino Toscano (2013-07-09 10:52:56) Alle martedì 9 luglio 2013, Justus Winter ha scritto: Ignore the --nodev, --noexec

/hurd/init and /hurd/proc

2013-06-25 Thread Justus Winter
Hi, I'd like to get some input. For context, please read Guillems message http://lists.gnu.org/archive/html/bug-hurd/2006-02/msg00081.html and Marcus critique http://lists.gnu.org/archive/html/bug-hurd/2006-02/msg00082.html Looking at his patch and having seen some mach message passing code in

Re: trouble building hurd debian package, alioth confusion

2013-06-10 Thread Justus Winter
Quoting Svante Signell (2013-06-09 20:10:59) On Sun, 2013-06-09 at 18:56 +0200, Svante Signell wrote: On Sun, 2013-06-09 at 17:48 +0200, Justus Winter wrote .. apt-get source --download-only eglibc=2.13-38 dget \ ftp://ftp.debian-ports.org/debian/pool-hurd-i386/main/e/eglibc/eglibc_2.13

Re: trouble building hurd debian package, alioth confusion

2013-06-10 Thread Justus Winter
Quoting Emilio Pozuelo Monfort (2013-06-10 16:28:06) On 10/06/13 16:10, Justus Winter wrote: Awesome, didn't know this one. Still I was hoping to get a git repo since that way I could plug it into my package building solution. The debian packaging with the upstream sources + patches

Re: trouble building hurd debian package, alioth confusion

2013-06-10 Thread Justus Winter
Quoting Richard Braun (2013-06-10 16:28:40) On Mon, Jun 10, 2013 at 04:10:57PM +0200, Justus Winter wrote: Awesome, didn't know this one. Still I was hoping to get a git repo since that way I could plug it into my package building solution. There are debian repositories for GNU Mach

trouble building hurd debian package, alioth confusion

2013-06-09 Thread Justus Winter
Hi, I cannot rebuild the hurd package (both the one from sid from alioth). Before digging deeper into this, I just wanted to ask if I'm missing something obvious here: [...] make -C libshouldbeinlibc all make[3]: Entering directory

Re: trouble building hurd debian package, alioth confusion

2013-06-09 Thread Justus Winter
Quoting Richard Braun (2013-06-09 17:14:36) On Sun, Jun 09, 2013 at 03:26:22PM +0200, Justus Winter wrote: I cannot rebuild the hurd package (both the one from sid from alioth). Before digging deeper into this, I just wanted to ask if I'm missing something obvious here: [...] make

pbuilder problems

2013-06-08 Thread Justus Winter
Hi :) I'm trying to setup pbuilder on one of my virtual Hurd systems. Problem is that debootstrap eventually dies: /var/cache/apt/archives/readline-common_6.2+dfsg-0.1_all.deb /var/cache/apt/archives/xz-utils_5.1.1alpha+20120614-2_hurd-i386.deb (Reading database ... 6919 files and directories

Re: pbuilder problems

2013-06-08 Thread Justus Winter
Quoting Samuel Thibault (2013-06-08 13:34:18) Justus Winter, le Sat 08 Jun 2013 13:27:07 +0200, a écrit : I'm trying to setup pbuilder on one of my virtual Hurd systems. Problem is that debootstrap eventually dies: I don't think pbuilder has ever been made to work on hurd-i386

Re: GSoC task init system for Debian GNU/Hurd?

2013-04-24 Thread Justus Winter
Quoting Thomas Schwinge (2013-04-18 11:42:02) :-) May want to look at my emails' User-Agent header. (Or perhaps don't -- I haven't updated my notmuch installation in ages...) I know, I've seen you around ;) Well, what do you think? What do I have to do now? I already have a google

Re: GSoC task init system for Debian GNU/Hurd?

2013-04-18 Thread Justus Winter
Hi :) Quoting Thomas Schwinge (2013-04-07 23:53:37) IRC, OFTC, #debian-hurd, 2013-03-19: tschwinge Do we have any suitable GSoC tasks for Debian GNU/Hurd? youpi ah well, there are the debian ifup/ifdown and rc.d integrations pinotree sysvinit, you mean, or just rc.d?

Re: Network configuration with DHCP

2012-10-29 Thread Justus Winter
Hi Thomas, Quoting Thomas Schwinge (2012-10-26 22:21:34) -# ln -s ../rcS.d/S06ifupdown-clean ../rcS.d/S11networking /etc/rc.boot/ +# ln -s ../rcS.d/S10networking /etc/rc.boot/ Hm, on my box the link is called S11networking (isn't the number determined dynamically by insserv?), so this

Re: Network configuration with DHCP

2012-10-27 Thread Justus Winter
Quoting Thomas Schwinge (2012-10-26 22:21:34) -Debian GNU/Hurd doesn't currently execute's Debian standard `/etc/rcS.d/*` boot +Debian GNU/Hurd doesn't currently execute Debian standard `/etc/rcS.d/*` boot I was wondering why the networking script didn't run on my boxen , scripts, but has

Re: Keyboard wrong keys

2012-02-08 Thread Justus Winter
Hi Fabio :) Quoting Fabio Colella (2012-02-07 19:57:54) Thank you very much, I'll do my possible. It's very hard to use an Italian keyboard as if it was American. If you're using qemu to run your Hurd installation, you might want to add '-k en-us' to the qemu options to indicate that your guest

Re: Keyboard wrong keys

2012-02-08 Thread Justus Winter
Quoting Samuel Thibault (2012-02-08 13:22:44) Justus Winter, le Wed 08 Feb 2012 11:10:38 -, a écrit : Quoting Fabio Colella (2012-02-07 19:57:54) Thank you very much, I'll do my possible. It's very hard to use an Italian keyboard as if it was American. If you're using qemu to run your

Re: I might talk on Gnu/Hurd : FEB/10/2012 : Need you help

2012-02-01 Thread Justus Winter
Hi Harish :) Quoting harish badrinath (2012-02-01 09:44:37) Hello, I have proposed a talk on Gnu/Hurd at http://gnunify.in/. I have watched http://audio-video.gnu.org/video/ghm2011/Samuel_Thibault-GNU_Hurd.ogv. Can you point me to similar material ?? I recently did a lightning talk about the

Re: Thoughts on MAXPATHLEN

2012-01-31 Thread Justus Winter
Quoting Richard Braun (2012-01-31 09:59:58) On Sun, Jan 29, 2012 at 11:31:58AM -, Justus Winter wrote: 1. File bugs for software that uses MAXPATHLEN and co, do so politely and explain the issues. Talk directly to upstream and *do not* mention the Hurd. Without mentioning

Thoughts on MAXPATHLEN

2012-01-29 Thread Justus Winter
Hi fellow shepherds :) I recently started playing around with the Hurd again and one of the first things I do is to patch my pet editor so it builds and works on the Hurd. It's a MAXPATHLEN issue and I always start with a trivial patch that just defines it to see if it is the only issue, but once

Installation report of the July 1st version of the debian installer image

2011-07-11 Thread Justus Winter
Hey everyone :) the filesystem of my hurd box died some time ago, only the root filesystem, probably because of the sync problems on shutdown. The box is an athlon 1.5Ghzish, 512MByte of ram, 40 gig hard drive, two nics, one rtl8139c that works fine with gnumach, one sis900 that works both with

Bug#556522: hurd - using the login shell is insecure

2011-01-15 Thread Justus Winter
Hey Samuel :) Justus Winter, le Wed 12 Jan 2011 00:39:35 +0100, a écrit : diff -r a95557dc73eb daemons/getty.c --- a/daemons/getty.c Tue Jan 11 00:00:32 2011 + +++ b/daemons/getty.c Tue Jan 11 23:38:12 2011 + @@ -129,10 +129,10 @@ if (tt strcmp (tt-ty_type

Bug#556522: hurd - using the login shell is insecure

2011-01-11 Thread Justus Winter
Hey Samuel :) Justus Winter, le Mon 10 Jan 2011 00:36:07 +0100, a écrit : I incorporated some code from util-linuxs getty to make hurds getty ask for a login name and pass that name to login. This way the login shell is no longer needed. I also turned on logins --paranoid flag to prevent

<    1   2   3