2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Add ttydev to sudoers_user_context and use for timestamp file.

GitHub issue #329
This commit is contained in:
Todd C. Miller
2023-11-25 16:26:45 -07:00
parent 3dfbf9316c
commit a85494b5c4
3 changed files with 29 additions and 4 deletions

View File

@@ -24,7 +24,7 @@
#ifndef SUDOERS_SUDOERS_H
#define SUDOERS_SUDOERS_H
#include <sys/types.h> /* for gid_t, mode_t, pid_t, size_t, uid_t */
#include <sys/types.h> /* dev_t, gid_t, mode_t, pid_t, size_t, uid_t */
#include <limits.h>
#ifdef HAVE_STDBOOL_H
# include <stdbool.h>
@@ -142,6 +142,7 @@ struct sudoers_user_context {
int lines;
int cols;
int timeout;
dev_t ttydev;
mode_t umask;
uid_t euid;
uid_t uid;