diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-12-01 21:36:43 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-12-01 21:36:43 -0500 |
commit | 76cab04b4d7828f3c4f607c49e1e6ad78aa6e3da (patch) | |
tree | 53a871af54a91c689c5db597ab21b3c97c4506cd /include | |
parent | Memory leak (diff) | |
download | sway-76cab04b4d7828f3c4f607c49e1e6ad78aa6e3da.tar.gz sway-76cab04b4d7828f3c4f607c49e1e6ad78aa6e3da.tar.zst sway-76cab04b4d7828f3c4f607c49e1e6ad78aa6e3da.zip |
Implement permit and reject commands
Diffstat (limited to 'include')
-rw-r--r-- | include/security.h | 9 | ||||
-rw-r--r-- | include/sway/commands.h | 2 | ||||
-rw-r--r-- | include/sway/security.h | 6 |
3 files changed, 6 insertions, 11 deletions
diff --git a/include/security.h b/include/security.h deleted file mode 100644 index 3a5dbca0..00000000 --- a/include/security.h +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | #ifndef _SWAY_SECURITY_H | ||
2 | #define _SWAY_SECURITY_H | ||
3 | #include <unistd.h> | ||
4 | #include "sway/config.h" | ||
5 | |||
6 | enum secure_features get_feature_policy(pid_t pid); | ||
7 | enum command_context get_command_policy(const char *cmd); | ||
8 | |||
9 | #endif | ||
diff --git a/include/sway/commands.h b/include/sway/commands.h index db5e94d9..1d5d56ac 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h | |||
@@ -122,6 +122,8 @@ sway_cmd cmd_new_float; | |||
122 | sway_cmd cmd_new_window; | 122 | sway_cmd cmd_new_window; |
123 | sway_cmd cmd_orientation; | 123 | sway_cmd cmd_orientation; |
124 | sway_cmd cmd_output; | 124 | sway_cmd cmd_output; |
125 | sway_cmd cmd_permit; | ||
126 | sway_cmd cmd_reject; | ||
125 | sway_cmd cmd_reload; | 127 | sway_cmd cmd_reload; |
126 | sway_cmd cmd_resize; | 128 | sway_cmd cmd_resize; |
127 | sway_cmd cmd_scratchpad; | 129 | sway_cmd cmd_scratchpad; |
diff --git a/include/sway/security.h b/include/sway/security.h index efc25ce6..ae2de0d8 100644 --- a/include/sway/security.h +++ b/include/sway/security.h | |||
@@ -3,7 +3,9 @@ | |||
3 | #include <unistd.h> | 3 | #include <unistd.h> |
4 | #include "sway/config.h" | 4 | #include "sway/config.h" |
5 | 5 | ||
6 | const struct feature_permissions *get_permissions(pid_t pid); | 6 | enum secure_feature get_feature_policy(pid_t pid); |
7 | enum command_context get_command_context(const char *cmd); | 7 | enum command_context get_command_policy(const char *cmd); |
8 | |||
9 | struct feature_policy *alloc_feature_policy(const char *program); | ||
8 | 10 | ||
9 | #endif | 11 | #endif |