zsh-workers
 help / color / mirror / code / Atom feed
From: Jun T <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: P01privileged fails on CentOS/Fedora (a simple permission issue)
Date: Tue, 10 Mar 2020 11:59:37 +0900	[thread overview]
Message-ID: <2682CEC4-4890-4363-A5F0-0431CBCF0C97@kba.biglobe.ne.jp> (raw)

At least on CentOS/Fedora the default permission of a user's home
directory is rwx------. If I build/test zsh in a directory below
my home dir, say /home/takimoto/src/zsh/, P01privileged fails
because users with uid=1,2 can't read the necessary module(s).
Is this well known? I'm not sure whether this need be fixed.


Selecting unprivileged UID:EUID pair automatically
Selecting unprivileged GID:EGID pair automatically
Using unprivileged UID 1, EUID 2, GID 1, EGID 2
--- /tmp/zsh.ztst.15006/ztst.out	2020-03-10 11:20:22.808199407 +0900
+++ /tmp/zsh.ztst.15006/ztst.tout	2020-03-10 11:20:22.805199423 +0900
@@ -1,3 +1,3 @@
-1/1 off
-2/2 off
-1/2 on
+1/1
+2/2
+1/2
Test ./P01privileged.ztst failed: output differs from expected as shown above for:
  re_zsh $ruid $ruid -1 -1 'echo $UID/$EUID $options[privileged]'
  re_zsh $euid $euid -1 -1 'echo $UID/$EUID $options[privileged]'
  re_zsh $ruid $euid -1 -1 'echo $UID/$EUID $options[privileged]'
Error output:
zsh:1: failed to load module `zsh/parameter': /home/takimoto/src/zsh/Test/Modules/zsh/parameter.so: cannot open shared object file: Permission denied
(two more same errors)
Was testing: PRIVILEGED automatically enabled when RUID != EUID



             reply	other threads:[~2020-03-10  3:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-10  2:59 Jun T [this message]
2020-03-10 17:26 ` Jun. T
2020-03-11 20:06   ` dana
2020-03-11 20:26     ` Bart Schaefer
2020-03-12 18:11       ` dana
2020-03-13 10:16         ` Jun T
2020-03-13 14:19           ` dana
2020-03-17  5:34             ` Jun T
2020-04-01 22:35               ` dana

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=2682CEC4-4890-4363-A5F0-0431CBCF0C97@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --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).