summaryrefslogtreecommitdiff
path: root/plugins/sudoers/timestamp.c
Commit message (Expand)AuthorAgeFilesLines
* Make timestamp_uid and timestamp_gid private to timestamp.c.Todd C. Miller2023-05-041-0/+25
* sudo_secure_open_{file,dir}: always check thatreturn value is not -1.Todd C. Miller2022-10-041-44/+44
* Use sudo_secure_open_file() instead of sudo_secure_file() where possible.Todd C. Miller2022-09-211-37/+45
* Fix potential TOCTOU when creating time stamp directory and file.Todd C. Miller2022-09-211-81/+101
* Make sudo pass -Wmissing-prototypesTodd C. Miller2022-06-271-1/+1
* Display the lecture immediately before prompting for a password.Todd C. Miller2022-02-211-2/+2
* Avoid TOCTOU in sudo_mkdir_parents() using openat(2) and mkdirat(2).Todd C. Miller2021-12-111-1/+1
* Sanity check struct timespec in timestamp file.Todd C. Miller2021-04-071-1/+12
* Check lseek(fd, 0, SEEK_CUR) for -1 return value.Todd C. Miller2021-04-071-1/+3
* Add admin_flag sudoers option and make --enable-admin-flag take a path.Todd C. Miller2021-02-161-8/+17
* Move create_admin_success_flag() to timestamp.c.Todd C. Miller2021-02-131-0/+39
* Fix the memset offset when converting a v1 timestamp to TS_LOCKEXCL.Todd C. Miller2021-01-231-2/+2
* Remove #ifdefs around code using pread(3) and pwrite(3).Todd C. Miller2021-01-021-19/+0
* Apply Google inclusive language guidelines.Todd C. Miller2020-10-301-2/+2
* Use the fallthrough attribute instead of /* FALLTHROUGH */ comments.Todd C. Miller2020-08-011-2/+2
* Include string.h unconditionally and only use strings.h for strn?casecmp()Todd C. Miller2020-05-181-6/+1
* We no longer need to include headers we don't use for sudo*.h files.Todd C. Miller2020-05-181-2/+0
* Sanity check size when converting the first record to TS_LOCKEXCLTodd C. Miller2020-01-051-16/+49
* debug_decl and debug_decl_vars now require a semicolon at the end.Todd C. Miller2019-12-221-18/+18
* Add ssizeof macro that returns ssize_t.Todd C. Miller2019-06-251-2/+2
* Add SPDX-License-Identifier to files.Todd C. Miller2019-04-291-0/+2
* Minor snprintf() usage tweaks:Todd C. Miller2019-01-201-3/+3
* Convert PVS-Studio comment to ANSI C.Todd C. Miller2018-10-261-2/+4
* Add comments in .c files so PVS-Studio will check them.Todd C. Miller2018-10-211-0/+3
* In timestamp_open() no need to free cookie on error, it is NULL.Todd C. Miller2018-10-191-2/+1
* Cast uid/gid to unsigned int before printing.Todd C. Miller2018-08-221-1/+1
* Include stddef.h for offsetof() definition.Todd C. Miller2018-08-221-0/+1
* fix compiler warnings on Solaris 11Todd C. Miller2018-08-221-1/+1
* Add debugging info so we can tell why a timestamp record doesn't match.Todd C. Miller2018-08-151-10/+40
* Remove extraneous break statement and fix some whitespace.Todd C. Miller2018-01-301-5/+4
* Fall back to ppid time stamps if timestamp_type == kernel and noTodd C. Miller2018-01-231-31/+29
* Do not call the TIOCSETVERAUTH ioctl with a negative number of seconds.Todd C. Miller2018-01-231-1/+6
* Store passwd_timeout and timestamp_timeout as a struct timespecTodd C. Miller2018-01-221-14/+23
* Remove use of AC_HEADER_TIME, only obsolete platforms actuallyTodd C. Miller2018-01-171-5/+2
* Use a tty lock even for kernel time stamps so we can avoid simultaneousTodd C. Miller2017-12-221-8/+4
* Add "kernel" as a possible value of timestamp_type.Todd C. Miller2017-12-201-0/+51
* In the timestamp record, include the start time of the terminalTodd C. Miller2017-12-161-0/+8
* If the lock record doesn't match the expected record size we needTodd C. Miller2017-12-151-0/+8
* update my email to Todd.Miller@sudo.wsTodd C. Miller2017-12-031-1/+1
* Replace tty_tickets option with timestamp_type which can beTodd C. Miller2017-08-011-29/+39
* Use debug logging instead of ignore_result() where possible.Todd C. Miller2017-05-121-1/+5
* Remove use of the non-standard SA_INTERRUPTTodd C. Miller2017-05-121-1/+1
* cast mode_t to unsigned int when printing with %oTodd C. Miller2017-03-221-1/+1
* Set umask temporarily when creating files instead of changing theTodd C. Miller2017-03-211-0/+4
* Add PERM_IOLOG so we can create I/O log files on an NFS-mountedTodd C. Miller2017-03-211-1/+1
* When creating the timestamp directory, use the group of the timestampTodd C. Miller2017-03-201-7/+7
* Add some casts to quiet gcc warnings on Solaris and remove aTodd C. Miller2017-03-031-1/+1
* Ignore a boot time that is in the future, which can happen when theTodd C. Miller2016-12-011-9/+17
* Use sys/stat.h defines instead of bare octal values.Todd C. Miller2016-11-071-2/+3
* Move io_mkdir_parents() to its own file and use it in ts_mkdirs().Todd C. Miller2016-10-291-41/+12