system/kernel: Fix virtual / permissions

* Solves some insecure permission errors with
  sshd subprocesses.
* More secure I guess not letting "anyone" write to /

Change-Id: I1bb31ff0142585639369f7b3d15cf9a2d5755598
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5962
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
This commit is contained in:
Alexander von Gluck IV 2022-12-23 15:10:27 -06:00 committed by waddlesplash
parent 90e87426ac
commit 151482229c

View File

@ -401,7 +401,7 @@ rootfs_mount(fs_volume* volume, const char* device, uint32 flags,
}
// create the root vnode
vnode = rootfs_create_vnode(fs, NULL, ".", S_IFDIR | 0777);
vnode = rootfs_create_vnode(fs, NULL, ".", S_IFDIR | 0755);
if (vnode == NULL) {
err = B_NO_MEMORY;
goto err3;