PipeWire 1.2.6
|
Security Context interface More...
Files | |
file | security-context.h |
pipewire/extensions/security-context.h | |
Data Structures | |
struct | pw_security_context_events |
Security Context events More... | |
struct | pw_security_context_methods |
Security Context methods More... | |
struct | pw_security_context |
Macros | |
#define | PW_TYPE_INTERFACE_SecurityContext PW_TYPE_INFO_INTERFACE_BASE "SecurityContext" |
#define | PW_SECURITY_CONTEXT_PERM_MASK PW_PERM_RWX |
#define | PW_VERSION_SECURITY_CONTEXT 3 |
#define | PW_EXTENSION_MODULE_SECURITY_CONTEXT PIPEWIRE_MODULE_PREFIX "module-security-context" |
#define | PW_SECURITY_CONTEXT_EVENT_NUM 0 |
#define | PW_VERSION_SECURITY_CONTEXT_EVENTS 0 |
#define | PW_SECURITY_CONTEXT_METHOD_ADD_LISTENER 0 |
#define | PW_SECURITY_CONTEXT_METHOD_CREATE 1 |
#define | PW_SECURITY_CONTEXT_METHOD_NUM 2 |
#define | PW_VERSION_SECURITY_CONTEXT_METHODS 0 |
#define | pw_security_context_method(o, method, version, ...) |
#define | pw_security_context_add_listener(c, ...) |
#define | pw_security_context_create(c, ...) |
Create a new security context. | |
Security Context interface
#define PW_TYPE_INTERFACE_SecurityContext PW_TYPE_INFO_INTERFACE_BASE "SecurityContext" |
#define PW_SECURITY_CONTEXT_PERM_MASK PW_PERM_RWX |
#define PW_VERSION_SECURITY_CONTEXT 3 |
#define PW_EXTENSION_MODULE_SECURITY_CONTEXT PIPEWIRE_MODULE_PREFIX "module-security-context" |
#define PW_SECURITY_CONTEXT_EVENT_NUM 0 |
#define PW_VERSION_SECURITY_CONTEXT_EVENTS 0 |
#define PW_SECURITY_CONTEXT_METHOD_ADD_LISTENER 0 |
#define PW_SECURITY_CONTEXT_METHOD_CREATE 1 |
#define PW_SECURITY_CONTEXT_METHOD_NUM 2 |
#define PW_VERSION_SECURITY_CONTEXT_METHODS 0 |
#define pw_security_context_method | ( | o, | |
method, | |||
version, | |||
... ) |
#define pw_security_context_add_listener | ( | c, | |
... ) |
#define pw_security_context_create | ( | c, | |
... ) |
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.
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:
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.