mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Myrddin Ambrosius <imipak@yahoo.com>
To: root@chaos.analogic.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Drivers, Hardware, and their relationship to Bagels.
Date: Tue, 18 Jun 2002 11:35:15 -0700 (PDT)	[thread overview]
Message-ID: <20020618183515.13963.qmail@web12302.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.3.95.1020618111156.3808B-100000@chaos.analogic.com>


--- "Richard B. Johnson" <root@chaos.analogic.com>
wrote:
> No hole you can drive through. A process with a UID
> of 0 and
> a GID of 0 can do anything it wants. It can execute
> iopl(3)
> and set an I/O permission level that allows it to
> directly access
> hardware I/O ports, etc. It can also turn off
> interrupts. Basically,
> it can do anything, since such a process can also
> memory-map anything.

But since it is the kernel that permits that (by
definition, since somebody has to check the UID & GID!
:) then the kernel can also restrict that.

The system admin account (UID/GID 0) could just as
easily access a virtual memory map, virtual I/O ports,
etc, with the kernel then handling how that maps onto
the physical world, and even IF it does.

> Users are not supposed to execute as 'root'. Also,
> only certain
> priviliged tasks execute as root. Ignore that this

The problem with priviliged tasks is that (in general)
they run with absolute privilige. Sure, some of these
priviliges can be turned off, but if /dev/mem is
reachable, then they can be turned back on again,
precicely for the reasons you give.

I guess that my understanding for having kernels the
size and complexity of Linux, as opposed to, say,
CP/M, is that the kernel can reduce the need for
userspace apps to have dangerous powers.


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

  reply	other threads:[~2002-06-18 18:35 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-22 18:03 Linux crypto? Myrddin Ambrosius
2002-05-22 18:38 ` Alan Cox
2002-05-23  8:45   ` Trond Myklebust
2002-05-23 21:46   ` Tobias Ringstrom
2002-05-24 14:58     ` Alan Cox
2002-05-24 17:32       ` Thomas 'Dent' Mirlacher
2002-05-24 17:21         ` David S. Miller
2002-05-24 17:42           ` Thomas 'Dent' Mirlacher
2002-05-24 17:31             ` David S. Miller
2002-05-24 17:57               ` Thomas 'Dent' Mirlacher
2002-05-24 19:18                 ` Myrddin Ambrosius
2002-05-25  4:01                   ` Henrique de Moraes Holschuh
2002-05-24 18:41             ` Alan Cox
2002-05-24 18:30               ` Thomas 'Dent' Mirlacher
2002-05-24 18:55                 ` Alan Cox
2002-05-24 18:50                   ` Sandy Harris
2002-05-29  0:24                   ` Petro
2002-05-24 20:17                 ` Myrddin Ambrosius
2002-05-24 21:25                   ` Thomas 'Dent' Mirlacher
2002-05-24 18:45               ` Herman Oosthuysen
2002-05-24 21:49           ` Xavier Bestel
2002-05-24 21:43             ` David S. Miller
2002-05-26 10:06               ` Jakob Østergaard
2002-06-18 15:06             ` Drivers, Hardware, and their relationship to Bagels Myrddin Ambrosius
2002-06-18 15:01               ` Zwane Mwaikambo
2002-06-18 15:26               ` Richard B. Johnson
2002-06-18 18:35                 ` Myrddin Ambrosius [this message]
2002-06-18 19:13                   ` Richard B. Johnson
2002-06-19  2:11                   ` Stevie O
2002-06-18 16:01               ` Xavier Bestel
2002-06-18 18:23                 ` Myrddin Ambrosius

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=20020618183515.13963.qmail@web12302.mail.yahoo.com \
    --to=imipak@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.com \
    /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®