Files
linux-stable-mirror/include/linux
Wojtek Wasko 9fe52e15e1 posix-clock: Store file pointer in struct posix_clock_context
[ Upstream commit e859d375d1 ]

File descriptor based pc_clock_*() operations of dynamic posix clocks
have access to the file pointer and implement permission checks in the
generic code before invoking the relevant dynamic clock callback.

Character device operations (open, read, poll, ioctl) do not implement a
generic permission control and the dynamic clock callbacks have no
access to the file pointer to implement them.

Extend struct posix_clock_context with a struct file pointer and
initialize it in posix_clock_open(), so that all dynamic clock callbacks
can access it.

Acked-by: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Wojtek Wasko <wwasko@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-01-30 10:28:36 +01:00
..
2025-12-18 13:55:17 +01:00
2026-01-08 10:13:54 +01:00
2026-01-08 10:14:34 +01:00
2025-12-18 13:55:18 +01:00
2026-01-08 10:14:11 +01:00