summaryrefslogtreecommitdiff
path: root/libdiskfs/fsys-getroot.c
AgeCommit message (Collapse)Author
1998-10-241998-04-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
Add support for a "virtual root directory" specified at startup. * priv.h (_diskfs_chroot_directory): Declare new variable. * opts-std-startup.c (startup_options, parse_startup_opt): New string-valued option -C/--directory/--virtual-root/--chroot sets _diskfs_chroot_directory. * init-startup.c (_diskfs_chroot_directory): New variable. (diskfs_startup_diskfs): If that's set, look up the name and warp us to that as a virtual root directory. * fsys-getroot.c (diskfs_S_fsys_getroot): Initialize new peropen's shadow_root_parent to null, and shadow_root to either null or, if _diskfs_chroot_directory is set, to diskfs_root_node.
1997-02-14(diskfs_S_fsys_getroot):Miles Bader
Pass a prototype peropen instead of the dotdotport and depth to diskfs_make_peropen.
1997-02-06(diskfs_S_fsys_getroot):Miles Bader
Supply DEPTH argument to diskfs_make_peropen. Pass new type of cookie2 to fshelp_fetch_root, as expected by _diskfs_translator_callback2.
1996-11-19(diskfs_S_fsys_getroot):Miles Bader
Use S_IPTRANS bit in dn_stat st_mode field rather than istranslated field.
1996-11-18Fri Nov 15 14:06:16 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell
* protid-make.c (diskfs_finish_protid): Fix typo. * file-chown.c (diskfs_S_file_chown): Look for UID, not CRED in the uid set. * dir-lookup.c (diskfs_S_dir_lookup): Make the unauthenticated port correctly. Thu Nov 14 13:07:37 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * dir-init.c (diskfs_init_dir): New vars VEC and USER; fabricate LOOKUPCRED to correspond to new structure definitions. * io-restrict-auth.c (diskfs_S_io_restrict_auth): Declare I and add a missing semicolon. * fsys-getroot.c (diskfs_S_fsys_getroot): Eliminate PSEUDOCRED entirely. Fix unrelated typo. * file-chauthor.c (dithkfth_TH_file_chauthor): Fix first arg in call to fthhelp_ithowner. Tue Nov 12 22:45:07 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * diskfs.h: Correctly close comment.
1996-11-13Thu Nov 7 01:03:11 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell
* protid-rele.c (diskfs_protid_rele): Free CRED->user. Wed Nov 6 17:55:17 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * diskfs.h (diskfs_isuid, diskfs_groupmember, diskfs_isowner, diskfs_access, diskfs_checkdirmod): Delete functions. * fsys-getroot.c (diskfs_S_fsys_getroot): Replace PSEUDOCRED with a real iouser and specify that in the relevant calls. * io-restrict-auth.c (diskfs_S_io_restrict_auth): Reworked to use idvecs. * file-chmod.c (diskfs_S_file_chmod): diskfs_isuid -> idvec_contains. * file-chown.c (diskfs_S_file_chown): Likewise. * file-getcontrol.c (diskfs_S_file_getcontrol): Likewise. * file-chmod.c (diskfs_S_file_chmod): diskfs_groupmember -> idvec_contains. * file-chown.c (diskfs_S_file_chown): Likewise. * node-create.c (diskfs_create_node): Likewise. * dir-lookup.c (diskfs_S_dir_lookup): diskfs_isowner -> fshelp_isowner. * file-chflags.c (diskfs_S_file_chflags): Likewise. * file-chmod.c (diskfs_S_file_chmod): Likewise. * file-chown.c (diskfs_S_file_chown): Likewise. * file-get-transcntl.c (diskfs_S_file_get_translator_cntl): Likewise. * file-set-trans.c (diskfs_S_file_set_translator): Likewise. * file-utimes.c (diskfs_S_file_utimes): Likewise. * fsys-getroot.c (diskfs_S_fsys_getroot): Likewise. * lithp.h (dithkfth_ithowner): Deleted macro. (fthhelp_ithowner, uther): New macros. * file-chauthor.c (dithkfth_TH_file_chauthor): dthkfth_ithowner -> fthhelp_ithowner. * dir-lookup.c (diskfs_S_dir_lookup): diskfs_access -> fshelp_access. * dir-mkfile.c (diskfs_S_dir_mkfile): Likewise. * file-access.c (diskfs_S_file_check_access): Likewise. * file-exec.c (diskfs_S_file_exec): Likewise (in dead code). * fsys-getroot.c (diskfs_S_fsys_getroot): Likewise. * ifsock.c (diskfs_S_ifsock_getsockaddr): Likewise. * lookup.c (diskfs_lookup): Likewise. (diskfs_lookup): diskfs_checkdirmod -> fshelp_checkdirmod. * dir-lookup.c (diskfs_S_dir_lookup): New arg format for fshelp_fetch_root. * fsys-getroot.c (diskfs_S_fsys_getroot): Likewise. * diskfs.h, protid-make.c (diskfs_create_protid): Delete args `uids', `gids', `nuids', and `ngids'. Replace with new arg `user'. All callers changed. (diskfs_finish_protid): Likewise. * file-inv-trans.c (diskfs_S_file_invoke_translator): Use CRED->user instead of old fields. * io-restrict-auth.c (diskfs_S_io_restrict_auth): Likewise. * node-create.c (diskfs_create_node): Likewise. * file-exec.c (diskfs_S_file_exec): Likewise. Use idvec_merge instead of idvec_merge_ids, now that it's convenient. * io-reauthenticate.c (diskfs_S_io_reauthenticate): Use new iohelp_reauthenticate. Tue Nov 5 21:10:18 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * diskfs.h: Include <idvec.h>. (struct protid): Delete members `uids', `gids', `nuids' and `ngids'. New member `user'.
1996-06-24(diskfs_S_fsys_getroot): Use diskfs_check_readonly instead of diskfs_readonly.Michael I. Bushnell
1996-01-27(diskfs_S_fsys_getroot): Use diskfs_create_protid instead ofMiles Bader
diskfs_make_protid, and deal with an error return.
1996-01-18(diskfs_S_fsys_getroot): Deallocate ref to dotdot afterMichael I. Bushnell
diskfs_make_peropen, because the latter does not eat a reference.
1996-01-18(diskfs_S_fsys_getroot): In symlink case, use MOVE_SEND to return theMichael I. Bushnell
dotdot port to the user.
1995-11-06(diskfs_S_fsys_getroot): Pass both callback args to fshelp_fetch_root.Miles Bader
1995-10-19(diskfs_S_fsys_getroot): Hold DISKFS_FSYS_LOCK for reading.Miles Bader
1995-07-21(diskfs_S_fsys_getroot): Free initial reference created byMichael I. Bushnell
diskfs_make_protid.
1995-06-26(diskfs_S_fsys_getroot): New parms REPLY and REPLYTYPE.Michael I. Bushnell
1995-06-19(diskfs_S_fsys_getroot): Fix typo.Michael I. Bushnell
1995-06-14(diskfs_S_fsys_getroot): Use new translator startup interface.Michael I. Bushnell
1995-06-09(diskfs_S_fsys_getroot): Use ports_lookup_port and ports_port_derefMichael I. Bushnell
instead of ports_check_port_type and ports_done_with_port.
1994-09-26entered into RCSMichael I. Bushnell
1994-09-23Formerly fsys-getroot.c.~18~Michael I. Bushnell
1994-09-12Formerly fsys-getroot.c.~17~Michael I. Bushnell
1994-09-09Formerly fsys-getroot.c.~16~Michael I. Bushnell
1994-09-01Formerly fsys-getroot.c.~15~Michael I. Bushnell
1994-07-19Formerly fsys-getroot.c.~14~Michael I. Bushnell
1994-07-18Formerly fsys-getroot.c.~13~Michael I. Bushnell
1994-07-15Formerly fsys-getroot.c.~12~Michael I. Bushnell
1994-07-13Formerly fsys-getroot.c.~11~Michael I. Bushnell
1994-07-11Formerly fsys-getroot.c.~10~Michael I. Bushnell
1994-06-29Formerly fsys-getroot.c.~9~Michael I. Bushnell
1994-06-17Formerly fsys-getroot.c.~8~Michael I. Bushnell
1994-06-17Formerly fsys-getroot.c.~7~Michael I. Bushnell
1994-06-16Formerly fsys-getroot.c.~6~Michael I. Bushnell
1994-05-05Formerly fsys-getroot.c.~5~Roland McGrath
1994-02-18Formerly fsys-getroot.c.~4~Michael I. Bushnell
1994-02-11Formerly fsys-getroot.c.~3~Michael I. Bushnell
1994-02-08Formerly fsys-getroot.c.~2~Michael I. Bushnell
1994-02-08Initial revisionMichael I. Bushnell