diff options
author | Colin Walters <walters@verbum.org> | 2022-01-12 06:51:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-12 06:51:14 -0500 |
commit | 8aeceb9b8837cbf67421fe78900c9e477733f7b6 (patch) | |
tree | 3994105ea3e760541bc5c78dac8b25a68a5d4061 | |
parent | 6567d825252cfa4b1ebab1dd8c9043bc6f73e3d6 (diff) | |
parent | 840cd7ab2da3e9992a6b91ba312a702e3ba55e0d (diff) | |
download | ostree-8aeceb9b8837cbf67421fe78900c9e477733f7b6.tar.gz |
Merge pull request #2514 from lucab/ups/drop-setenv
libostree/sepolicy: get rid of a g_setenv() call
-rw-r--r-- | src/libostree/ostree-sepolicy.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libostree/ostree-sepolicy.c b/src/libostree/ostree-sepolicy.c index 0fed6457..5fd59a82 100644 --- a/src/libostree/ostree-sepolicy.c +++ b/src/libostree/ostree-sepolicy.c @@ -422,10 +422,6 @@ initable_init (GInitable *initable, { const char *policy_rootpath = gs_file_get_path_cached (policy_root); - /* TODO(lucab): get rid of this setenv(), it may be unsafe in a multi-thread context. */ - if (!g_setenv ("LIBSELINUX_DISABLE_PCRE_PRECOMPILED", "1", FALSE)) - return glnx_throw (error, "Failed to set environment variable LIBSELINUX_DISABLE_PCRE_PRECOMPILED"); - if (selinux_set_policy_root (policy_rootpath) != 0) return glnx_throw_errno_prefix (error, "selinux_set_policy_root(%s)", policy_rootpath); |