Skip to content

Commit

Permalink
logging: -l passthrough accepts TTYs
Browse files Browse the repository at this point in the history
enable usage also on TTYs, the caller is responsible to use it safely.

Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Dec 1, 2023
1 parent 2409210 commit 03b64fa
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 03b64fa

Please sign in to comment.