Security Context interface.
| #define pw_security_context_create |
( |
| c, |
|
|
| ... ) |
Value:
Create a new security context.
Creates a new security context with a socket listening FD. PipeWire will accept new client connections on listen_fd.
listen_fd must be ready to accept new connections when this request is sent by the client. In other words, the client must call bind(2) and listen(2) before sending the FD.
close_fd is a FD closed by the client when PipeWire should stop accepting new connections on listen_fd.
PipeWire must continue to accept connections on listen_fd when the client which created the security context disconnects.
After sending this request, closing listen_fd and close_fd remains the only valid operation on them.
- Parameters
-
| listen_fd | the fd to listen on for new connections |
| close_fd | the fd used to stop listening |
| props | extra properties. These will be copied on the client that connects through this context. |
Some properties to set:
- pipewire.sec.engine with the engine name.
- pipewire.sec.app-id with the application id, this is an opaque, engine specific id for an application
- pipewire.sec.instance-id with the instance id, this is an opaque, engine specific id for a running instance of an application.
See https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/staging/security-context/engines.md For a list of engine names and the properties to set.
This requires X and W permissions on the security_context.
- See also
- pw_security_context_methods.create