[1035] in Moira

home help back first fref pref prev next nref lref last post

Re: chowning a volume to a gid

daemon@ATHENA.MIT.EDU (Greg Hudson)
Thu Dec 12 03:25:59 1996

Date: Wed, 11 Dec 1996 01:40:24 -0500
From: Greg Hudson <ghudson@MIT.EDU>
To: Jonathon Weiss <jweiss@MIT.EDU>
Cc: afsdev@MIT.EDU, moiradev@MIT.EDU
In-Reply-To: "[531] in AFS-developers"

> It was suggested that it might not be too hard to write a program
> that was able to make the necessary afs calls without going thru the
> cache manager.  Can anyone with more AFS programming experience than
> me tell me if this is feasable, or better yet write such a program?

The problem is that you need to initialize an Rx connection,
authenticate, do the necessary directory lookups (including volume
lookups when you hit mountpoints), and then do the setattr request.
While we could steal code from the cache manager, I don't think it's
very feasible.

Are you willing to accept as part of the answer a kernel module which
defines a new system call which is like chown() but without the uid
check?  This means adding a file under /kernel, modifying
/etc/name_to_sysnum, and of course having a local problem which
invokes the system call.

Of course, then you have all the hair of implementing a loadable
Solaris kernel module, but at least that's documented.

home help back first fref pref prev next nref lref last post