meson: allow to customize the access mode for tty/pts devices
Then, switch the default value to "0600", due to general security concerns about terminals being written to by other users. Closing #35599.
This commit is contained in:
committed by
Luca Boccassi
parent
0543b02cf8
commit
a4d1891475
@@ -143,8 +143,9 @@ int vt_release(int fd, bool restore_vt);
|
||||
|
||||
void get_log_colors(int priority, const char **on, const char **off, const char **highlight);
|
||||
|
||||
/* This assumes there is a 'tty' group */
|
||||
#define TTY_MODE 0620
|
||||
/* Assume TTY_MODE is defined in config.h. Also, this assumes there is a 'tty' group. */
|
||||
assert_cc((TTY_MODE & ~0666) == 0);
|
||||
assert_cc((TTY_MODE & 0711) == 0600);
|
||||
|
||||
void termios_disable_echo(struct termios *termios);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user