mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Add initial support code for new IPC security
This commit is contained in:
parent
7dbecdde95
commit
b10721b89e
7 changed files with 70 additions and 58 deletions
|
|
@ -203,7 +203,6 @@ enum secure_feature {
|
|||
FEATURE_FULLSCREEN = 16,
|
||||
FEATURE_KEYBOARD = 32,
|
||||
FEATURE_MOUSE = 64,
|
||||
FEATURE_IPC = 128,
|
||||
};
|
||||
|
||||
struct feature_policy {
|
||||
|
|
@ -228,6 +227,11 @@ enum ipc_feature {
|
|||
IPC_FEATURE_EVENT_INPUT = 8192
|
||||
};
|
||||
|
||||
struct ipc_policy {
|
||||
char *program;
|
||||
uint32_t features;
|
||||
};
|
||||
|
||||
/**
|
||||
* The configuration struct. The result of loading a config file.
|
||||
*/
|
||||
|
|
@ -300,7 +304,7 @@ struct sway_config {
|
|||
// Security
|
||||
list_t *command_policies;
|
||||
list_t *feature_policies;
|
||||
uint32_t ipc_policy;
|
||||
list_t *ipc_policies;
|
||||
};
|
||||
|
||||
void pid_workspace_add(struct pid_workspace *pw);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue