Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package virtualbox for openSUSE:Factory checked in at 2021-01-19 15:59:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/virtualbox (Old) and /work/SRC/openSUSE:Factory/.virtualbox.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "virtualbox" Tue Jan 19 15:59:26 2021 rev:209 rq:863390 version:6.1.16 Changes: -------- --- /work/SRC/openSUSE:Factory/virtualbox/virtualbox.changes 2020-12-31 09:59:04.794892042 +0100 +++ /work/SRC/openSUSE:Factory/.virtualbox.new.28504/virtualbox.changes 2021-01-19 15:59:52.327169357 +0100 @@ -1,0 +2,8 @@ +Thu Jan 14 19:26:59 UTC 2021 - Larry Finger <[email protected]> + +- Under some circumstances, shared folders are mounted as root. File + "debug_mountsf.patch" is added to allow recovery on affected systems. + Automounted volumes are not fixed by this patch; however, manual mounting + with the uid/gid options are correct. + +------------------------------------------------------------------- New: ---- debug_mountsf.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ virtualbox.spec ++++++ --- /var/tmp/diff_new_pack.ybRYxC/_old 2021-01-19 15:59:54.131172084 +0100 +++ /var/tmp/diff_new_pack.ybRYxC/_new 2021-01-19 15:59:54.135172091 +0100 @@ -1,7 +1,7 @@ # # spec file for package virtualbox # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -184,6 +184,7 @@ Patch140: linux-5.10-framebuffer-fixes.patch Patch141: vb-6.1.16-modal-dialog-parent.patch Patch142: fixes-for-5.11.patch +Patch998: debug_mountsf.patch Patch999: virtualbox-fix-ui-background-color.patch # @@ -497,6 +498,7 @@ %patch141 -p1 %patch142 -p1 # make VB UI background colors look sane again +%patch998 -p1 %patch999 -p1 ### Documents for virtualbox main package ### ++++++ debug_mountsf.patch ++++++ Index: VirtualBox-6.1.16/src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c =================================================================== --- VirtualBox-6.1.16.orig/src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c +++ VirtualBox-6.1.16/src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c @@ -456,6 +456,7 @@ main(int argc, char **argv) unsigned long flags = MS_NODEV; char *host_name; char *mount_point; + char options[120]; struct vbsf_mount_info_new mntinf; struct vbsf_mount_opts opts = { @@ -579,7 +580,8 @@ main(int argc, char **argv) * options you also would have to adjust VBoxServiceAutoMount.cpp * to keep this code here slick without having VbglR3. */ - err = mount(host_name, mount_point, "vboxsf", flags, &mntinf); + sprintf(options, "uid=%d,gid=%d\n", mntinf.uid, mntinf.gid); + err = mount(host_name, mount_point, "vboxsf", flags, options); saved_errno = errno; /* Some versions of the mount utility (unknown which, if any) will turn the
