From 151482229c9e4ae818fd4921f37c649df480835c Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Fri, 23 Dec 2022 15:10:27 -0600 Subject: [PATCH] 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 Reviewed-by: waddlesplash Reviewed-by: Alex von Gluck IV --- src/system/kernel/fs/rootfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/fs/rootfs.cpp b/src/system/kernel/fs/rootfs.cpp index f89e145e33..ace9a74fb5 100644 --- a/src/system/kernel/fs/rootfs.cpp +++ b/src/system/kernel/fs/rootfs.cpp @@ -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;