From f597c00ec39178fd27cc016c09d9bc40fd36053a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 7 Oct 1999 20:53:32 +0000 Subject: 1999-10-07 Roland McGrath * start-translator-long.c (fshelp_start_translator_long): Take new argument OWNER_UID. Get child's proc port and do proc_setowner on it. * fshelp.h: Update decl. * start-translator.c (fshelp_start_translator): Pass new arg to fshelp_start_translator_long with value from geteuid (). * fetch-root.c (fshelp_fetch_root): Pass UID as new arg to fshelp_start_translator_long. --- libfshelp/fshelp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libfshelp/fshelp.h') diff --git a/libfshelp/fshelp.h b/libfshelp/fshelp.h index 9fe8fcfc..309f64b4 100644 --- a/libfshelp/fshelp.h +++ b/libfshelp/fshelp.h @@ -59,6 +59,7 @@ fshelp_start_translator_long (fshelp_open_fn_t underlying_open_fn, mach_port_t *ports, mach_msg_type_name_t ports_type, int ports_len, int *ints, int ints_len, + uid_t owner_uid, int timeout, fsys_t *control); @@ -244,7 +245,7 @@ error_t fshelp_access (struct stat *st, int op, struct iouser *user); existing file ST. (If there is no existing file, pass 0 for ST.) If the access is permissable return 0; otherwise return an appropriate error code. */ -error_t fshelp_checkdirmod (struct stat *dir, struct stat *st, +error_t fshelp_checkdirmod (struct stat *dir, struct stat *st, struct iouser *user); -- cgit v1.2.3