aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/ipc.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-12-17 15:19:50 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-12-17 15:21:57 -0500
commit1172566d4e298aa6c3555a0d606af4ff31d0db48 (patch)
treea6afcfbbecef26cc6ecaac0fad75268175fe9a51 /sway/commands/ipc.c
parentMerge pull request #996 from woutershep/datadir (diff)
downloadsway-1172566d4e298aa6c3555a0d606af4ff31d0db48.tar.gz
sway-1172566d4e298aa6c3555a0d606af4ff31d0db48.tar.zst
sway-1172566d4e298aa6c3555a0d606af4ff31d0db48.zip
Change how security config is loaded0.11-rc3
Diffstat (limited to 'sway/commands/ipc.c')
-rw-r--r--sway/commands/ipc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/commands/ipc.c b/sway/commands/ipc.c
index 222be0dd..113a975b 100644
--- a/sway/commands/ipc.c
+++ b/sway/commands/ipc.c
@@ -21,6 +21,11 @@ struct cmd_results *cmd_ipc(int argc, char **argv) {
21 return cmd_results_new(CMD_FAILURE, "ipc", "Can only be used in config file."); 21 return cmd_results_new(CMD_FAILURE, "ipc", "Can only be used in config file.");
22 } 22 }
23 23
24 if (!current_config_path || strcmp(SYSCONFDIR "/sway/security", current_config_path) != 0) {
25 return cmd_results_new(CMD_INVALID, "permit",
26 "This command is only permitted to run from " SYSCONFDIR "/sway/security");
27 }
28
24 return cmd_results_new(CMD_BLOCK_IPC, NULL, NULL); 29 return cmd_results_new(CMD_BLOCK_IPC, NULL, NULL);
25} 30}
26 31