aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/ipc.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-12-02 17:55:03 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-12-02 17:55:03 -0500
commit62dad7148f7b7b314f0297e191861ae3f03e9e1f (patch)
tree45bc560d7a197200ff3658cbbb5763e860bf1372 /sway/commands/ipc.c
parentAdd IPC security policy command handlers (diff)
downloadsway-62dad7148f7b7b314f0297e191861ae3f03e9e1f.tar.gz
sway-62dad7148f7b7b314f0297e191861ae3f03e9e1f.tar.zst
sway-62dad7148f7b7b314f0297e191861ae3f03e9e1f.zip
Enforce IPC security policy
Diffstat (limited to 'sway/commands/ipc.c')
-rw-r--r--sway/commands/ipc.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/sway/commands/ipc.c b/sway/commands/ipc.c
index e6ae27a4..f96e9980 100644
--- a/sway/commands/ipc.c
+++ b/sway/commands/ipc.c
@@ -62,13 +62,13 @@ struct cmd_results *cmd_ipc_cmd(int argc, char **argv) {
62 char *name; 62 char *name;
63 enum ipc_command_type type; 63 enum ipc_command_type type;
64 } types[] = { 64 } types[] = {
65 { "command", IPC_COMMAND }, 65 { "command", IPC_FEATURE_COMMAND },
66 { "workspaces", IPC_GET_WORKSPACES }, 66 { "workspaces", IPC_FEATURE_GET_WORKSPACES },
67 { "outputs", IPC_GET_OUTPUTS }, 67 { "outputs", IPC_FEATURE_GET_OUTPUTS },
68 { "tree", IPC_GET_TREE }, 68 { "tree", IPC_FEATURE_GET_TREE },
69 { "marks", IPC_GET_MARKS }, 69 { "marks", IPC_FEATURE_GET_MARKS },
70 { "bar-config", IPC_GET_BAR_CONFIG }, 70 { "bar-config", IPC_FEATURE_GET_BAR_CONFIG },
71 { "inputs", IPC_GET_INPUTS }, 71 { "inputs", IPC_FEATURE_GET_INPUTS },
72 }; 72 };
73 73
74 uint32_t type = 0; 74 uint32_t type = 0;
@@ -111,12 +111,12 @@ struct cmd_results *cmd_ipc_event_cmd(int argc, char **argv) {
111 char *name; 111 char *name;
112 enum ipc_command_type type; 112 enum ipc_command_type type;
113 } types[] = { 113 } types[] = {
114 { "workspace", event_mask(IPC_EVENT_WORKSPACE) }, 114 { "workspace", IPC_FEATURE_EVENT_WORKSPACE },
115 { "output", event_mask(IPC_EVENT_OUTPUT) }, 115 { "output", IPC_FEATURE_EVENT_OUTPUT },
116 { "mode", event_mask(IPC_EVENT_MODE) }, 116 { "mode", IPC_FEATURE_EVENT_MODE },
117 { "window", event_mask(IPC_EVENT_WINDOW) }, 117 { "window", IPC_FEATURE_EVENT_WINDOW },
118 { "binding", event_mask(IPC_EVENT_BINDING) }, 118 { "binding", IPC_FEATURE_EVENT_BINDING },
119 { "input", event_mask(IPC_EVENT_INPUT) }, 119 { "input", IPC_FEATURE_EVENT_INPUT },
120 }; 120 };
121 121
122 uint32_t type = 0; 122 uint32_t type = 0;