aboutsummaryrefslogtreecommitdiff
path: root/config.d/security.in
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-12-04 08:30:40 -0500
committerGitHub <noreply@github.com>2016-12-04 08:30:40 -0500
commit5778c59a2f302071fd781683db57a97b51396c87 (patch)
treee0ec272832e88e6c8d92719efa70c6749452daff /config.d/security.in
parentcd5694fdb5bc9beb575902ea57d037833ad8e85c (diff)
parente7a764fdf450a8259ddbc17446dd720fa1157b44 (diff)
downloadsway-5778c59a2f302071fd781683db57a97b51396c87.tar.xz
Merge pull request #981 from SirCmpwn/security
Security features
Diffstat (limited to 'config.d/security.in')
-rw-r--r--config.d/security.in52
1 files changed, 52 insertions, 0 deletions
diff --git a/config.d/security.in b/config.d/security.in
new file mode 100644
index 00000000..47592b05
--- /dev/null
+++ b/config.d/security.in
@@ -0,0 +1,52 @@
+# sway security rules
+#
+# Read sway-security(7) for details on how to secure your sway install.
+#
+# You MUST read this man page if you intend to attempt to secure your sway
+# installation.
+
+# Configures which programs are allowed to use which sway features
+permit * fullscreen keyboard mouse ipc
+permit __PREFIX__/bin/swaylock lock
+permit __PREFIX__/bin/swaybar panel
+permit __PREFIX__/bin/swaybg background
+permit __PREFIX__/bin/swaygrab screenshot
+
+# Configures which IPC features are enabled
+ipc {
+ command enabled
+ outputs enabled
+ workspaces enabled
+ tree enabled
+ marks enabled
+ bar-config enabled
+ inputs enabled
+
+ events {
+ workspace enabled
+ output enabled
+ mode enabled
+ window enabled
+ modifier enabled
+ input enabled
+ binding disabled
+ }
+}
+
+# Limits the contexts from which certain commands are permitted
+commands {
+ * all
+
+ fullscreen binding criteria
+ bindsym config
+ exit binding
+ kill binding
+
+ # You should not change these unless you know what you're doing - it could
+ # cripple your security
+ reload binding
+ restart binding
+ permit config
+ reject config
+ ipc config
+}