linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [PATCH] Single user linux
@ 2001-04-24 16:55 Torrey Hoffman
  0 siblings, 0 replies; 121+ messages in thread
From: Torrey Hoffman @ 2001-04-24 16:55 UTC (permalink / raw)
  To: 'imel96@trustix.co.id'; +Cc: linux-kernel

> think about personal devices. something like the nokia communicator.
> a system security passwd is acceptable, but that's it. no those-
> device-user would like to know about user account, file ownership,
> etc. they just want to use it.

If you are making a personal device, like an "appliance", there is no 
need to patch the kernel - at least not to remove the concept of users.  

Instead, change your startup scripts.  In that situation, you will have 
a custom application that is automatically started at boot and runs with
enough privileges to do whatever it needs.

The user never sees a login prompt.  If you want a Windows-95 style
setup for Linux, you can do that too - but don't run as root!  Just have
the startup scripts auto-login as an unprivileged user.

Kernel patches to do this are completely unnecessary, and a bad idea.

Permissions are important to have on an appliance-like system, as they 
can be used to help prevent the end user from accessing the guts of the 
system which should be off limits for them.


^ permalink raw reply	[flat|nested] 121+ messages in thread
[parent not found: <988158045.12859@whiskey.enposte.net>]
* Re: [PATCH] Single user linux
@ 2001-04-25 12:04 imel96
  2001-04-25 13:00 ` Leonid Mamtchenkov
                   ` (3 more replies)
  0 siblings, 4 replies; 121+ messages in thread
From: imel96 @ 2001-04-25 12:04 UTC (permalink / raw)
  To: Albert D. Cahalan; +Cc: Richard B. Johnson, Alexander Viro, linux-kernel

first, i think i owe you guys apology for didn't make myself
clear, which is going harder if you irritated.
even my subject went wrong, as the patch isn't really about
single user (which confuse some people).

for those who didn't read that patch, i #define capable(),
suser(), and fsuser() to 1. the implication is all users
will have root capabilities.

then i tried to bring up the single user thing to hear
opinions (not flames). and by that, i actually didn't mean
to have users share the same uid/gid 0. i know somebody
will need to differentiate user.

so when everybody suggested playing with login, getty, etc.
i know you have got the wrong idea. if i wanted to play
on user space, i'd rather use capset() to set all users
capability to "all cap". that's the perfect equivalent.

so the user space solution (capset()) works, but then came
the idea to optimize away. that's what blow everybody up.
don't get me wrong, i always agree with rik farrow when he
wrote in ;login: that we should build software with security
in mind.

but i also hate bloat. lets not go to arm devices, how about
a notebook. it's a personal thing, naturally to people who
doesn't know about computer, personal doesn't go with multi
user. by that i mean user with different capabilities, not
different persons.

i haven't catch up with all my mails, but my response to
some:
- linux is stable not only because security.
- linux was designed for multi-user, dos f.eks. is designed
  for personal use, so does epoc, palmos, mac, etc.
- i even use plan9 with kfs restrictions disabled sometimes,
  cause i don't have cpu server, auth server, etc.
- with that patch, people will still have authentication.
  so ssh for example, will still prevent illegal access, if
  you had an exploit you're screwed up anyway.
  sure httpd will give permission to everybody to browse
  a computer, but i don't think a notebook need to run it.

so i guess i deserve opinions instead of flames. the
approach is from personal use, not the usual server use.
if you think a server setup is best for all use just say so,
i'm listening.


> It would be far more interesting to rip out all trace of 
security.
> That would include the kernel memory access checking, 
parts of the
> task struct, filesystem and VFS code, and surely much 
more.

i did say it clearly that i have other changes which i know
won't be a clean patch (too many #ifdefs). f.eks. on my
computer i didn't even compile user.c in, i don't have
user_struct. filesystem and vfs code are affected by that
patch already. memory access is important of course.

> Then you can try to show a measurable performance 
difference.

nah, performance was never my consideration. i do save about
3kb from my zImage, but i'm not interested.


imel (writing from a
webmail)

----------------------------------------------------
This email was sent using http://webmail.cbn.net.id/



^ permalink raw reply	[flat|nested] 121+ messages in thread
* Re: [PATCH] Single user linux
@ 2001-04-25 18:34 Rick Hohensee
  2001-04-25 20:12 ` Markus Schaber
  0 siblings, 1 reply; 121+ messages in thread
From: Rick Hohensee @ 2001-04-25 18:34 UTC (permalink / raw)
  To: linux-kernel



imel96@trustix.co.id wrote:
> for those who didn't read that patch, i #define capable(),
> suser(), and fsuser() to 1. the implication is all users
> will have root capabilities.

How is that not single user?

I have been doing single-user oriented Linux/GNU/unix longer than anyone
I'm aware of with exactly that focus. The one trivial patch I do to the
kernel disgusts the core Linux developers for reasons unrelated to single
user.  cLIeNUX boots with 12 vt's logging in already as root. No kernel
molestation. (But stay tuned ;o) Rather than me contributing further to
the topic-skew, please have a browse at

	www.clienux.com


Rick Hohensee
cLIeNUX user 0

^ permalink raw reply	[flat|nested] 121+ messages in thread
* Re: [PATCH] Single user linux
@ 2001-04-25 20:58 Jesse Pollard
  0 siblings, 0 replies; 121+ messages in thread
From: Jesse Pollard @ 2001-04-25 20:58 UTC (permalink / raw)
  To: markus.schaber, linux-kernel

---------  Received message begins Here  ---------

> 
> On Wed, 25 Apr 2001, Rick Hohensee wrote:
> 
> > imel96@trustix.co.id wrote:
> > > for those who didn't read that patch, i #define capable(),
> > > suser(), and fsuser() to 1. the implication is all users
> > > will have root capabilities.
> >
> > How is that not single user?
> 
> Every user still has it's own account, means profile etc.

Until some user removes all the other users....
Or reads the other users mail....
Or changes the other users configuration....

-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil

Any opinions expressed are solely my own.

^ permalink raw reply	[flat|nested] 121+ messages in thread

end of thread, other threads:[~2001-04-27 20:07 UTC | newest]

Thread overview: 121+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Pine.LNX.4.33.0103181407520.1426-100000@mikeg.weiden.de>
2001-03-18 14:43 ` changing mm->mmap_sem (was: Re: system call for process information?) Rik van Riel
2001-03-18 18:13   ` Linus Torvalds
2001-04-24 11:44     ` [PATCH] Single user linux imel96
2001-04-24 12:04       ` Alexander Viro
2001-04-24 12:44         ` imel96
2001-04-24 12:58           ` Daniel Stone
2001-04-24 13:27             ` imel96
2001-04-24 13:38               ` Daniel Stone
2001-04-24 14:04                 ` problem found (was Re: [PATCH] Single user linux) imel96
2001-04-24 14:06                   ` Daniel Stone
2001-04-24 14:47                   ` Xavier Bestel
2001-04-25 18:13                   ` Paul Jakma
2001-04-25  0:01                 ` [PATCH] Single user linux Aaron Lehmann
2001-04-25  0:07                   ` Daniel Stone
2001-04-25  0:16                     ` Alan Cox
2001-04-25  0:34                       ` Daniel Stone
2001-04-25  0:52                         ` Gerhard Mack
2001-04-25  7:46                           ` Ronald Bultje
2001-04-25 14:17                             ` Disconnect
2001-04-27 20:06                               ` Jim Gettys
2001-04-26 19:41                           ` Pavel Machek
2001-04-27 19:00                             ` Erik Mouw
2001-04-27 13:12                         ` Robert Varga
2001-04-27 12:42                           ` [OT] linux on pda was " Collectively Unconscious
2001-04-27 19:05                             ` Erik Mouw
2001-04-27 13:34                           ` Daniel Stone
2001-04-25  0:20                     ` Aaron Lehmann
2001-04-25  0:32                       ` Daniel Stone
2001-04-25  0:35                         ` Aaron Lehmann
2001-04-25  0:43                           ` Daniel Stone
2001-04-25  7:45                         ` Alan Cox
2001-04-25  7:55                           ` Daniel Stone
2001-04-25 15:07                           ` Jonathan Lundell
2001-04-25 14:42                         ` Jordan Crouse
2001-04-26 19:47                         ` Pavel Machek
2001-04-25  1:12                       ` Disconnect
2001-04-25  7:04                   ` Mike A. Harris
2001-04-25  0:26                 ` Jonathan Lundell
2001-04-25  7:13                   ` Mike A. Harris
2001-04-26 19:54                     ` agenda & vtech helio [was Re: [PATCH] Single user linux] Pavel Machek
2001-04-26 19:35                 ` [PATCH] Single user linux Pavel Machek
2001-04-27 14:26                   ` Daniel Stone
2001-04-24 13:40               ` Mohammad A. Haque
2001-04-25  5:29               ` Ben Ford
2001-04-24 12:59           ` Alexander Viro
2001-04-24 13:02           ` Sean Hunter
2001-04-24 13:03           ` Roland Seuhs
2001-04-24 13:50             ` Mike A. Harris
2001-04-24 13:13           ` Richard B. Johnson
2001-04-24 13:37             ` imel96
2001-04-25  7:57               ` Helge Hafting
2001-04-25 10:42               ` Albert D. Cahalan
2001-04-24 14:03           ` Alan Cox
2001-04-24 14:10             ` imel96
2001-04-24 14:27               ` Mike A. Harris
2001-04-24 14:30               ` Alan Cox
2001-04-24 15:07             ` Jeremy Jackson
2001-04-24 17:43           ` Russell King
2001-04-24 18:37           ` Garett Spencley
2001-04-24 12:51       ` Mohammad A. Haque
2001-04-24 13:07         ` Alexander Viro
2001-04-24 12:52       ` [OFFTOPIC] " Mike A. Harris
2001-04-24 13:18         ` Tomas Telensky
2001-04-24 13:34           ` Mohammad A. Haque
2001-04-24 13:40             ` Alexander Viro
2001-04-24 14:18               ` Alan Cox
2001-04-24 14:22                 ` Alexander Viro
2001-04-24 14:37                   ` Alan Cox
2001-04-24 14:41                     ` Alexander Viro
2001-04-24 14:47                     ` CaT
2001-04-24 14:59                       ` Alan Cox
2001-04-24 15:11                         ` CaT
2001-04-24 15:53                           ` Alan Cox
2001-04-24 16:04                             ` Alex Riesen
2001-04-24 17:02                             ` Jesse Pollard
2001-04-24 17:16                               ` Alan Cox
2001-04-24 17:30                             ` Markus Schaber
2001-04-24 14:30                 ` Gábor Lénárt
2001-04-24 14:49                   ` Pjotr Kourzanoff
2001-04-24 14:56                     ` Gábor Lénárt
2001-04-24 14:59                     ` CaT
2001-04-24 15:17                       ` Pjotr Kourzanoff
2001-04-24 14:50                 ` Gerhard Mack
2001-04-24 15:00                   ` Alan Cox
2001-04-24 13:37           ` Alexander Viro
2001-04-24 13:52             ` Tomas Telensky
2001-04-24 14:07               ` Alexander Viro
2001-04-24 19:03           ` David Gómez 
2001-04-25  5:26           ` Ben Ford
2001-04-24 17:55       ` J Sloan
2001-04-24 17:06     ` Stephen Satchell
2001-04-24 16:55 Torrey Hoffman
     [not found] <988158045.12859@whiskey.enposte.net>
2001-04-25  0:48 ` Stuart Lynne
2001-04-25 12:04 imel96
2001-04-25 13:00 ` Leonid Mamtchenkov
2001-04-25 13:07 ` Gerhard Mack
2001-04-25 21:30   ` John Cavan
2001-04-26 12:11     ` imel96
2001-04-26 12:24       ` David Weinehall
2001-04-26 12:36         ` Mohammad A. Haque
2001-04-26 12:33       ` Mohammad A. Haque
2001-04-26 12:34       ` Rasmus Bøg Hansen
2001-04-26 14:03         ` imel96
2001-04-26 17:00           ` Ken Brownfield
2001-04-26 17:22             ` Ian Stirling
2001-04-26 19:40               ` Mohammad A. Haque
2001-04-26 20:18                 ` Ian Stirling
2001-04-26 20:47           ` Rasmus Bøg Hansen
2001-04-27  7:08           ` Albert D. Cahalan
2001-04-26 17:16         ` Stephen Satchell
2001-04-26 18:11       ` John Cavan
2001-04-27  9:30         ` imel96
2001-04-25 13:41 ` Mohammad A. Haque
2001-04-26  9:46 ` Helge Hafting
2001-04-26 11:31   ` imel96
2001-04-26 13:47     ` Ronald Bultje
2001-04-27  9:31     ` Helge Hafting
2001-04-27 13:45       ` Mohammad A. Haque
2001-04-25 18:34 Rick Hohensee
2001-04-25 20:12 ` Markus Schaber
2001-04-25 20:58 Jesse Pollard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).