zsh-workers
 help / color / mirror / code / Atom feed
From: Axel Beckert <abe@deuxchevaux.org>
To: zsh-workers@zsh.org
Subject: Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
Date: Thu, 16 Sep 2021 14:10:57 +0200	[thread overview]
Message-ID: <20210916121056.p4zainnlnoi74yiw@sym.noone.org> (raw)
In-Reply-To: <887BC7E8-0D19-4D16-BFE6-9AE8EA5E9040@kba.biglobe.ne.jp>

Hi Jun,

On Thu, Sep 16, 2021 at 04:37:31PM +0900, Jun T wrote:
> > Based on the strace, my guess would be that getrlimit() is what's
> > attempting to link to the dynamic library.  This is based on the
> > success of the uname() call and on what does NOT appear in the
> > subsequent trace output.
> 
> Probably getrlimit() is implemented by prlimit64() that appears
> in the strace log, I guess.
> 
> Modules/tcp.c uses
> gethostbyname2(), gethostbyadr(), getservbyname()
> that are NSS-functions?
> 
> How about disabling the tcp module by setting
> link=no
> in config.modules, for the module name=zsh/net/tcp?

Doesn't seem to suffice as my test builds for that already have

  name=zsh/net/tcp modfile=Src/Modules/tcp.mdd link=no auto=yes load=no functions=Functions/TCP/*

in config.modules.

		Kind regards, Axel
-- 
PGP: 2FF9CD59612616B5      /~\  Plain Text Ribbon Campaign, http://arc.pasp.de/
Mail: abe@deuxchevaux.org  \ /  Say No to HTML in E-Mail and Usenet
Mail+Jabber: abe@noone.org  X
https://axel.beckert.ch/   / \  I love long mails: https://email.is-not-s.ms/


  reply	other threads:[~2021-09-16 12:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-08  1:12 Vincent Lefevre
2021-09-15 14:31 ` Axel Beckert
2021-09-15 19:13   ` Bart Schaefer
2021-09-16  7:37     ` Jun T
2021-09-16 12:10       ` Axel Beckert [this message]
2021-09-16 16:48         ` Bart Schaefer
2021-09-16 18:21           ` Jun. T
2021-09-16 18:34             ` Axel Beckert
2021-09-16 22:01               ` Bart Schaefer
2021-09-17  1:23             ` Jun T
2021-09-17  8:45               ` Jun T
2021-09-17 13:44                 ` Axel Beckert
2021-09-17 13:55                   ` Roman Perepelitsa
2021-09-17 14:16                     ` Axel Beckert
2021-09-17 15:02                 ` Bart Schaefer
2021-09-21  0:53                   ` Jun T
2021-09-21  3:38                     ` Bart Schaefer

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=20210916121056.p4zainnlnoi74yiw@sym.noone.org \
    --to=abe@deuxchevaux.org \
    --cc=zsh-workers@zsh.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).