mirror of
https://github.com/swaywm/sway.git
synced 2025-11-12 13:29:56 -05:00
Enforce command policies
This commit is contained in:
parent
f23880b1fd
commit
39cf9a82f7
6 changed files with 39 additions and 10 deletions
|
|
@ -54,7 +54,7 @@ int sp_index;
|
|||
/**
|
||||
* Parse and handles a command.
|
||||
*/
|
||||
struct cmd_results *handle_command(char *command);
|
||||
struct cmd_results *handle_command(char *command, enum command_context context);
|
||||
/**
|
||||
* Parse and handles a command during config file loading.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
enum secure_feature get_feature_policy(pid_t pid);
|
||||
enum command_context get_command_policy(const char *cmd);
|
||||
|
||||
const char *command_policy_str(enum command_context context);
|
||||
|
||||
struct feature_policy *alloc_feature_policy(const char *program);
|
||||
struct command_policy *alloc_command_policy(const char *command);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue