tools/libfsimage: Remove the XEN_FSIMAGE_FSDIR environment variable

This was reported to the security team, demonstrating that code execution
could be achieved, but without a demonstration of a priviliege boundary being
bypassed.

Still, it's a high risk path with no obvious evidence of having been used even
for debugging, so remove the environment variable and use the build time
$(libdir)/xenfsimage path only.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Acked-by: Anthony PERARD <anthony.perard@vates.tech>
Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
This commit is contained in:
Andrew Cooper authored and Roger Pau Monne committed 2026-07-03 16:52:47 +02:00
1 parent 62bc8e2c3b
commit f0161d2d89
2 files changed
+2 -4

No files matched your search

+1
View File
@@ -63,6 +63,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Removed xenpm tool on non-x86 platforms as it doesn't actually provide
anything useful outside of x86.
- Removed the XEN_FSIMAGE_FSDIR environment variable.
## [4.21.0](https://xenbits.xenproject.org/gitweb/?p=xen.git;a=shortlog;h=RELEASE-4.21.0) - 2025-11-19
+1 -4
View File
@@ -121,7 +121,7 @@ fail:
int fsi_init(void)
{
const char *fsdir = getenv("XEN_FSIMAGE_FSDIR");
const char *fsdir = FSIMAGE_FSDIR;
struct dirent *dp = NULL;
DIR *dir = NULL;
char *tmp = NULL;
@@ -129,9 +129,6 @@ int fsi_init(void)
int err;
int ret = -1;
if (fsdir == NULL)
fsdir = FSIMAGE_FSDIR;
if ((name_max = pathconf(fsdir, _PC_NAME_MAX)) == -1)
goto fail;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.