lkml.org 
[lkml]   [2000]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectCapabilities primer
Hi!

Let's assume that I want to write a small wrapper that runs apache with
UID foo and GID bar in a chroot jail with the capability to bind to a
port < 80.

Thus, I need a way to start a process with UID foo and
cap_net_bind_service, right?

There are packages to do this, but

- suexec always says "permission denied"
- compartment only allows capabilities on uid 0 processes.
The documentation says that "this will change with 2.4.0".
I am using 2.4.0-test2.

Um, what now? The capability FAQ recommends that I edit the kernel
sources to give /sbin/init the cap_setcap capability. I don't want to
give all processes this capability and I don't have a special init, so
this does not fix anything.

Do I fail to understand something here? I thought the was the very
reasons why capabilities were implemented in the first place? We had
securelevel for the other use case.

But then, maybe I'm just too dumb and need some cut-and-paste examples
on how to use capabilities for something useful. ;-) Please go ahead
and email them to me.

Felix

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.036 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site