aboutsummaryrefslogtreecommitdiffstats
path: root/security.d
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-02-19 02:36:36 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2017-02-19 02:56:59 -0500
commit7dbecdde95d1f309d8fdd02fe480dc3fbef7c7c1 (patch)
tree303b3632a576fac27835523872f8286adbd35d9b /security.d
parentMerge pull request #1075 from zandrmartin/floating-positioning (diff)
downloadsway-7dbecdde95d1f309d8fdd02fe480dc3fbef7c7c1.tar.gz
sway-7dbecdde95d1f309d8fdd02fe480dc3fbef7c7c1.tar.zst
sway-7dbecdde95d1f309d8fdd02fe480dc3fbef7c7c1.zip
Revise IPC security configuration
Diffstat (limited to 'security.d')
-rw-r--r--security.d/00-defaults.in47
1 files changed, 47 insertions, 0 deletions
diff --git a/security.d/00-defaults.in b/security.d/00-defaults.in
new file mode 100644
index 00000000..99859edd
--- /dev/null
+++ b/security.d/00-defaults.in
@@ -0,0 +1,47 @@
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# This file should live at __SYSCONFDIR__/sway/security and will be
9# automatically read by sway.
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
34ipc __PREFIX__/bin/swaygrab {
35 outputs enabled
36 tree enabled
37}
38
39# Limits the contexts from which certain commands are permitted
40commands {
41 * all
42
43 fullscreen binding criteria
44 bindsym config
45 exit binding
46 kill binding
47}