From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86923 invoked by alias); 22 Jul 2019 18:39:32 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 86914 invoked by uid 89); 22 Jul 2019 18:39:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=HTo:U*libffi-discuss, H*Ad:U*libffi-discuss X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 22 Jul 2019 18:39:30 +0000 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8DEB285A07 for ; Mon, 22 Jul 2019 18:39:29 +0000 (UTC) Received: from greed.delorie.com (ovpn-118-151.phx2.redhat.com [10.3.118.151]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5EA891001B3B for ; Mon, 22 Jul 2019 18:39:29 +0000 (UTC) Received: from greed.delorie.com.redhat.com (localhost [127.0.0.1]) by greed.delorie.com (8.14.7/8.14.7) with ESMTP id x6MIdRWZ027238; Mon, 22 Jul 2019 14:39:27 -0400 Date: Mon, 22 Jul 2019 18:39:00 -0000 Message-Id: From: DJ Delorie To: libffi-discuss@sourceware.org Subject: [patch] additional temp directory? X-IsSubscribed: yes X-SW-Source: 2019/txt/msg00023.txt.bz2 When selinux is active, libffi might need a libffi-specific tmp directory that allows both write and exec maps. Can we add such a variable? Plus or minus any bikesheeding about its name or position in the list? ;-) diff --git a/src/closures.c b/src/closures.c index adb60bb..337b22b 100644 --- a/src/closures.c +++ b/src/closures.c @@ -664,6 +664,7 @@ static struct const char *arg; int repeat; } open_temp_exec_file_opts[] = { + { open_temp_exec_file_env, "LIBFFITMPDIR", 0 }, { open_temp_exec_file_env, "TMPDIR", 0 }, { open_temp_exec_file_dir, "/tmp", 0 }, { open_temp_exec_file_dir, "/var/tmp", 0 }, See also https://bugzilla.redhat.com/show_bug.cgi?id=1722756