diff options
-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); |