This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add finit_module syscall for Linux
On Fri, Jan 25, 2013 at 9:31 AM, KOSAKI Motohiro
<kosaki.motohiro@gmail.com> wrote:
> Seems they can be separated 5 categories
>
> 1. only one or few specific application use.
>
>> delete_module(2) [calling signature changed in 2.6.x]
>> finit_module(2)
>> init_module(2)
>> kcmp(2)
>> kexec_load(2)
>> modify_ldt(2)
>> perf_event_open(2)
>> pivot_root(2)
>> s390_runtime_instr(2) [s390 specific]
>> spu_create(2) [PowerPC specific]
>> spu_run(2) [PowerPC specific]
>> subpage_prot(2) [PowerPC specific]
Is the suggestion that this one/few use category shouldn't be handled
by glibc? I'm okay with this, I just think it's trivial to support it
in glibc, and it seems the "friendly" solution to do so.
>> gettid(2)
>
> Very frequently uses. because linux /proc uses tid. pthrad_self()
> don't help us when facing libc/kernel combination issue.
> I have no seen any issue of exporting.
Yeah, I've needed gettid() in multiple situations before. I think
having this available in glibc would be great.
-Kees
--
Kees Cook
Chrome OS Security