From: Andries Brouwer <aebr@win.tue.nl>
To: Alessandro Sappia <a.sappia@ngi.it>
Cc: linux-kernel@vger.kernel.org
Subject: Re: chvt issue
Date: Mon, 24 Jan 2005 09:14:49 +0100 [thread overview]
Message-ID: <20050124081449.GA2650@pclin040.win.tue.nl> (raw)
In-Reply-To: <41F442B0.80900@ngi.it>
On Mon, Jan 24, 2005 at 01:34:56AM +0100, Alessandro Sappia wrote:
> I was reading vt driver
> and I saw
> /*
> * To have permissions to do most of the vt ioctls, we either have
> * to be the owner of the tty, or have CAP_SYS_TTY_CONFIG.
> */
> perm = 0;
> if (current->signal->tty == tty || capable(CAP_SYS_TTY_CONFIG))
> perm = 1;
>
> (lines 382-388 - drivers/char/vt_ioctl.c)
>
> After reading the comment I thinked I can change vt
> from one of my own to another one of mine.
Yes, the comment. But you should read the code instead.
next prev parent reply other threads:[~2005-01-24 8:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-24 0:34 Alessandro Sappia
2005-01-24 8:14 ` Andries Brouwer [this message]
2005-01-24 10:56 ` Toon van der Pas
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=20050124081449.GA2650@pclin040.win.tue.nl \
--to=aebr@win.tue.nl \
--cc=a.sappia@ngi.it \
--cc=linux-kernel@vger.kernel.org \
/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®