mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Update apparmor_kernel_development_guide_notifications
parent
7402c6306a
commit
8d1d882c42
1 changed files with 9 additions and 2 deletions
|
@ -88,8 +88,15 @@ If a notification is determined to be needed the audit message is queued up on t
|
|||
- we use a wait_queue instead of a completion queue
|
||||
- as there maybe multiple tasks listening, that may wake up on the same event.
|
||||
|
||||
- because events are at the policy ns level, we have a single wait_queue per ns.
|
||||
- waiter
|
||||
- events are at the policy ns level, but events are filtered per listener fd. Further more a listener may want to listen to events from multiple namespaces.
|
||||
- a single wait_queue per ns would force listeners to use multiple fds, and non-blocking I/O or polling
|
||||
- instead we use a single wait_queue per listener (fd)
|
||||
- listeners are added to a per ns list
|
||||
- events are checked against the listeners filter before waking the listener
|
||||
- listeners are then responsible for processing available events
|
||||
- events are queued at the ns with a unique id, not the listener
|
||||
|
||||
|
||||
|
||||
- each listener whos filter matches a notification will be woken/receive wakeup?
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue