diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-12-01 19:58:11 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-12-01 19:58:11 -0500 |
commit | 26752932003145c89a0cd8d39c9944d6f5917837 (patch) | |
tree | bebfa80dc8a2d01c140a3f128ab37fcf2f5710d7 /include/sway | |
parent | 44cc0ef125332f1fe3dad7d16ed0a78a25cd1974 (diff) |
Implement policy lookups
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/config.h | 1 | ||||
-rw-r--r-- | include/sway/security.h | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index 3744386c..14a86e49 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -206,7 +206,6 @@ enum secure_feature { struct feature_policy { char *program; - bool permit; enum secure_feature features; }; diff --git a/include/sway/security.h b/include/sway/security.h new file mode 100644 index 00000000..efc25ce6 --- /dev/null +++ b/include/sway/security.h @@ -0,0 +1,9 @@ +#ifndef _SWAY_SECURITY_H +#define _SWAY_SECURITY_H +#include <unistd.h> +#include "sway/config.h" + +const struct feature_permissions *get_permissions(pid_t pid); +enum command_context get_command_context(const char *cmd); + +#endif |