From d0eb32e4bb058ba2d8103e07d1dd5423fa3e84b9 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 19 Oct 1995 20:14:03 +0000 Subject: (diskfs_execboot_fsys_startup): Open exec's realnode read-only for now, since we know it doesn't matter and having gratuitously writable nodes around prevents us from starting up or going read-only. (diskfs_S_fsys_init): Don't make the cwdir/crdir right with O_WRITE. --- libdiskfs/boot-start.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdiskfs') diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c index 75d300b8..8cbf67fe 100644 --- a/libdiskfs/boot-start.c +++ b/libdiskfs/boot-start.c @@ -298,7 +298,7 @@ diskfs_execboot_fsys_startup (mach_port_t port, ports_port_deref (rootpi); err = dir_lookup (rootport, _SERVERS_EXEC, - O_READ|O_WRITE|O_EXEC|O_NOTRANS, 0, &retry, pathbuf, real); + O_READ|O_EXEC|O_NOTRANS, 0, &retry, pathbuf, real); assert_perror (err); assert (retry == FS_RETRY_NORMAL); assert (pathbuf[0] == '\0'); @@ -401,7 +401,7 @@ diskfs_S_fsys_init (mach_port_t port, /* Get a port to the root directory to put in the library's data structures. */ rootpi = diskfs_make_protid (diskfs_make_peropen (diskfs_root_node, - O_READ|O_WRITE|O_EXEC, + O_READ|O_EXEC, MACH_PORT_NULL), 0,0,0,0); root_pt = ports_get_right (rootpi); -- cgit v1.2.3