[PATCH 2/3] Update to reflect ioctl_handler_t change

2009-08-26 Thread Carl Fredrik Hammar
* ioctl-tests/qioctl-handler.c (hurd_ioctl_handler): Update to reflect `ioctl_handler_t' change. --- ioctl-tests/qioctl-handler.c | 20 +++- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/ioctl-tests/qioctl-handler.c b/ioctl-tests/qioctl-handler.c index a5b2503..

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

2009-08-26 Thread Carl Fredrik Hammar
* (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. --- Makefile |2 +- ioctl-tests/Makefile | 45 + ioctl-test

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

2009-08-26 Thread Carl Fredrik Hammar
* Makefile (ioctl_handler_MIGSFLAGS): New variable. * ioctl-tests/qioctl.c (S_ioctl_handler_get): Remove deprecated routine. (S_ioctl_handler_request): New funtction. --- ioctl-tests/Makefile |1 + ioctl-tests/qioctl.c | 29 - 2 files changed, 25 insertions(+), 5

[PATCH 0/3] Test server provided ioctl-handler

2009-08-26 Thread Carl Fredrik Hammar
Hi, Here comes patches that provide tests for server provided ioctl-handlers. These should be applied in parallel to the glibc patches, to which they correspond one-to-one. Since there aren't many test cases in the Hurd, I didn't have much to go by in implementing the test. Instead I just focus

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

2009-08-26 Thread Carl Fredrik Hammar
* hurd/Makefile (interfaces): Add `ioctl_handler_reply'. * hurd/fd-ioctl-call.c: Check that handlers are provided by the same user. --- hurd/Makefile|3 +- hurd/fd-ioctl-call.c | 157 +- 2 files changed, 158 insertions(+), 2 deletions(-)

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

2009-08-26 Thread Carl Fredrik Hammar
* hurd/hurd/ioctl.h (ioctl_handler_t): Move from here... * hurd/hurd/fd.h (ioctl_handler_t): ...to here. Change return type. Add `d', `crit', and `result' arguments. Change all callers and ioctl handlers. (hurd_fd): Add ioctl handler members. * hurd/fd-close.c: Update copyright years. (_hurd_fd_clo

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

2009-08-26 Thread Carl Fredrik Hammar
* hurd/hurdioctl.c (_hurd_dummy_ioctl_handler): New function. * hurd/hurd/ioctl.h (_hurd_dummy_ioctl_handler): Likewise. * hurd/fd-ioctl-call.c: New file. * hurd/hurd/fd.h: Update copyright years. (_hurd_fd_call_ioctl_handler): New function declaration. * hurd/Makefile: Update copyright years. (use

[PATCH 0/3] Use server provided ioctl-handler

2009-08-26 Thread Carl Fredrik Hammar
Hi, Patches that makes glibc make use of the new ioctl_handler protocol. This should be applied in parallel to the protocol patches; the first two patches depend on the first protocol patch, the third one depend on the second protocol patch. In addition all these patches depend on the three clean

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

2009-08-26 Thread Carl Fredrik Hammar
* hurd/ioctl_handler.defs (ioctl_handler_get): Remove routine. (ioctl_handler_request): New routine. (ioctl_handler_reply): Allocate space for this routine. * hurd/ioctl_handler_reply.defs: New file. --- hurd/ioctl_handler.defs | 37 +++- hurd/ioctl_handler_repl

[PATCH 1/2] Add ioctl-handler interface

2009-08-26 Thread Carl Fredrik Hammar
* hurd/ioctl_handler.defs: New file. * hurd/subsystems: Add ioctl_handler. --- hurd/ioctl_handler.defs | 35 +++ hurd/subsystems |1 + 2 files changed, 36 insertions(+), 0 deletions(-) create mode 100644 hurd/ioctl_handler.defs diff --git a/hurd/ioct

[PATCH 0/2] Ioctl handler protocol patches

2009-08-26 Thread Carl Fredrik Hammar
Hi, this patch series adds a MIG interface for getting an ioctl handler module associated with an io object. The first patch adds a plain and insecure protocol, while the second does reverse authentication to establish the identity of the module provider. Regards, Fredrik Carl Fredrik Hammar

[PATCH] Reopen file descriptor on lookup

2009-08-26 Thread Carl Fredrik Hammar
* hurd/lookup-retry.c (__hurd_file_name_lookup_retry) : Reopen file descriptor before returning it. --- Hi, Another stand-alone patch, but this one is new. It fixes what I think is a bug in glibc. The problem is that when opening file descriptors using FS_MAGIC_RETRY's `fd/*' syntax, the descrip

[PATCH] Only resolve FD's port and ctty once for TIOCSCTTY

2009-08-26 Thread Carl Fredrik Hammar
* hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in... (tiocsctty_internal): ...this new function. --- Hi, This is another stand-alone patch I have sent earlier. This fixes the handler for TIOCSCTTY so it only resolves the underlying port of the file descriptor once. Since the descript

[PATCH] Cast to ioctl_handler_t instead of its definition

2009-08-26 Thread Carl Fredrik Hammar
* hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to `ioctl_handler_t'. --- Hi, This is an obvious fix to glibc that makes it easier to change `ioctl_handler_t'. I sent in this patch before as part of the server provided ioctl handler patch series. I'm resending it because I'm going to resend th