aboutsummaryrefslogblamecommitdiffstats
path: root/include/sway/security.h
blob: 0edffdfa7aa99ab49bd30dc4966c45c4fd7007e4 (plain) (tree)
1
2
3
4
5
6
7
8
9




                        


                                                  
 

                                                            

                                                             
                                                                 
                                                         
                                                                 

      
#ifndef _SWAY_SECURITY_H
#define _SWAY_SECURITY_H
#include <unistd.h>
#include "sway/config.h"

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);

struct feature_policy *get_feature_policy(const char *name);

const char *command_policy_str(enum command_context context);

struct feature_policy *alloc_feature_policy(const char *program);
struct ipc_policy *alloc_ipc_policy(const char *program);
struct command_policy *alloc_command_policy(const char *command);

#endif