Re: [9fans] 9vx patch to read environment var PLAN9

2010-04-12 Thread EBo
> >> > What? The findroot code reads: > >> > >> read the code again; findroot doesn't come into play. > > > > it most certainly does! > > the whole point was that given -r, findroot doesn't come into play. > > if NINEROOT is not set, what does your version of 9vx do (without -r)? In short i

Re: [9fans] 9vx patch to read environment var PLAN9

2010-04-12 Thread Skip Tavakkolian
>> > What? The findroot code reads: >> >> read the code again; findroot doesn't come into play. > > it most certainly does! the whole point was that given -r, findroot doesn't come into play. if NINEROOT is not set, what does your version of 9vx do (without -r)?

Re: [9fans] 9vx patch to read environment var PLAN9

2010-04-12 Thread EBo
Skip Tavakkolian <9...@9netics.com> said: > > What? The findroot code reads: > > read the code again; findroot doesn't come into play. it most certainly does! in main... if(!bootboot){ if(localroot == nil && (localroot = findroot()) == nil) pani

Re: [9fans] 9vx patch to read environment var PLAN9

2010-04-12 Thread Skip Tavakkolian
> What? The findroot code reads: read the code again; findroot doesn't come into play.

Re: [9fans] 9vx patch to read environment var PLAN9

2010-04-12 Thread EBo
Skip Tavakkolian <9...@9netics.com> said: > > but both > > of the hard-coded paths in 9vx main.c are obviously in RSC's home > > directories > > it's not hardcoded; What? The findroot code reads: static char* findroot(void) { static char cwd[1024]; int i; char buf[102

Re: [9fans] 9vx patch to read environment var PLAN9

2010-04-12 Thread Skip Tavakkolian
> but both > of the hard-coded paths in 9vx main.c are obviously in RSC's home directories it's not hardcoded; you can use -r as Russ said. the difference is: "use default unless -r is given" vs. "use default unless getenv(NINEROOT) is given". -r makes it very obvious what the root is and proba

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread EBo
EBo said: > > > > Hunting on the we it looks like Ron Cox is the goto person for that > > > (http://bitbucket.org/rsc/vx32/changesets/ dated 2009-12-27): > > > > Ah, my bad. I was looking at the old, pre-bitbucket repository (in my > > defense, still linked from swtch.com/9vx). I take it back.

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread EBo
> > Hunting on the we it looks like Ron Cox is the goto person for that > > (http://bitbucket.org/rsc/vx32/changesets/ dated 2009-12-27): > > Ah, my bad. I was looking at the old, pre-bitbucket repository (in my > defense, still linked from swtch.com/9vx). I take it back. hmmm... the sources I a

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread Anthony Sorace
On Apr 12, 2010, at 22:53, EBo wrote: On Apr 12, 2010, at 11:23, hiro wrote: and what is src/9vx/a/devcap.c ? As far as my system and (as far as I can tell) the Mercurial repository: fictional. Something you'd like to share with the class? Hunting on the we it looks like Ron Cox is the got

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread EBo
> On Apr 12, 2010, at 11:23, hiro wrote: > > > and what is src/9vx/a/devcap.c ? > > As far as my system and (as far as I can tell) the > Mercurial repository: fictional. Something you'd > like to share with the class? Hunting on the we it looks like Ron Cox is the goto person for that (http://b

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread Anthony Sorace
On Apr 12, 2010, at 11:23, hiro wrote: and what is src/9vx/a/devcap.c ? As far as my system and (as far as I can tell) the Mercurial repository: fictional. Something you'd like to share with the class? PGP.sig Description: This is a digitally signed message part

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread erik quanstrom
> > the problem you're addressing can't be addressed well through #Z. > > unix systems act differently than plan 9 ones do. there are a host > > of locking, etc. questions that #Z doesn't handle either.   it would be > > easier > > to use a plan 9 fs (ken fs, cwfs, fossil).  then you wouldn't need

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread hiro
and what is src/9vx/a/devcap.c ? On 4/12/10, erik quanstrom wrote: >> 2010/4/12 hiro <23h...@googlemail.com>: >> > I have not the slightest idea about the complexity involved; And I >> > think I misunderstand how much of plan9 is actually running in a >> > sandbox. But what if we wanted to have a

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread hiro
And the users are running in single sandboxes? On 4/12/10, erik quanstrom wrote: >> 2010/4/12 hiro <23h...@googlemail.com>: >> > I have not the slightest idea about the complexity involved; And I >> > think I misunderstand how much of plan9 is actually running in a >> > sandbox. But what if we wa

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread Devon H. O'Dell
2010/4/12 erik quanstrom : >> 2010/4/12 hiro <23h...@googlemail.com>: >> > I have not the slightest idea about the complexity involved; And I >> > think I misunderstand how much of plan9 is actually running in a >> > sandbox. But what if we wanted to have a working security system for >> > multiple

Re: [9fans] revision control system or SCM of Plan 9 sources

2010-04-12 Thread Boo
Yes, I saw this link before, but I mean some current sources, what happens with Plan9 just right now. Thanks. On 12 апр, 16:54, gd...@rejaa.com (Gabriel Díaz) wrote: > Hello > > http://swtch.com/plan9history/ > > may be is sometthing on the lines you're looking for. > > slds. > > gabi

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread erik quanstrom
> 2010/4/12 hiro <23h...@googlemail.com>: > > I have not the slightest idea about the complexity involved; And I > > think I misunderstand how much of plan9 is actually running in a > > sandbox. But what if we wanted to have a working security system for > > multiple users in 9vx. Would it be - or

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread Devon H. O'Dell
2010/4/12 hiro <23h...@googlemail.com>: > I have not the slightest idea about the complexity involved; And I > think I misunderstand how much of plan9 is actually running in a > sandbox. But what if we wanted to have a working security system for > multiple users in 9vx. Would it be - or is it - po

Re: [9fans] revision control system or SCM of Plan 9 sources

2010-04-12 Thread Nathaniel W Filardo
On Mon, Apr 12, 2010 at 09:30:11AM +, Boo wrote: > Hi folks, > Is there any revision control system or SCM of Plan 9 sources? I would > like to read changesets, but don't know where I can find them. > Thanks. There's a mirror of the daily fossil snapshots from 2002/1212 to some time last year,

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread hiro
I have not the slightest idea about the complexity involved; And I think I misunderstand how much of plan9 is actually running in a sandbox. But what if we wanted to have a working security system for multiple users in 9vx. Would it be - or is it - possible? On 4/12/10, erik quanstrom wrote: >> C

Re: [9fans] revision control system or SCM of Plan 9 sources

2010-04-12 Thread Gabriel Díaz
Hello http://swtch.com/plan9history/ may be is sometthing on the lines you're looking for. slds. gabi - Original Message From: Boo To: 9fans@9fans.net Sent: Mon, April 12, 2010 11:30:11 AM Subject: [9fans] revision control system or SCM of Plan 9 sources Hi folks, Is there any re

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread EBo
> you must also exit if ~ $user none. i'd also recommend > aborting if ~ $home /. you don't want none making > files in /. on a regular plan 9 system, that's no worry, but > 9vx, ... I also tried to add test -z $user for the null string. It turns out that user=`{cat /dev/user} dies with the e

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread erik quanstrom
> Can't we then fix 9vx? > (Stepping in to the tradition of concern of reception: This is not a > rhetoric question) it's not 9vx, but #Z. and no, #Z is going to be limited by the underlying system. - erik

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread hiro
On 4/12/10, erik quanstrom wrote: >> Following on several peoples advice and a suggested code snippet from Erik >> I've added the following before the check for profile: >> >> if(! test -d $home){ >> echo no home directory $home >> exit homeless >> } >> if(! ls -ld $home >[2=] | grep -s

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread EBo
erik quanstrom said: > > Following on several peoples advice and a suggested code snippet from Erik > > I've added the following before the check for profile: > > > > if(! test -d $home){ > > echo no home directory $home > > exit homeless > > } > > if(! ls -ld $home >[2=] | grep -s '^d-r

Re: [9fans] 9vx patch to read environment var PLAN9

2010-04-12 Thread erik quanstrom
> That is what I did for the first prototype. I thought this would be a beeter > solution. > > Out of curiosity, have I hit a nerve or something. Have I somehow offended? > I'm just a bit confused by some of the responses. no. i don't think anyone's offended. and i personally think the env v

Re: [9fans] /sys/lib/newuser patch

2010-04-12 Thread erik quanstrom
> Following on several peoples advice and a suggested code snippet from Erik > I've added the following before the check for profile: > > if(! test -d $home){ > echo no home directory $home > exit homeless > } > if(! ls -ld $home >[2=] | grep -s '^d-rwx.* '$user){ > echo bad perm

Re: [9fans] revision control system or SCM of Plan 9 sources

2010-04-12 Thread erik quanstrom
On Mon Apr 12 05:32:39 EDT 2010, boo...@gmail.com wrote: > Hi folks, > Is there any revision control system or SCM of Plan 9 sources? I would > like to read changesets, but don't know where I can find them. > Thanks. not really. if you want to read revision history, you can use history(1) on sour

Re: [9fans] 9vx patch to read environment var PLAN9

2010-04-12 Thread EBo
Francisco J Ballesteros said: > you could also use a script to call 9vx as you please. That is what I did for the first prototype. I thought this would be a beeter solution. Out of curiosity, have I hit a nerve or something. Have I somehow offended? I'm just a bit confused by some of the res

Re: [9fans] 9vx patch to read environment var PLAN9

2010-04-12 Thread Francisco J Ballesteros
you could also use a script to call 9vx as you please. On Mon, Apr 12, 2010 at 5:22 AM, EBo wrote: > >> Why isn't 9vx -r yourdir good enough? > > it is if you want to force all users to specify the root directory every > single time they run 9vx, or if you want to use an alternative root.  If I

Re: [9fans] using usb

2010-04-12 Thread Francisco J Ballesteros
does your name space mount /srv/usb ? I mean, does it mount the files served from usbd? I'll take a look to usbfat in any case. On Mon, Apr 12, 2010 at 11:30 AM, antonio@gmail.com wrote: > I reinstalled with a new iso before to read your mail. > With the new installation I can mount one old

Re: [9fans] using usb

2010-04-12 Thread antonio....@gmail.com
I reinstalled with a new iso before to read your mail. With the new installation I can mount one old pendrive (128mb) with the new ones I got this: mount: mount /n/sdU2.0: unknown format and in the screen like a kernel message: usb/disk... disk: reset: device is detached (My computer is an old thin

[9fans] revision control system or SCM of Plan 9 sources

2010-04-12 Thread Boo
Hi folks, Is there any revision control system or SCM of Plan 9 sources? I would like to read changesets, but don't know where I can find them. Thanks.