>From: 'Felix Moessbauer' via isar-users <isar-...@googlegroups.com>
>Sent: Thursday, 10 September 2026 16:43
>To: isar-...@googlegroups.com
>Cc: jan.k...@siemens.com; Felix Moessbauer; Clara Kowalsky
>Subject: [PATCH 1/1] isar-check-rootless: check parent dirs are world executable
>
>When using mmdebstrap with the unshare backend, all parent directories
>of the TMPDIR must be world executable. This requirement is documented
<nitpick on> you mean that all parent directories need to be world searchable,
by setting the S_IXOTH access bit, right?
>in the mmdebstrap man page, but when not fulfilled, mmdebstrap fails in
>colorful ways.
>
>To indicate what is wrong, we add a check to the isar-check-rootless
>script.
>
>Reported-by: Clara Kowalsky <clara.k...@siemens.com>
>Signed-off-by: Felix Moessbauer <felix.mo...@siemens.com>
>---
>PS: The corresponding kas patch is here:
Same nitpick remark here
>+dir=$tmpdir
>+while [ "$dir" != "/" ]; do
>+ if [ -e "$dir" ] && \
>+ [ -z "$(find "$dir" -maxdepth 0 -perm -0001 2>/dev/null)" ]; then
>+ fail "'$dir' is not world-executable" \
and here
Hi, thanks for the review. Yes, that's right. However, then we diverge
from the terminology that is used by mmdebstrap, which is:
If you set "TMPDIR" in unshare mode, then the unshared user must be
able to access the directory. This means that the directory itself must
be world-writable and all its ancestors must be at least world-
executable.
If there are no objections, I would just change to "searchable" instead
of executable, despite the mmdebstrap manpage explicitly states
executable.
Still, test reports if that actually works on other machines would be
great :)
Felix