All of lore.kernel.org
 help / color / mirror / Atom feed
* [PULL][PATCH 0/1] Do setuid before git operations
@ 2022-05-13 10:03 Jack (Szu-Chieh) Wang
  2022-05-13 10:04 ` [PATCH 1/1] " Jack (Szu-Chieh) Wang
  2022-05-13 10:14 ` [poky] [PULL][PATCH 0/1] " Richard Purdie
  0 siblings, 2 replies; 6+ messages in thread
From: Jack (Szu-Chieh) Wang @ 2022-05-13 10:03 UTC (permalink / raw)
  To: poky; +Cc: Jack Wang, ryanoleary

From: "Jack (Szu-Chieh) Wang" <jackwa@google.com>

/etc/build information missing is because the new git thinks it's
unsafe to do git operations if the directory has a different uid from
the executing process'. However, there are still cases that we are
building the image with a different uid, making git reporting false
alarms. This patch identifies the cases by attempting to setuid to the
owner of the git directory and if this works, it should be the
expected git repo thus safe to do git operations.

The following changes since commit 7b48f329aedc7fcb277302ba6ff167f22e5b1f22:

  scripts/autobuilder-worker-prereq-tests: add additional limit testing (2022-05-11 19:59:44 +0100)

are available in the Git repository at:

  git://git.yoctoproject.org/poky-contrib jackwang/setuid-before-git-op
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=jackwang/setuid-before-git-op

Jack Wang (1):
  Do setuid before git operations

 meta/classes/metadata_scm.bbclass | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

-- 
2.36.0.550.gb090851708-goog


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-13 10:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-13 10:03 [PULL][PATCH 0/1] Do setuid before git operations Jack (Szu-Chieh) Wang
2022-05-13 10:04 ` [PATCH 1/1] " Jack (Szu-Chieh) Wang
2022-05-13 10:14 ` [poky] [PULL][PATCH 0/1] " Richard Purdie
2022-05-13 10:19   ` Jack (Szu-Chieh) Wang
2022-05-13 10:22     ` Richard Purdie
2022-05-13 10:48       ` Jack (Szu-Chieh) Wang

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.