|
From: | R. Diez |
Subject: | [Help-bash] Prevent file descriptor inheritance |
Date: | Wed, 8 Aug 2018 08:40:19 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Hi all:Is there any way to prevent file descriptor inheritance? I mean the "close on exec" flag O_CLOEXEC or FD_CLOEXEC.
I wonder about the security implications. If a shell script opens a "secret" file, and runs an external command, that command will have direct access to the file.
Thanks in advance, rdiez
[Prev in Thread] | Current Thread | [Next in Thread] |