2016-12-02 11:58:11 +11:00
|
|
|
#ifndef _SWAY_SECURITY_H
|
|
|
|
#define _SWAY_SECURITY_H
|
|
|
|
#include <unistd.h>
|
|
|
|
#include "sway/config.h"
|
|
|
|
|
2017-04-16 00:13:28 +10:00
|
|
|
uint32_t get_feature_policy_mask(pid_t pid);
|
|
|
|
uint32_t get_ipc_policy_mask(pid_t pid);
|
|
|
|
uint32_t get_command_policy_mask(const char *cmd);
|
2016-12-02 13:36:43 +11:00
|
|
|
|
2017-04-16 00:16:32 +10:00
|
|
|
struct feature_policy *get_feature_policy(const char *name);
|
|
|
|
|
2016-12-03 00:17:45 +11:00
|
|
|
const char *command_policy_str(enum command_context context);
|
|
|
|
|
2016-12-02 13:36:43 +11:00
|
|
|
struct feature_policy *alloc_feature_policy(const char *program);
|
2017-02-20 22:11:43 +11:00
|
|
|
struct ipc_policy *alloc_ipc_policy(const char *program);
|
2016-12-03 00:10:03 +11:00
|
|
|
struct command_policy *alloc_command_policy(const char *command);
|
2016-12-02 11:58:11 +11:00
|
|
|
|
|
|
|
#endif
|