Commit e859d375 authored by Wojtek Wasko's avatar Wojtek Wasko Committed by David S. Miller
Browse files

posix-clock: Store file pointer in struct posix_clock_context



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: default avatarRichard Cochran <richardcochran@gmail.com>
Reviewed-by: default avatarVadim Fedorenko <vadim.fedorenko@linux.dev>
Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarWojtek Wasko <wwasko@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f252f23a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment