mem: use more restrictive permissions on hugepages
authorRobin Jarry <robin.jarry@6wind.com>
Wed, 10 Aug 2016 14:52:54 +0000 (16:52 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 16 Sep 2016 12:51:27 +0000 (14:51 +0200)
commitda5d107207910fc318862579e7b588481c72c668
tree5e8437c4b602533698ca22dfc6e30a5a35675ddd
parent2f45703c17acb943aaded9f79676fd56a72542b2
mem: use more restrictive permissions on hugepages

There is no need for the page files to be readable (and executable) by
other users. This can be exploited by non-privileged users to access the
working memory of a DPDK app.

Open the files with 0600.

Signed-off-by: Robin Jarry <robin.jarry@6wind.com>
lib/librte_eal/linuxapp/eal/eal_memory.c