zsh-users
 help / color / mirror / code / Atom feed
From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: [ANN] zsh-bin: statically-linked, hermetic, relocatable zsh
Date: Sat, 28 Mar 2020 17:16:06 +0100	[thread overview]
Message-ID: <CAN=4vMoOPJuFhtbPDWU56ov_rFW=TD6oaa8H2u9ejxd4qt=yqQ@mail.gmail.com> (raw)
In-Reply-To: <7f096755-d34e-e522-52b3-f480eae3b3bb@eastlink.ca>

On Sat, Mar 28, 2020 at 5:07 PM Ray Andrews <rayandrews@eastlink.ca> wrote:
>
> On 2020-03-28 7:02 a.m., Roman Perepelitsa wrote:
> > Zsh from zsh-bin cannot load user-defined compiled modules. There
> > no way to guarantee that user-defined modules have been linked
> > with the same libc as `zsh`, so it's unsafe to load them. This
> > limitation likely cannot be removed.
>
> What are the consequences of this for an ordinary user?

If an ordinary user compiles a zsh module (*.so file) on their
machine, modifies module_path special parameter and attempts to load
the module with zmodload, they'll get an error.

The inability of zsh-bin to load user-defined modules will likely have
little to no practical consequences. Very few users use custom
compiled zsh modules in the first place. Those who do, virtually
always compile modules on the same machine where they use them. If
they can compile modules on a local machine, they likely have no use
for zsh-bin.

If you are unsure whether you are using custom zsh modules (directly
or indirectly), you aren't.

Roman.

  reply	other threads:[~2020-03-28 16:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-26 14:20 Roman Perepelitsa
2020-03-28  0:23 ` Ray Andrews
2020-03-28 10:37 ` Sebastian Gniazdowski
2020-03-28 14:02   ` Roman Perepelitsa
2020-03-28 16:06     ` Ray Andrews
2020-03-28 16:16       ` Roman Perepelitsa [this message]
2020-03-28 16:27         ` Ray Andrews
2020-04-05 15:46 ` Ray Andrews
2020-04-05 15:55   ` Roman Perepelitsa
2020-04-05 16:38     ` Ray Andrews
2020-04-05 16:45       ` Roman Perepelitsa
2020-04-05 18:47         ` Ray Andrews
2020-04-05 18:57           ` Roman Perepelitsa
2020-04-05 19:15             ` Ray Andrews
2020-04-05 19:19               ` Roman Perepelitsa

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='CAN=4vMoOPJuFhtbPDWU56ov_rFW=TD6oaa8H2u9ejxd4qt=yqQ@mail.gmail.com' \
    --to=roman.perepelitsa@gmail.com \
    --cc=rayandrews@eastlink.ca \
    --cc=zsh-users@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).