]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/linux/eal/eal.c
eal: tighten permissions on shared memory files
[dpdk.git] / lib / librte_eal / linux / eal / eal.c
index 75ed0cf1029f8bd6e55058649c046ad2f9141596..f7ae62d7b1713a4d5e6f396c1a5f74ffaf768b7d 100644 (file)
@@ -320,7 +320,7 @@ rte_eal_config_create(void)
                rte_mem_cfg_addr = NULL;
 
        if (mem_cfg_fd < 0){
-               mem_cfg_fd = open(pathname, O_RDWR | O_CREAT, 0660);
+               mem_cfg_fd = open(pathname, O_RDWR | O_CREAT, 0600);
                if (mem_cfg_fd < 0)
                        rte_panic("Cannot open '%s' for rte_mem_config\n", pathname);
        }