[lkml]   [2002]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Posix capabilities
See my "capwrap" module:

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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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