public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* request: capabilities that allow users to drop privileges further
@ 2003-12-15 21:39 Felix von Leitner
  2003-12-15 22:10 ` Richard B. Johnson
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Felix von Leitner @ 2003-12-15 21:39 UTC (permalink / raw)
  To: linux-kernel

I would like to be able to drop capabilities that every normal user has,
so that network servers can limit the impact of possible future security
problems further.  For example, I want my non-cgi web server to be able
to drop the capabilities to

  * fork
  * execve
  * ptrace
  * load kernel modules
  * mknod
  * write to the file system

and I would like to modify my smtpd to not be able to

  * fork
  * execve
  * ptrace
  * load kernel modules
  * mknod

I can kludge around some of these, for example I can disable fork with
resource limits, and I can limit writing to the file system with chroot
and proper permissions in the file systems, but I'm not aware of a way
to disable ptrace for example, or pthread_create.

I know that there are patches to provide an extended "jail" chroot
support, but being able to drop capabilities like this would be a more
general solution.

Felix

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

end of thread, other threads:[~2003-12-17  1:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-15 21:39 request: capabilities that allow users to drop privileges further Felix von Leitner
2003-12-15 22:10 ` Richard B. Johnson
2003-12-15 22:55   ` Christian Borntraeger
2003-12-16 14:08   ` Martin Waitz
2003-12-15 22:34 ` Christian Borntraeger
2003-12-15 22:48 ` Chris Wright
2003-12-16 14:13   ` Martin Waitz
2003-12-17  1:30   ` Felix von Leitner
2003-12-17  1:41     ` Chris Wright
2003-12-16 13:27 ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox