https://bugzilla.novell.com/show_bug.cgi?id=394548
User tonyj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=394548#c5
--- Comment #5 from Tony Jones 2008-07-15 15:42:52 MDT ---
This bug has been in NEEDINFO for a while. This isn't very good!!!!
Comment "When a process runs with EUID == 0 and UID != 0, and attempts to sets
its scheduling mode to SCHED_FIFO, the sched_setscheduler() call fails with
errno set to EPERM" does not reproduce for me, see below.
I'm going to close this unless I hear otherwise.
$ ls -l test_child test_parent
-rwsr-sr-x 1 root users 11521 2008-07-15 14:45 test_child
-rwxr-xr-x 1 tonyj users 11487 2008-07-15 14:45 test_parent
$ id
uid=1000(tonyj) gid=100(users) groups=16(dialout),33(video),100(users)
tonyj@linux-h94x:~/foo> ./test_parent
[3397] test running with uid=1000, euid=0
[1] success
$ ls -l test_child test_parent
-rwxr-xr-x 1 root users 11521 2008-07-15 14:45 test_child
-rwxr-xr-x 1 tonyj users 11487 2008-07-15 14:45 test_parent
$ id
uid=1000(tonyj) gid=100(users) groups=16(dialout),33(video),100(users)
$ ./test_parent
[3414] test running with uid=1000, euid=1000
sched_setscheduler(): Operation not permitted
$ su
Password:
# id
uid=0(root) gid=0(root) groups=0(root)
# ./test_parent
[3429] test running with uid=0, euid=0
[1] success
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.