Except file descriptors from closing list 78/303078/2
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 20 Dec 2023 01:27:20 +0000 (10:27 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 20 Dec 2023 03:03:38 +0000 (12:03 +0900)
commitc7b2118b1d44cf41fd6babd3620e1b85c01ac72f
tree88e9abce560ee95c27179c55e9143833c1cf08b6
parente1d0df1f61b42727339cdba6eba37ffeb4a8be00
Except file descriptors from closing list

There is a smack issue by closing fds in the process-pool.
In launchpad-process-pool, when using dlog, create a file descriptor
with vlog_init().
 - When creating a process-pool, close all file descriptors except for
   the dlog fd (at this time, the vlog fd is closed).
 - When using the security-manager, attempt to output dlog. Attempt to write
   using the vlog fd by calling vlog_write(), but at this time, actually use
   the fd created by the security-manager.
 - This fd points to /sys/fs/smackfs.
 - SMACK error occurred.

Change-Id: I50b3f4860454f002dd550311bf48e7ef5a2916dc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/process_pool.cc