mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: simone.weiss@fau.de
To: "Greg KH" <gregkh@linuxfoundation.org>
Cc: helene.gsaenger@studium.fau.de, jslaby@suse.cz,
	dh.herrmann@gmail.com, daniel.vetter@ffwll.ch,
	peter@hurleysoftware.com, tiwai@suse.de, mark.d.rustad@intel.com,
	joe@perches.com, linux-kernel@vger.kernel.org,
	linux-kernel@i4.cs.fau.de, simone.weiss@fau.de,
	helene.gsaenger@studium.fau.de
Subject: Re: questions to planned lock-functionality for vts
Date: Mon, 23 Mar 2015 11:29:25 +0100	[thread overview]
Message-ID: <1407ab9cdf5fc07ef39080926b3963bb.squirrel@faumail.uni-erlangen.de> (raw)
In-Reply-To: <20150322222337.GA28785@kroah.com>


> Wait, what's wrong with the existing functionality?

Userspace programms for screensavers can potentially be bypassed
- if my scrennsaver dies, for example by segfault, my screen is unlocked
- Redirection is only possible in Kernel, because a vt switch can only
  be prevented there
Also it would make the implementation of a Secure-Acess-Key possible
(could also redirect to VT12)

>> It should behave like:
>> If user A owns e.g. vt2, A is able to lock vt2 and unlock it again.
>> This is realized by a userspace programm that calls ioctl, which the
>> above
>> mentioned added cases VT_LOCK and VT_UNLOCK.
>> Another user(that is not root) wouldn't be allowed to un-/lock vt2.
>> If anybody wants to change to a looked VT he gets redirected to vt12.
>> At vt12 a userspace programm (to unlock a VT) would run and ask for
>> loginname and password, if it is the password from the user that owns
>> the
>> locked terminal or from root.
>> The VT gets unlocked and the user gets directed to his terminal.
>
> Why would you want to put all of that into the kernel?

We don't want to put all of that in the kernel, the above describes only
the interaction with a userspace programm.
For the kernel it would only mean that if a vt is locked
it wouldn't allow to switch to this vt and instead switch to VT12.

Regards,
Simone Weiss


  reply	other threads:[~2015-03-23 10:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-22 22:03 helene.gsaenger
2015-03-22 22:23 ` Greg KH
2015-03-23 10:29   ` simone.weiss [this message]
2015-03-23 12:29     ` David Herrmann
2015-03-23 13:02       ` simone.weiss
2015-03-23 13:26         ` David Herrmann
2015-03-23 14:48           ` simone.weiss
2015-03-23 14:58             ` David Herrmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1407ab9cdf5fc07ef39080926b3963bb.squirrel@faumail.uni-erlangen.de \
    --to=simone.weiss@fau.de \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dh.herrmann@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=helene.gsaenger@studium.fau.de \
    --cc=joe@perches.com \
    --cc=jslaby@suse.cz \
    --cc=linux-kernel@i4.cs.fau.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.d.rustad@intel.com \
    --cc=peter@hurleysoftware.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®