ujail: add O_CLOEXEC flag to open() call
authorEtienne CHAMPETIER <champetier.etienne@gmail.com>
Mon, 30 Nov 2015 23:09:20 +0000 (23:09 +0000)
committerJohn Crispin <blogic@openwrt.org>
Fri, 11 Dec 2015 10:58:33 +0000 (11:58 +0100)
commit7646217c0d1775bc95cceb14f5c975ac7d157f05
treee318355ef10afb4c3aecea8e6716091517ef9540
parent6f192af24458cff4ca3e3f83533ac4c7f26b33e3
ujail: add O_CLOEXEC flag to open() call

if we forget to close() in the future,
this prevent fd leak

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
jail/elf.c
jail/fs.c