Skip to content

Commit

Permalink
Merge pull request #465 from giuseppe/passthrough-tty
Browse files Browse the repository at this point in the history
logging: passthrough accepts a tty
  • Loading branch information
rhatdan authored Dec 1, 2023
2 parents 2409210 + 03b64fa commit 951229b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ctr_logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,6 @@ static void parse_log_path(char *log_config)
}

if (!strcmp(driver, "passthrough")) {
if (isatty(STDIN_FILENO) || isatty(STDOUT_FILENO) || isatty(STDERR_FILENO))
nexitf("cannot use a tty with passthrough logging mode to prevent attacks via TIOCSTI");

use_logging_passthrough = TRUE;
return;
}
Expand Down

0 comments on commit 951229b

Please sign in to comment.