diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-12-02 08:17:45 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-12-02 08:17:45 -0500 |
| commit | 795bd73493ab765541eab7db571030b7400f83c5 (patch) | |
| tree | 267efa5b40f7272bdfec16eac054961df6f4d417 /include | |
| parent | a5571e802f1a70bd1245eff1b17a49da4ea57af7 (diff) | |
Enforce command policies
Diffstat (limited to 'include')
| -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; /** * Parse and handles a command. */ -struct cmd_results *handle_command(char *command); +struct cmd_results *handle_command(char *command, enum command_context context); /** * Parse and handles a command during config file loading. * 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 @@ enum secure_feature get_feature_policy(pid_t pid); enum command_context get_command_policy(const char *cmd); +const char *command_policy_str(enum command_context context); + struct feature_policy *alloc_feature_policy(const char *program); struct command_policy *alloc_command_policy(const char *command); |
