Re: What operations in store_parsed_open() need the privilege?

2008-08-26 Thread Thomas Bushnell BSG
On Wed, 2008-08-27 at 03:48 +0200, Da Zheng wrote: > > It sounds as if you got EPERM from store_parse_open, but > > proc_getprivports is not being called, so you are having trouble > > understanding why you got an error message at all. > > > Yes, exactly. > > This will depend much on what the st

Re: Some questions about libports and notification of ports

2008-08-26 Thread Thomas Bushnell BSG
On Wed, 2008-08-27 at 03:38 +0200, Da Zheng wrote: > Thomas Bushnell BSG wrote: > > On Wed, 2008-08-27 at 01:56 +0200, Da Zheng wrote: > > > >>> Yes, but the point here is that *you* are opening that file and > >>> expecting something to happen. I thought you were writing the program > >>> whic

Re: What operations in store_parsed_open() need the privilege?

2008-08-26 Thread Da Zheng
Thomas Bushnell BSG wrote: On Wed, 2008-08-27 at 01:57 +0200, Da Zheng wrote: I'm trying to make subhurd work without root's permission, so the first task for me is to find the operations need the privilege. That's a worthy task. I have a problem in store_parsed_open(). I believe

Re: Some questions about libports and notification of ports

2008-08-26 Thread Da Zheng
Thomas Bushnell BSG wrote: On Wed, 2008-08-27 at 01:56 +0200, Da Zheng wrote: Yes, but the point here is that *you* are opening that file and expecting something to happen. I thought you were writing the program which would *serve* that file. I know it's a bit confusing. Then what

Re: What operations in store_parsed_open() need the privilege?

2008-08-26 Thread Thomas Bushnell BSG
On Wed, 2008-08-27 at 01:57 +0200, Da Zheng wrote: > I'm trying to make subhurd work without root's permission, so the first > task for me is to find the operations need the privilege. That's a worthy task. > I have a problem in store_parsed_open(). > I believe store_parse_open() calls dev_open(

Re: Some questions about libports and notification of ports

2008-08-26 Thread Thomas Bushnell BSG
On Wed, 2008-08-27 at 01:56 +0200, Da Zheng wrote: > > Yes, but the point here is that *you* are opening that file and > > expecting something to happen. I thought you were writing the program > > which would *serve* that file. > > > I know it's a bit confusing. Then what should I do? If you w

What operations in store_parsed_open() need the privilege?

2008-08-26 Thread Da Zheng
Hello, I'm trying to make subhurd work without root's permission, so the first task for me is to find the operations need the privilege. I have a problem in store_parsed_open(). I believe store_parse_open() calls dev_open() if the filesystem of subhurd is in a disk. The first privilege operat

Re: Some questions about libports and notification of ports

2008-08-26 Thread Da Zheng
Thomas Bushnell BSG wrote: On Tue, 2008-08-26 at 13:09 +0200, Da Zheng wrote: The purpose of the translator is to help other programs get the port to the device, so I suggested if it was OK that file_name_lookup() returns the port to the device directly. antrik said it was quite confusing fo

Re: How to provide proxy nodes

2008-08-26 Thread Sergiu Ivanov
Hello, On Mon, Aug 25, 2008 at 10:31 PM, <[EMAIL PROTECTED]> wrote: > On Sat, Aug 23, 2008 at 12:30:56PM +0300, Sergiu Ivanov wrote: > > What I wanted to say was that netfs_S_dir_lookup does not give the > > client retry notifications in case it encounters a symlink (except for > > the special ca

Re: [PATCH] Use standard constants in boot/

2008-08-26 Thread Neal H. Walfield
Why do you think this change is important? Do you expect this to be applied? If so, you need to include a change log.

Re: An idea for versiont racking using translators

2008-08-26 Thread Carl Fredrik Hammar
Hello, On Tue, Aug 26, 2008 at 01:15:51PM +0200, Arne Babenhauserheide wrote: > Hi, > > This is just a general idea which struck me: > > With translators it would be easily possible to hide version tracking > activity > by just stacking a version tracking translator over some directory. >

Re: Some questions about libports and notification of ports

2008-08-26 Thread Thomas Bushnell BSG
On Tue, 2008-08-26 at 13:09 +0200, Da Zheng wrote: > The purpose of the translator is to help other programs get the port to > the device, so I suggested if it was OK that file_name_lookup() returns > the port to the device directly. > antrik said it was quite confusing for him because file_name_

[PATCH] Use standard constants in boot/

2008-08-26 Thread Flávio Cruz
Hey, This patches changes 1 and 2's into STDOUT_FILENO and STDERR_FILENO, respectively. Index: boot/boot.c === RCS file: /cvsroot/hurd/hurd/boot/boot.c,v retrieving revision 1.109 diff -u -r1.109 boot.c --- boot/boot.c 14 Mar 2006 23

Re: The patch of boot to open a virtual network interface

2008-08-26 Thread Da Zheng
[EMAIL PROTECTED] wrote: Hi, On Fri, Aug 22, 2008 at 11:55:52AM +0200, Da Zheng wrote: by the way, which letter should be used for the short option? or should I just use the long option '--device'? I think a short option is rather important, as this is likely to be used often: For r

Re: Is it possible to replace the scheduler in a Hurd system?

2008-08-26 Thread Neal H. Walfield
At Tue, 26 Aug 2008 12:46:49 +0200, Arne Babenhauserheide wrote: > Since I just skimmed over scheduling, the question bit me, if itis possible > to > replace the scheduler in a Hurd system as user. > > Is it possible to replace the scheduler for my own processes? > > -> The general scheduler

An idea for versiont racking using translators

2008-08-26 Thread Arne Babenhauserheide
Hi, This is just a general idea which struck me: With translators it would be easily possible to hide version tracking activity by just stacking a version tracking translator over some directory. A way to control that would then be, to have the translator create virtual files for control. S

Re: Some questions about libports and notification of ports

2008-08-26 Thread Da Zheng
Thomas Bushnell BSG wrote: The device file is created by a translator to help other user programs to open the device. For example, we can create a device file /dev/eth0 with the translator. When the user program calls file_name_lookup() on the file and device_open() as I do in the code, I actua

Re: The patch of glibc which allows the user to override the pfinet server

2008-08-26 Thread Da Zheng
[EMAIL PROTECTED] wrote: if (domain <= max_domain) - servers[domain] = server; + servers[domain] = server; I'm not sure about this, but I think it is usually better to avoid changing the indentation of code you haven't otherwise touched -- even if it was wrong before..

Is it possible to replace the scheduler in a Hurd system?

2008-08-26 Thread Arne Babenhauserheide
Hi, Since I just skimmed over scheduling, the question bit me, if itis possible to replace the scheduler in a Hurd system as user. Is it possible to replace the scheduler for my own processes? -> The general scheduler governing when which user may act, the user schedulers governing the proc

Re: The patch of glibc which allows the user to override the pfinet server

2008-08-26 Thread Samuel Thibault
[EMAIL PROTECTED], le Mon 25 Aug 2008 21:59:02 +0200, a écrit : > On Fri, Aug 22, 2008 at 11:46:52AM +0200, Da Zheng wrote: > > [EMAIL PROTECTED] wrote: > >> On Tue, Aug 19, 2008 at 03:27:06PM +0200, zhengda wrote: > > >>> - socket_t server; > >>> + socket_t server = MACH_PORT_NULL; > >> > >> As