help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] Prevent file descriptor inheritance


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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]