summarylogtreecommitdiffstats
path: root/00-screen-nosuid.hook
diff options
context:
space:
mode:
Diffstat (limited to '00-screen-nosuid.hook')
-rw-r--r--00-screen-nosuid.hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/00-screen-nosuid.hook b/00-screen-nosuid.hook
new file mode 100644
index 000000000000..51908cb33f83
--- /dev/null
+++ b/00-screen-nosuid.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = usr/bin/screen-*
+
+[Action]
+Description = Removing suid bit on screen...
+When = PostTransaction
+Exec = /bin/sh -c '/usr/bin/xargs chmod u-s; sed -i "s/0755/0777/" /usr/lib/tmpfiles.d/screen.conf'
+NeedsTargets