Open iptables-restore pipes with O_CLOEXEC.

This improves security and reliability, and also avoids keeping
superflous fds open in iptables-restore processes: the pipe fds
that are dup2()d are never closed.

Bug: 28362720
Test: bullhead builds, boots
Test: netd_{unit,integration}_test pass

(cherry picked from commit cd0fa850d8cd05310be9b49750455dfd2e1802b0)

Change-Id: I1ec6953327d889eb1948b2a10e532304b308e516
1 file changed