Re: [PATCH] Cast to ioctl_handler_t instead of its definition

2009-08-31 Thread olafBuddenhagen
Hi, On Wed, Aug 26, 2009 at 02:17:21PM +0200, Carl Fredrik Hammar wrote: > This is an obvious fix to glibc that makes it easier to change > `ioctl_handler_t'. Note that while we can help reviewing glibc patches on the Hurd list, ultimately they need to be posted to glibc (and/or Debian) to actua

Re: how to debug hurd console

2009-08-31 Thread olafBuddenhagen
Hi, On Sun, Aug 30, 2009 at 06:45:58PM +0200, computer.enthusiastic wrote: > But I don't know how to run gdb and hurd console together (gdb uses > the same console I try to trace into). Use ssh to log in from another machine. -antrik-

[PATCH] Apply pattern-matching immediately beneath the stow directory.

2009-08-31 Thread Sergiu Ivanov
* stow.c ( _stow_scanstowentry): Don't iterate the subdirs of the supplied directory; instead, check the directory itself against the pattern. --- Hello, On Fri, Aug 28, 2009 at 03:37:23AM +0200, olafbuddenha...@gmx.net wrote: > On Mon, Aug 24, 2009 at 12:07:18AM +0300, Sergiu Ivanov wrote: > > O

Re: [PATCH 3/3] Test reverse authenticating ioctl-handler protocol

2009-08-31 Thread olafBuddenhagen
Hi, On Wed, Aug 26, 2009 at 04:55:58PM +0200, Carl Fredrik Hammar wrote: > * ioctl-tests/qioctl.c (S_ioctl_handler_get): Remove deprecated routine. > (S_ioctl_handler_request): New funtction. I think it would be helpful to make it more obvious that one replaces the other... Using different terms

New IRC meeting schedule

2009-08-31 Thread olafBuddenhagen
Hi, This is a heads-up for all lurkers out there who haven't been at the last meeting but might want to join in the future :-) Beginning next weeks, the (post) GSoC IRC meetings will take place once a week (after the end of the summer session probably there won't be enough activity to warrant mee

Re: [PATCH 3/3] Use reverse authenticating ioctl-handler protocal

2009-08-31 Thread olafBuddenhagen
Hi, On Wed, Aug 26, 2009 at 04:45:39PM +0200, Carl Fredrik Hammar wrote: > + err = EACCES; > + euid = geteuid (); > + for (i = 0; i < euids_len; i++) > +if (euids[i] == euid || euids[i] == 0) > + err = 0; This is not sufficient: privileges of the module are not escalated only if the

Re: [PATCH 1/2] Add ioctl-handler interface

2009-08-31 Thread olafBuddenhagen
Hi, On Wed, Aug 26, 2009 at 04:21:42PM +0200, Carl Fredrik Hammar wrote: > +routine ioctl_handler_get ( All the interfaces I've seen so far use foo_get_bar() or foo_getbar(), but neven foo_bar_get()... -antrik-

Re: [PATCH 1/3] Reload fd ioctl handler on each call to ioctl

2009-08-31 Thread olafBuddenhagen
Hi, First of all, I think the title of the patch is wrong. The relevant bit is that this patch has the initial implementation for loading server-provided ioctl handlers. The fact that they are reloaded each time, is something that would normally be mentioned in the commit message; but certainly no

Re: [PATCH 2/3] Save handlers between calls to ioctl

2009-08-31 Thread olafBuddenhagen
Hi, On Wed, Aug 26, 2009 at 04:44:58PM +0200, Carl Fredrik Hammar wrote: > diff --git a/hurd/Makefile b/hurd/Makefile > index 4ad5128..768f93a 100644 > --- a/hurd/Makefile > +++ b/hurd/Makefile > @@ -68,7 +68,7 @@ sig = hurdsig hurdfault siginfo hurd-raise preempt-sig \ > dtable = dtable p

Re: [PATCH 1/3] Test server provided ioctl-handler

2009-08-31 Thread olafBuddenhagen
Hi, On Wed, Aug 26, 2009 at 04:55:56PM +0200, Carl Fredrik Hammar wrote: > * (ioctl-tests): New subdirectory. > * (ioctl-tests/Makefile) > (ioctl-tests/qio.h) > (ioctl-tests/qioctl.c) > (ioctl-tests/qioctl.defs) > (ioctl-tests/qioctl-handler.c) > (ioctl-tests/test.c): New files. Is it really nec

Re: [PATCH 2/2] Reverse authenticating ioctl-handler protocol

2009-08-31 Thread olafBuddenhagen
Hi, On Wed, Aug 26, 2009 at 04:21:43PM +0200, Carl Fredrik Hammar wrote: > +* The client sends an `ioctl_handler_request' to the server, > + with a rendezvous port. > + > +* The server sends an `ioctl_handler_acknowledge' in reply, this > + is needed so that the client won't wai

Re: [PATCH] Reopen file descriptor on lookup

2009-08-31 Thread olafBuddenhagen
Hi, On Wed, Aug 26, 2009 at 02:19:28PM +0200, Carl Fredrik Hammar wrote: > diff --git a/hurd/lookup-retry.c b/hurd/lookup-retry.c > index 96968f8..ce9eaf0 100644 > --- a/hurd/lookup-retry.c > +++ b/hurd/lookup-retry.c > @@ -221,15 +221,14 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)

Re: On vacation

2009-08-31 Thread Sergiu Ivanov
Hello, On Mon, Aug 31, 2009 at 04:35:42PM +0200, Thomas Schwinge wrote: > [...] > and tomorrow I'll be leaving for three and a half weeks of > vacation in sunny California. See you again in fall, then I'll get > back to resume working on all the stuff that is currently in > process! Have a nice

On vacation

2009-08-31 Thread Thomas Schwinge
Hello! For your information. No Hurd-wise progress from my side lately: the last two weeks I've been totally occupied with our local Zeltcafe festival (see if you're interested), and tomorrow I'll be leaving for three and a half weeks of vacation in sunny California. Se