Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: set O_NOCTTY by default for all opens
This avoids potential attacks where we are acting as a library (linked into a process without a controlling terminal) setting their controlling terminal to a potentially-attacker-controlled terminal. While TIOCSTI is no longer permitted for unprivileged users (at all), there's no harm to setting this indiscriminately -- most users don't want a random open to set their controlling terminal unless they really know what they want to do. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
- Loading branch information
Showing
4 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters