[mythtv-commits] Ticket #2536: Realtime priority not enabled w/ realtime module (or bad log message)
MythTV
mythtv at cvs.mythtv.org
Wed Dec 20 05:01:38 UTC 2006
#2536: Realtime priority not enabled w/ realtime module (or bad log message)
-----------------------------------------+----------------------------------
Reporter: rob+mythtv.org at rosenfeld.to | Owner: danielk
Type: defect | Status: new
Priority: trivial | Milestone: unknown
Component: mythtv | Version: head
Severity: low | Resolution:
-----------------------------------------+----------------------------------
Comment (by sandeen-mythtv at sandeen.net):
Oh should have checked this first :)
It's the main thread dropping privs that does it - the sub-thread inherits
the
privs when the main thread drops it.
If the main thread does this:
rc = pthread_create(&thread_id, NULL, thread_main, NULL);
sleep(2);
setuid(getuid());
sleep(2);
and the sub-thread does this:
printf("thread: uid %d euid %d\n", getuid(), geteuid());
sleep(3);
printf("thread: uid %d euid %d\n", getuid(), geteuid());
then I get:
main: uid 500 euid 0
thread: uid 500 euid 0
thread: uid 500 euid 500
guess I need to read up on how pthreads work... not sure you can use them
this way?
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2536#comment:3>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list