Thread (9 messages) 9 messages, 2 authors, 2025-02-20

Re: [PATCH net-next v3 1/3] posix-clock: Store file pointer in struct posix_clock_context

From: Thomas Gleixner <hidden>
Date: 2025-02-17 20:23:50

On Mon, Feb 17 2025 at 11:50, Wojtek Wasko wrote:
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.

Signed-off-by: Wojtek Wasko <redacted>
Reviewed-by: Thomas Gleixner <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help