Skip to content

Commit

Permalink
chroot_scan: make sure the tarball is owned by non-priv user
Browse files Browse the repository at this point in the history
Relates: #1472
  • Loading branch information
praiskup committed Sep 27, 2024
1 parent f51c5b8 commit c522c5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions mock/py/mockbuild/plugins/chroot_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,4 @@ def __scanChroot(self):
shell=False, printOutput=True
)
shutil.rmtree(self.resultdir)
self.buildroot.uid_manager.changeOwner(tarfile)
2 changes: 2 additions & 0 deletions releng/release-notes-next/chroot-scan-permissions.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The ownership of the `chroot_scan` plugin "output tarball" (when `write_tar =
True`) has been corrected, ensuring the file is no longer root-owned.

0 comments on commit c522c5f

Please sign in to comment.