aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway-security.7.txt
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-12-03 12:38:42 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-12-03 12:38:42 -0500
commite7a764fdf450a8259ddbc17446dd720fa1157b44 (patch)
treee0ec272832e88e6c8d92719efa70c6749452daff /sway/sway-security.7.txt
parentFix use-after-free (diff)
downloadsway-e7a764fdf450a8259ddbc17446dd720fa1157b44.tar.gz
sway-e7a764fdf450a8259ddbc17446dd720fa1157b44.tar.zst
sway-e7a764fdf450a8259ddbc17446dd720fa1157b44.zip
Disallow everything by default
And update config.d/security to configure sane defaults
Diffstat (limited to 'sway/sway-security.7.txt')
-rw-r--r--sway/sway-security.7.txt19
1 files changed, 14 insertions, 5 deletions
diff --git a/sway/sway-security.7.txt b/sway/sway-security.7.txt
index 53c7b876..9a2581b1 100644
--- a/sway/sway-security.7.txt
+++ b/sway/sway-security.7.txt
@@ -124,8 +124,14 @@ To work correctly, sway's own programs require the following permissions:
124 124
125- swaybg: background 125- swaybg: background
126- swaylock: lock, keyboard 126- swaylock: lock, keyboard
127- swaybar: panel, mouse 127- swaybar: panel, mouse, ipc
128- swaygrab: screenshot 128- swaygrab: screenshot, ipc
129
130When you first declare a policy for an executable, it will inherit the default
131policy. Further changes to the default policy will not retroactively affect which
132permissions an earlier policy inherits. You must explicitly reject any features
133from the default policy that you do not want an executable to receive permission
134for.
129 135
130Command policies 136Command policies
131---------------- 137----------------
@@ -145,6 +151,9 @@ contexts you can control are:
145**criteria**:: 151**criteria**::
146 Can be run when evaluating window criteria. 152 Can be run when evaluating window criteria.
147 153
154**all**::
155 Shorthand for granting permission in all contexts.
156
148By default a command is allowed to execute in any context. To configure this, open 157By default a command is allowed to execute in any context. To configure this, open
149a commands block and fill it with policies: 158a commands block and fill it with policies:
150 159
@@ -160,13 +169,13 @@ binding and critiera:
160 focus binding criteria 169 focus binding criteria
161 } 170 }
162 171
172Setting a command policy overwrites any previous policy that was in place.
173
163IPC policies 174IPC policies
164------------ 175------------
165 176
166By default all programs can connect to IPC for backwards compatability with i3. 177You may whitelist IPC access like so:
167However, you can whitelist IPC access like so:
168 178
169 reject * ipc
170 permit /usr/bin/swaybar ipc 179 permit /usr/bin/swaybar ipc
171 permit /usr/bin/swaygrab ipc 180 permit /usr/bin/swaygrab ipc
172 # etc 181 # etc