All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Manuel Wagesreither <ManWag@FastMail.FM>,
	"yocto@lists.yoctoproject.org" <yocto@lists.yoctoproject.org>
Subject: Re: [yocto] Yocto suddenly creating directories with 700 instead 755.
Date: Thu, 11 Nov 2021 22:33:11 +0000	[thread overview]
Message-ID: <de2b688dc149dff679bb597c99f5c4bf6b77319f.camel@linuxfoundation.org> (raw)
In-Reply-To: <31d2787a-7e22-4f81-8f0e-1e4a87706046@www.fastmail.com>

On Thu, 2021-11-11 at 17:10 +0100, Manuel Wagesreither wrote:
> tl;dr:
> If recipes install directories with `install -d path/to/dir`, how is the default
> mode determined? What can cause it suddenly (that is, without updating
> metalayers or similar) to change from 755 to 700?

You don't mention which version of the project this is with which may be
important and relevant as we've fixed things related to these kinds of issues.

Bottom line is that file mode you see on disk will be determined by the umask
bitbake is being run under. The file modes on disk are not the file modes used
though since pseudo emulates modes as well as users like root.

The 134 exit code is usually pseudo aborting and there should be information in
the rootfs logs about which files it had concerns over, likely inode mismatches.
Also see the WORKDIR/pseudo/pseudo.log. This has it's own wiki page:

https://wiki.yoctoproject.org/wiki/Pseudo_Abort

I'd also add that the core directories have permissions determined by:

http://git.yoctoproject.org/cgit.cgi/poky/tree/meta/files/fs-perms.txt

and code in package.bbclass should be ensuring those directories always have
consistent permission bits.

This brings me back to which release/version of the metadata is this?

Cheers,

Richard



  reply	other threads:[~2021-11-11 22:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-11 16:10 Yocto suddenly creating directories with 700 instead 755 Manuel Wagesreither
2021-11-11 22:33 ` Richard Purdie [this message]
2021-11-11 23:28 ` [yocto] " Stephen John Smoogen
2021-11-12 10:35   ` Richard Purdie
2021-11-12 12:38     ` Manuel Wagesreither

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=de2b688dc149dff679bb597c99f5c4bf6b77319f.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=ManWag@FastMail.FM \
    --cc=yocto@lists.yoctoproject.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.