From: Alon Bar-Lev <alon.barlev@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: [Question] LinuxThreads, setuid - Is there user mode hook?
Date: Thu, 22 Dec 2005 17:47:14 +0200 [thread overview]
Message-ID: <43AACA82.5050305@gmail.com> (raw)
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.
next reply other threads:[~2005-12-22 15:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-22 15:47 Alon Bar-Lev [this message]
[not found] <200512222312.jBMNCj96018554@taverner.CS.Berkeley.EDU>
2005-12-23 9:51 ` [Question] LinuxThreads, setuid - Is there user mode hook? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43AACA82.5050305@gmail.com \
--to=alon.barlev@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox