eal: tighten permissions on shared memory files
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 3 Apr 2019 16:00:34 +0000 (17:00 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 4 Apr 2019 20:06:16 +0000 (22:06 +0200)
commit70d284ab8262e81600d76456c7819af2913aa164
tree8bf4c8b865a4517df43580079ec342d968c9cfcf
parent27893e4eee879a40f4ac5f374a9c167a9b7ba516
eal: tighten permissions on shared memory files

When creating files on disk, e.g. for EAL configuration or shared memory
locks, etc., there is no need to grant any permissions on those files to
other users. All directories are already created with 0700 permissions, so
we should create all files with 0600 permissions.

Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/freebsd/eal/eal.c
lib/librte_eal/freebsd/eal/eal_hugepage_info.c
lib/librte_eal/linux/eal/eal.c
lib/librte_eal/linux/eal/eal_hugepage_info.c
lib/librte_eal/linux/eal/eal_memory.c