Summary: | sys-firmware/sof-firmware-1.9.3-r1: Error on upgrading to stable from 1.6.1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Brian Evans (RETIRED) <grknight> |
Component: | Current packages | Assignee: | Gentoo ALSA team [DISABLED] <alsa-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=841560 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Brian Evans (RETIRED)
![]() Possible to an attempt a pkg_postinst, but there is a security risk due to firmware binary code being loaded into a driver. pkg_postinst() { local sofpath="${EROOT}/lib/firmware/intel/sof" if [[ ! -L "${sofpath}" ]] ; then elog "Fixing directory to backup symlink issue" rmdir "${sofpath}" || die mv "${sofpath}".backup.0000 "${sofpath}" || die fi } This pkg_preinst is better: pkg_preinst() { local sofpath="${EROOT}/lib/firmware/intel/sof" if [[ ! -L "${sofpath}" ]] ; then rm -r "${sofpath}" || die fi } The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38d497575d13da1cf94f195e84bf2a2d1a03aa06 commit 38d497575d13da1cf94f195e84bf2a2d1a03aa06 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-04-29 04:39:09 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-04-29 04:40:24 +0000 sys-firmware/sof-firmware: add 2.1.1 Closes: https://bugs.gentoo.org/836728 Closes: https://bugs.gentoo.org/829734 Closes: https://bugs.gentoo.org/833083 Thanks-to: Brian Evans <grknight@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org> sys-firmware/sof-firmware/Manifest | 1 + .../sof-firmware/sof-firmware-2.1.1.ebuild | 30 ++++++++++++++++++++++ 2 files changed, 31 insertions(+) |