diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-11-27 10:50:47 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-11-27 10:50:47 +0000 |
commit | cd218bdd24c1df03d7dfe3b8b6c939b5fb4af640 (patch) | |
tree | 2de0377be5e023085f13c11e87d9ca223dc542b4 /packages/keylaunch/keylaunch-conf/80chvt-SUID | |
parent | 9b34dcde2a80218d107711d403fcfb5d8a1d62f7 (diff) | |
parent | 37dd0368bfdbb8b3680b8158d6e4d7bef646ad7f (diff) |
merge of '2ea9f4ae40e1a9b07744e81b924d464d9e450aba'
and 'be33ed116b217c668a13a0dae151271036541f73'
Diffstat (limited to 'packages/keylaunch/keylaunch-conf/80chvt-SUID')
-rw-r--r-- | packages/keylaunch/keylaunch-conf/80chvt-SUID | 25 |
1 files changed, 25 insertions, 0 deletions
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 <devel@hentges.net> (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 |