diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-10 11:06:55 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-10 11:06:55 -0400 |
commit | 51c43df478f58dda80fe6822232d9b615ae9ce41 (patch) | |
tree | 00cfd92fc89faeea2e451c1a20ee4862e7574552 | |
parent | 2f84e24a69fa8d83a73fad9280dbf8a5635e4768 (diff) | |
download | stasis-51c43df478f58dda80fe6822232d9b615ae9ce41.tar.gz |
Remove HOME redirection
* If the user wants that, they need to reassign HOME manually prior to executing OMC
-rw-r--r-- | include/deliverable.h | 1 | ||||
-rw-r--r-- | src/deliverable.c | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/include/deliverable.h b/include/deliverable.h index 04967c8..506354a 100644 --- a/include/deliverable.h +++ b/include/deliverable.h @@ -63,7 +63,6 @@ struct Delivery { */ struct Storage { char *root; ///< Top-level storage area - char *home; ///< Temporary user account profile char *tmpdir; ///< Temporary storage area (within root) char *output_dir; ///< Base path to where all artifacts are stored char *delivery_dir; ///< Delivery artifact output directory diff --git a/src/deliverable.c b/src/deliverable.c index e00c3f7..f3387c8 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -129,7 +129,6 @@ void delivery_free(struct Delivery *ctx) { guard_runtime_free(ctx->runtime.environ); guard_free(ctx->storage.root); guard_free(ctx->storage.tmpdir); - guard_free(ctx->storage.home); guard_free(ctx->storage.delivery_dir); guard_free(ctx->storage.tools_dir); guard_free(ctx->storage.package_dir); @@ -244,7 +243,6 @@ void delivery_init_dirs_stage1(struct Delivery *ctx) { exit(1); } - path_store(&ctx->storage.home, PATH_MAX, ctx->storage.root, "home"); path_store(&ctx->storage.build_dir, PATH_MAX, ctx->storage.root, "build"); path_store(&ctx->storage.output_dir, PATH_MAX, ctx->storage.root, "output"); @@ -684,9 +682,6 @@ int delivery_init(struct Delivery *ctx) { // Create OMC directory structure delivery_init_dirs_stage1(ctx); - // Avoid contaminating the user account with artifacts - // Some SELinux configurations will not enjoy this change. - //setenv("HOME", ctx->storage.home, 1); char config_local[PATH_MAX]; sprintf(config_local, "%s/%s", ctx->storage.tmpdir, "config"); setenv("XDG_CONFIG_HOME", config_local, 1); |