mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: simone.weiss@fau.de
To: "David Herrmann" <dh.herrmann@gmail.com>
Cc: simone.weiss@fau.de, "Greg KH" <gregkh@linuxfoundation.org>,
	helene.gsaenger@studium.fau.de, "Jiri Slaby" <jslaby@suse.cz>,
	"Daniel Vetter" <daniel.vetter@ffwll.ch>,
	"Peter Hurley" <peter@hurleysoftware.com>,
	"Takashi Iwai" <tiwai@suse.de>,
	mark.d.rustad@intel.com, "Joe Perches" <joe@perches.com>,
	"linux-kernel" <linux-kernel@vger.kernel.org>,
	linux-kernel@i4.cs.fau.de
Subject: Re: questions to planned lock-functionality for vts
Date: Mon, 23 Mar 2015 15:48:27 +0100	[thread overview]
Message-ID: <602820c2be8da8780c579c47b40d3aa6.squirrel@faumail.uni-erlangen.de> (raw)
In-Reply-To: <CANq1E4TOV-jOrAti3KPaBnSfEEJXW96--Vj1A6_S=BUVxZ77qg@mail.gmail.com>

> Hi
>
> On Mon, Mar 23, 2015 at 2:02 PM,  <simone.weiss@fau.de> wrote:
>> hello
>>
>>> By moving these calls into the kernel, you don't make them necessarily
>>> fail-safe. This can all be implemented in user-space. By switching to
>>> a dedicated VT (say, VT12) and running VT_SETMODE+VT_PROCESS, you lock
>>> the machine. You can now implement your screensaver. If you run a
>>> spawner-process, you're even safe if your screensaver crashes.
>>
>> Yes but this would lock the whole machine. Our plan is to make it
>> posible
>> to lock a specific set of VTs - owned by the user who wants to lock.
>>
>> e.g if user A locked all his VTs user B would still be able to switch to
>> his VTs.
>
> Correct. But if you want to support locking individual sessions (or
> VTs), why not look at what is done with upcoming Wayland compositors,
> which implement this in the compositor itself? That is, the session
> tracks whether it's locked and shows a lock-screen if so. This can be
> done on text-VTs the same as on graphical ones.
>
> I mean, why does the kernel need to know VT state which is inherently
> defined the application running on it?
>
> Putting this in the kernel is the easier way out, given the historical
> setup of gettys on VTs. But I wonder why it's supposed to be the
> better way?
>
> Thanks
> David
>
Hello,

Our approch would be more universal, it wouldn't only work when wayland is
used, but as well on servers and systems that are not going to use
wayland.
And wayland doesn't seem to be ready soon.

Regards
Simone Weiss


  reply	other threads:[~2015-03-23 14:48 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
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 [this message]
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=602820c2be8da8780c579c47b40d3aa6.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®