mirror of
https://github.com/swaywm/sway.git
synced 2025-11-10 13:29:51 -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
|
|
@ -86,10 +86,10 @@ struct cmd_results *cmd_ipc_cmd(int argc, char **argv) {
|
|||
}
|
||||
|
||||
if (enabled) {
|
||||
config->ipc_policy |= type;
|
||||
sway_log(L_DEBUG, "Enabled IPC %s feature", argv[-1]);
|
||||
//config->ipc_policy |= type;
|
||||
sway_log(L_DEBUG, "Enabled IPC %s feature %d", argv[-1], (int)type);
|
||||
} else {
|
||||
config->ipc_policy &= ~type;
|
||||
//config->ipc_policy &= ~type;
|
||||
sway_log(L_DEBUG, "Disabled IPC %s feature", argv[-1]);
|
||||
}
|
||||
|
||||
|
|
@ -134,10 +134,10 @@ struct cmd_results *cmd_ipc_event_cmd(int argc, char **argv) {
|
|||
}
|
||||
|
||||
if (enabled) {
|
||||
config->ipc_policy |= type;
|
||||
sway_log(L_DEBUG, "Enabled IPC %s event", argv[-1]);
|
||||
//config->ipc_policy |= type;
|
||||
sway_log(L_DEBUG, "Enabled IPC %s event %d", argv[-1], (int)type);
|
||||
} else {
|
||||
config->ipc_policy &= ~type;
|
||||
//config->ipc_policy &= ~type;
|
||||
sway_log(L_DEBUG, "Disabled IPC %s event", argv[-1]);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ static enum secure_feature get_features(int argc, char **argv,
|
|||
{ "fullscreen", FEATURE_FULLSCREEN },
|
||||
{ "keyboard", FEATURE_KEYBOARD },
|
||||
{ "mouse", FEATURE_MOUSE },
|
||||
{ "ipc", FEATURE_IPC },
|
||||
};
|
||||
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue