aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-02-20 06:11:43 -0500
committerDrew DeVault <sir@cmpwn.com>2017-02-20 06:11:56 -0500
commitb10721b89e3f3992b2476c55237a25dbeb0bce46 (patch)
tree8898271a6b93b848bd5e75c6f037a6140d119d1b /sway/commands
parent7dbecdde95d1f309d8fdd02fe480dc3fbef7c7c1 (diff)
downloadsway-b10721b89e3f3992b2476c55237a25dbeb0bce46.tar.xz
Add initial support code for new IPC security
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/ipc.c12
-rw-r--r--sway/commands/permit.c1
2 files changed, 6 insertions, 7 deletions
diff --git a/sway/commands/ipc.c b/sway/commands/ipc.c
index 113a975b..44d7a010 100644
--- a/sway/commands/ipc.c
+++ b/sway/commands/ipc.c
@@ -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]);
}
diff --git a/sway/commands/permit.c b/sway/commands/permit.c
index 1b2a30bf..6eb71816 100644
--- a/sway/commands/permit.c
+++ b/sway/commands/permit.c
@@ -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) {