Branch: refs/heads/main Home: https://github.com/OpenAMP/libmetal Commit: 9aa2f15556c5fe95e7c4d3ea33d15f3a113eaba8 https://github.com/OpenAMP/libmetal/commit/9aa2f15556c5fe95e7c4d3ea33d15f3a1... Author: Chirag Shilwant c-shilwant@ti.com Date: 2026-09-21 (Mon, 21 Sep 2026)
Changed paths: M lib/system/linux/device.c
Log Message: ----------- linux: remove sudo modprobe fallback from metal_linux_probe_driver
A library must not attempt to escalate its own privileges. The sudo modprobe fallback was incorrect for three reasons:
1. A library silently attempting privilege escalation on behalf of its caller is unexpected behavior and a security concern.
2. If modprobe failed due to missing CAP_SYS_MODULE, sudo will also fail unless passwordless sudo is explicitly configured in sudoers making the fallback redundant in practice.
3. On embedded and production Linux systems, sudo is often not installed, causing system() to fail silently or hang waiting for a password prompt.
If the driver is not found after modprobe, return -ENODEV and let the caller handle it.
Fixes: commit 7bda1db4a90d ("Initial commit")
Signed-off-by: Chirag Shilwant c-shilwant@ti.com
Commit: f05a041762532320a5e8d8532b118c22fc3e8e1e https://github.com/OpenAMP/libmetal/commit/f05a041762532320a5e8d8532b118c22f... Author: Chirag Shilwant c-shilwant@ti.com Date: 2026-09-21 (Mon, 21 Sep 2026)
Changed paths: M .github/workflows/continuous-integration.yml
Log Message: ----------- ci: load UIO kernel modules before running nonreg tests
The nr_tests job was relying on libmetal's internal sudo modprobe fallback in metal_linux_probe_driver() to load UIO modules at runtime. Now that the sudo escalation has been removed from the library, the CI environment must explicitly load the required modules before invoking the test suite.
Add a "sudo modprobe" step for uio, uio_pdrv_genirq, and uio_dmem_genirq prior to make test. Module loading with sudo privileges is the responsibility of the environment, not the library.
Signed-off-by: Chirag Shilwant c-shilwant@ti.com
Compare: https://github.com/OpenAMP/libmetal/compare/02e46d91d3d8...f05a04176253
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/libmetal/settings/notifications
openamp-rp@lists.openampproject.org