2016-12-01 19:58:11 -05:00
|
|
|
#ifndef _SWAY_SECURITY_H
|
|
|
|
#define _SWAY_SECURITY_H
|
|
|
|
#include <unistd.h>
|
|
|
|
#include "sway/config.h"
|
|
|
|
|
2016-12-01 21:36:43 -05:00
|
|
|
enum secure_feature get_feature_policy(pid_t pid);
|
|
|
|
enum command_context get_command_policy(const char *cmd);
|
|
|
|
|
2016-12-02 08:17:45 -05:00
|
|
|
const char *command_policy_str(enum command_context context);
|
|
|
|
|
2016-12-01 21:36:43 -05:00
|
|
|
struct feature_policy *alloc_feature_policy(const char *program);
|
2016-12-02 08:10:03 -05:00
|
|
|
struct command_policy *alloc_command_policy(const char *command);
|
2016-12-01 19:58:11 -05:00
|
|
|
|
|
|
|
#endif
|