mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Implement policy lookups
This commit is contained in:
parent
44cc0ef125
commit
2675293200
5 changed files with 66 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#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);
|
||||
enum secure_features get_feature_policy(pid_t pid);
|
||||
enum command_context get_command_policy(const char *cmd);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -206,7 +206,6 @@ enum secure_feature {
|
|||
|
||||
struct feature_policy {
|
||||
char *program;
|
||||
bool permit;
|
||||
enum secure_feature features;
|
||||
};
|
||||
|
||||
|
|
|
|||
9
include/sway/security.h
Normal file
9
include/sway/security.h
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue