public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Question] LinuxThreads, setuid - Is there user mode hook?
@ 2005-12-22 15:47 Alon Bar-Lev
  0 siblings, 0 replies; 11+ messages in thread
From: Alon Bar-Lev @ 2005-12-22 15:47 UTC (permalink / raw)
  To: linux-kernel

Hello,

I am writing a provider that uses pthreads. The main program 
does not aware that the provider is using threads and it is 
not multithreaded.

After initialization the program setuid to nobody, the 
problem is that my threads remains in root id.

I read about discussions regarding LinuxThreads and figured 
out that I need to sync the uid,gid by my-self... :(

Is there a way in user mode to know when the process is 
setuid (some kind of callback)?

The best solution is to set this callback in every thread, 
so that it will setuid also when the main setuided.

Of course I can spawn a threads that pools the id of the 
main process... But there must be a better way to do that.

Best Regards,
Alon Bar-Lev.

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <200512222312.jBMNCj96018554@taverner.CS.Berkeley.EDU>]
[parent not found: <200512231927.jBNJR2uG019083@taverner.CS.Berkeley.EDU>]
[parent not found: <5mRSA-6ss-15@gated-at.bofh.it>]

end of thread, other threads:[~2005-12-27  2:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-22 15:47 [Question] LinuxThreads, setuid - Is there user mode hook? Alon Bar-Lev
     [not found] <200512222312.jBMNCj96018554@taverner.CS.Berkeley.EDU>
2005-12-23  9:51 ` Alon Bar-Lev
2005-12-23 19:08   ` Lee Revell
2005-12-23 20:21     ` Daniel Jacobowitz
2005-12-23 20:36       ` Lee Revell
2005-12-23 20:33         ` Daniel Jacobowitz
2005-12-24 16:16           ` Alon Bar-Lev
2005-12-25  1:31           ` Luke-Jr
2005-12-25  8:05             ` Alon Bar-Lev
     [not found] <200512231927.jBNJR2uG019083@taverner.CS.Berkeley.EDU>
2005-12-24 16:18 ` Alon Bar-Lev
     [not found] <5mRSA-6ss-15@gated-at.bofh.it>
     [not found] ` <5n1S5-9P-21@gated-at.bofh.it>
     [not found]   ` <5n1S5-9P-19@gated-at.bofh.it>
     [not found]     ` <5nt1F-5aZ-1@gated-at.bofh.it>
2005-12-27  2:33       ` Robert Hancock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox