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