diff options
author | 2016-12-02 08:17:45 -0500 | |
---|---|---|
committer | 2016-12-02 08:17:45 -0500 | |
commit | 39cf9a82f7c1f7e5d7b4952cabf215c8459a99e2 (patch) | |
tree | 267efa5b40f7272bdfec16eac054961df6f4d417 /include/sway | |
parent | Add support for command policies in config file (diff) | |
download | sway-39cf9a82f7c1f7e5d7b4952cabf215c8459a99e2.tar.gz sway-39cf9a82f7c1f7e5d7b4952cabf215c8459a99e2.tar.zst sway-39cf9a82f7c1f7e5d7b4952cabf215c8459a99e2.zip |
Enforce command policies
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/commands.h | 2 | ||||
-rw-r--r-- | include/sway/security.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index ccc3cf58..9e8d013e 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h | |||
@@ -54,7 +54,7 @@ int sp_index; | |||
54 | /** | 54 | /** |
55 | * Parse and handles a command. | 55 | * Parse and handles a command. |
56 | */ | 56 | */ |
57 | struct cmd_results *handle_command(char *command); | 57 | struct cmd_results *handle_command(char *command, enum command_context context); |
58 | /** | 58 | /** |
59 | * Parse and handles a command during config file loading. | 59 | * Parse and handles a command during config file loading. |
60 | * | 60 | * |
diff --git a/include/sway/security.h b/include/sway/security.h index aa51fd81..1cc85bee 100644 --- a/include/sway/security.h +++ b/include/sway/security.h | |||
@@ -6,6 +6,8 @@ | |||
6 | enum secure_feature get_feature_policy(pid_t pid); | 6 | enum secure_feature get_feature_policy(pid_t pid); |
7 | enum command_context get_command_policy(const char *cmd); | 7 | enum command_context get_command_policy(const char *cmd); |
8 | 8 | ||
9 | const char *command_policy_str(enum command_context context); | ||
10 | |||
9 | struct feature_policy *alloc_feature_policy(const char *program); | 11 | struct feature_policy *alloc_feature_policy(const char *program); |
10 | struct command_policy *alloc_command_policy(const char *command); | 12 | struct command_policy *alloc_command_policy(const char *command); |
11 | 13 | ||