git: de6193cf7d2c - main - timefd: Correct the required rights for timerfd_gettime()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Jul 2026 13:41:44 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=de6193cf7d2c0c31e5ccafd098275a629a5ea49e
commit de6193cf7d2c0c31e5ccafd098275a629a5ea49e
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-07-08 17:12:21 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-07-09 13:41:24 +0000
timefd: Correct the required rights for timerfd_gettime()
Reviewed by: jfree
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D58084
---
sys/kern/sys_timerfd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/sys_timerfd.c b/sys/kern/sys_timerfd.c
index 22e6a30faa21..412a000c22d6 100644
--- a/sys/kern/sys_timerfd.c
+++ b/sys/kern/sys_timerfd.c
@@ -496,7 +496,7 @@ kern_timerfd_gettime(struct thread *td, int fd, struct itimerspec *curr_value)
struct timerfd *tfd;
int error;
- error = fget(td, fd, &cap_write_rights, &fp);
+ error = fget(td, fd, &cap_read_rights, &fp);
if (error != 0)
return (error);
if (fp->f_type != DTYPE_TIMERFD) {