Knowledge Base:Object libsandbox.so from LD PRELOAD cannot be preloaded

Synopsis
During installation of a package, the following error message appears:

Environment
This article is applicable to Gentoo Linux systems with a selinux profile set:

A SELinux profile always ends with

Analysis
This message should only occur after the Setting SELinux security labels message. It happens because SELinux tells glibc to disable LD_PRELOAD (and other environment variables that are considered potentially harmful) during domain transitions. Here, portage calls the setfiles command (part of a SELinux installation) and as such transitions from portage_t to setfiles_t, which clears the environment variable.

We believe that it is safer to trust the SELinux policy here (as setfiles runs in its own confined domain anyhow) rather than updating the policy to allow transitioning between portage_t to setfiles_t without clearing these environment variables.

Resolution
The error is in our opinion cosmetic and can be ignored (but sadly not hidden).