All of lore.kernel.org
 help / color / mirror / Atom feed
* Posix capabilities
@ 2002-10-16 15:44 Stefan Schwandter
  2002-10-16 16:22 ` Bosko Radivojevic
  2002-10-17  3:26 ` Theodore Ts'o
  0 siblings, 2 replies; 19+ messages in thread
From: Stefan Schwandter @ 2002-10-16 15:44 UTC (permalink / raw)
  To: linux-kernel


Hello,


I saw capabilities and acl patches for ext2/3 enter -mm. Is it possible
now to give an executable (that lives on an ext2/ext3 fs) the necessary
rights to use SCHED_FIFO without being setuid root? Could someone give
me some pointers for these topics (capabilities support in linux, acl)?


regards, Stefan
-- 
----> http://www.shockfrosted.org

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Posix capabilities
@ 2002-10-17 20:43 Neil Schemenauer
  2002-10-20 14:18 ` Pavel Machek
  0 siblings, 1 reply; 19+ messages in thread
From: Neil Schemenauer @ 2002-10-17 20:43 UTC (permalink / raw)
  To: swan; +Cc: linux-kernel

See my "capwrap" module:

    http://arctrix.com/nas/linux/capwrap.tar.gz

To allow SCHED_FIFO you would need to give the process the CAP_SYS_NICE
capability.  CAP_SYS_NICE is bit 23 (800000 in hex).  Create a text file
with the following line and make it root suid:

    &/usr/bin/someprogram 800000

If the capwrap module is loaded the kernel will recognize the file as a
"capability wrapper" and grant the specified capabilities to the
executable while running with the uid of the current user.

The capwrap module isn't fancy but is works and is simple.  It doesn't
require any special filesystem.  Since I'm no kernel hacker I don't know
if it's suitable for inclusion in the main tree.  I would appreciate any
comments people have regarding it.

  Neil

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

end of thread, other threads:[~2002-10-27 13:40 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-16 15:44 Posix capabilities Stefan Schwandter
2002-10-16 16:22 ` Bosko Radivojevic
2002-10-17  3:26 ` Theodore Ts'o
2002-10-17  4:00   ` GrandMasterLee
2002-10-17 13:22     ` Horst von Brand
2002-10-18  6:38       ` GrandMasterLee
2002-10-17 10:37   ` Olaf Dietsche
2002-10-17 11:02     ` Andreas Gruenbacher
2002-10-17 12:12       ` Theodore Ts'o
2002-10-17 15:36         ` Olaf Dietsche
2002-10-17 17:17           ` Alex Riesen
2002-10-18 16:13         ` Rogier Wolff
2002-10-17 13:40     ` Henning P. Schmiedehausen
2002-10-17 12:05   ` Stefan Schwandter
2002-10-17 12:20     ` Theodore Ts'o
2002-10-20 14:16       ` Pavel Machek
2002-10-27 13:46         ` Andreas Gruenbacher
  -- strict thread matches above, loose matches on Subject: below --
2002-10-17 20:43 Neil Schemenauer
2002-10-20 14:18 ` Pavel Machek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.