summaryrefslogtreecommitdiffstats
path: root/security.d/00-defaults.in
diff options
context:
space:
mode:
Diffstat (limited to 'security.d/00-defaults.in')
-rw-r--r--security.d/00-defaults.in52
1 files changed, 52 insertions, 0 deletions
diff --git a/security.d/00-defaults.in b/security.d/00-defaults.in
new file mode 100644
index 00000000..34831c65
--- /dev/null
+++ b/security.d/00-defaults.in
@@ -0,0 +1,52 @@
1# sway security rules
2#
3# Read sway-security(7) for details on how to secure your sway install.
4#
5# You MUST read this man page if you intend to attempt to secure your sway
6# installation.
7#
8# DO NOT CHANGE THIS FILE. Override these defaults by writing new files in
9# __SYSCONFDIR__/sway/security.d/*
10
11# Configures enabled compositor features for specific programs
12permit * fullscreen keyboard mouse
13permit __PREFIX__/bin/swaylock lock
14permit __PREFIX__/bin/swaybg background
15permit __PREFIX__/bin/swaygrab screenshot
16permit __PREFIX__/bin/swaybar panel
17
18# Configures enabled IPC features for specific programs
19ipc __PREFIX__/bin/swaymsg {
20 * enabled
21
22 events {
23 * disabled
24 }
25}
26
27ipc __PREFIX__/bin/swaybar {
28 bar-config enabled
29 outputs enabled
30 workspaces enabled
31 command enabled
32
33 events {
34 workspace enabled
35 mode enabled
36 }
37}
38
39ipc __PREFIX__/bin/swaygrab {
40 outputs enabled
41 tree enabled
42}
43
44# Limits the contexts from which certain commands are permitted
45commands {
46 * all
47
48 fullscreen binding criteria
49 bindsym config
50 exit binding
51 kill binding
52}