mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 07:11:05 +01:00
if uid != euid or gid != egid unsetenv("LD_NOSTD_PATH") too
This commit is contained in:
parent
03e5b81db4
commit
b2105a0990
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11617
@ -27,7 +27,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: rtld.c,v 1.26 1995/09/27 23:14:08 nate Exp $
|
||||
* $Id: rtld.c,v 1.27 1995/09/27 23:17:33 nate Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -264,6 +264,7 @@ struct _dynamic *dp;
|
||||
|
||||
if (careful) {
|
||||
unsetenv("LD_LIBRARY_PATH");
|
||||
unsetenv("LD_NOSTD_PATH");
|
||||
unsetenv("LD_PRELOAD");
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: rtld.c,v 1.26 1995/09/27 23:14:08 nate Exp $
|
||||
* $Id: rtld.c,v 1.27 1995/09/27 23:17:33 nate Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -264,6 +264,7 @@ struct _dynamic *dp;
|
||||
|
||||
if (careful) {
|
||||
unsetenv("LD_LIBRARY_PATH");
|
||||
unsetenv("LD_NOSTD_PATH");
|
||||
unsetenv("LD_PRELOAD");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user