[Devel] [PATCH vz9] procfs: ipc: restore visibility of /proc/sysvipc/ in CT

Nikita Yushchenko nikita.yushchenko at virtuozzo.com
Fri Feb 11 09:41:23 MSK 2022


When porting proc visibility configuration to vz9, setting for sysvrpc
entry was lost, perhaps due to move to a different source file.

Fixes: beccd7c78f78 ("ve/proc: restricted proc-entries scope")
Signed-off-by: Nikita Yushchenko <nikita.yushchenko at virtuozzo.com>
Feature: procfs: virtualization and visibility configuration
---
 ipc/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipc/util.c b/ipc/util.c
index d5732e62c8c3..a70c0bdc401f 100644
--- a/ipc/util.c
+++ b/ipc/util.c
@@ -89,7 +89,7 @@ struct ipc_proc_iface {
  */
 static int __init ipc_init(void)
 {
-	proc_mkdir("sysvipc", NULL);
+	proc_mkdir_mode("sysvipc", S_ISVTX | S_IRUGO | S_IXUGO, NULL);
 	sem_init();
 	msg_init();
 	shm_init();
-- 
2.30.2



More information about the Devel mailing list