Re: [OLPC Security] SuperUser permission for the Driver??

2008-06-26 Thread Jay Sulzberger


On Thu, 26 Jun 2008, Deepak Saxena wrote:

 On Jun 25 2008, at 14:01, Carl-Daniel Hailfinger was caught saying:
 On 25.06.2008 08:07, Michael Stone wrote:
 We have an activity that wants superuser privilege in order to poke
 kernel memory.


 Hello? Please take the poor activity out back and shoot it. No activity
 has any business poking kernel memory.

 What if I replace Michael's statement with some specific use cases:

 - An activity requires a specific device driver module to be (un)loaded
  to properly function and loading this driver requires su privilege.

 or:

 - An activity requires a device to switch operation modes and that
  operation mode is configured via a sysfs file. The file is poked
  by a library API, but it requires su privilege to do so.

 I agree with Paul that we need to have a solution to these
 cases iff we want to support running arbitrary software and
 hw combinations on the XO. The other option is to limit the
 scope of the system to a very specific set of sw and hw,
 treating the XO as embedded education appliance instead of
 a general-purpose laptop device, which I don't think
 we want to do.

It can be a general purpose laptop.  And we need not surrender
our common sense: if we want the thing to be better, it will have
to be different.  In particular, it cannot have kernel modules
promiscuously loaded and unloaded.  Thus not all software will
run on the laptop.  But that is already the case for the most
widely distributed home systems: a Microsoft program will not run
on GNU/Linux, an Apple program will not run on a Microsoft OS,
etc..


 I don't have any immediate answers to any of Michael's questions
 but I think looking at how the standard ditros deal with this
 would be a starting point.

 ~Deepak

The usual free Unices' security apparatus is ludicrously
inadequate.  The XO system should be much better.

oo--JS.



 -- 
 Deepak Saxena [EMAIL PROTECTED]
 ___
 Security mailing list
 [EMAIL PROTECTED]
 http://lists.laptop.org/listinfo/security


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [OLPC Security] SuperUser permission for the Driver??

2008-06-26 Thread Jay Sulzberger


On Thu, 26 Jun 2008, Benjamin M. Schwartz wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Deepak Saxena wrote:
 | I agree with Paul that we need to have a solution to these
 | cases iff we want to support running arbitrary software and
 | hw combinations on the XO. The other option is to limit the
 | scope of the system to a very specific set of sw and hw,
 | treating the XO as embedded education appliance instead of
 | a general-purpose laptop device, which I don't think
 | we want to do.

 That is _precisely_ what I want to do.

 OLPC's goal is to distribute XOs to the poorest children in the world.
 That means that in the category of electronics, the great majority will
 have the XO and nothing else.  Peripherals are a rarity, an edge case.

 There is a planned design to allow the user to grant extra privileges to
 different Activities, but those privileges will probably never extend to
 loading arbitrary kernel modules.  I have no problem declaring that anyone
 who is modifying the kernel is a developer, and should therefore get a
 devkey and call modprobe themselves.

 - --Ben

Yes.

oo--JS.


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkhjw/AACgkQUJT6e6HFtqQlSgCfbDujhumR3cmtT/MpEH8qQidC
 cYEAn0atipCHDcuYjAIvS/E6IpxD0Ktb
 =WJse
 -END PGP SIGNATURE-
 ___
 Security mailing list
 [EMAIL PROTECTED]
 http://lists.laptop.org/listinfo/security


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel