diff options
author | Miles Bader <miles@gnu.org> | 1995-10-19 20:14:03 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-10-19 20:14:03 +0000 |
commit | d0eb32e4bb058ba2d8103e07d1dd5423fa3e84b9 (patch) | |
tree | 1839efe67c913bd997f0d492de3946f2ef5812b7 | |
parent | 698fb8e4834c8b3417c61833b27177a34c0cec66 (diff) |
(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.
-rw-r--r-- | libdiskfs/boot-start.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |