From 5b56ea8960f47f11fd7923abeb938fc57c84942e Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 25 Nov 2007 22:43:28 +0000 Subject: keylaunch 2.0.10: Separate a keylaunch, a generic X key binding utility, from random crap aka device-specific (mis)configs and hacks. --- packages/keylaunch/keylaunch-conf/80chvt-SUID | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 packages/keylaunch/keylaunch-conf/80chvt-SUID (limited to 'packages/keylaunch/keylaunch-conf/80chvt-SUID') diff --git a/packages/keylaunch/keylaunch-conf/80chvt-SUID b/packages/keylaunch/keylaunch-conf/80chvt-SUID new file mode 100644 index 0000000000..e3b4efef5d --- /dev/null +++ b/packages/keylaunch/keylaunch-conf/80chvt-SUID @@ -0,0 +1,25 @@ +#! /bin/sh +# +# Copyright Matthias Hentges (c) 2006 +# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license) +# +# Filename: chvt-SUID.sh +# Date: 28-May-06 + + +# +# Sets the SUID bit on chvt to allow changing to the VT from inside X by +# any user. Since a SUID binary still is a security risk, we chmod only +# when keylaunch is used and not by default. +# + +for target in /usr/bin/chvt.console-tools +do + if test "`ls -l "$target" | awk '{print $1}'|cut -c 2-4`" != "rws" + then + echo "Making [$target] SUID root..." + chmod u+s "$target" + else + echo "Ignoring [$target]" + fi +done -- cgit v1.2.3