From patchwork Mon Oct 26 18:44:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kadam, Pallavi" X-Patchwork-Id: 82229 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CEACCA04DD; Mon, 26 Oct 2020 19:50:37 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 99F0F29C6; Mon, 26 Oct 2020 19:50:36 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 9D11F1D9E for ; Mon, 26 Oct 2020 19:50:33 +0100 (CET) IronPort-SDR: Yje2aWpyX0VXuIwHh86pYwLuIzs3QPzaPmnlz21sVnmDOVZ2gWkPNVM3Jgyv71PLDSntOdUefh cwdD51Nq1/FQ== X-IronPort-AV: E=McAfee;i="6000,8403,9786"; a="155751763" X-IronPort-AV: E=Sophos;i="5.77,420,1596524400"; d="scan'208";a="155751763" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2020 11:50:31 -0700 IronPort-SDR: 73WnCju6g6D7fWF/ByPFPTguJbQ4NkmRN1bupBoTqWo/LWd9N07Y7doN904AmLM90YoHazM1k4 SPmpRfRTe9Og== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,420,1596524400"; d="scan'208";a="360468415" Received: from win-dpdk-pallavi.jf.intel.com (HELO localhost.localdomain) ([10.166.188.111]) by FMSMGA003.fm.intel.com with ESMTP; 26 Oct 2020 11:50:30 -0700 From: Pallavi Kadam To: dev@dpdk.org, thomas@monjalon.net Cc: ranjit.menon@intel.com, dmitry.kozliuk@gmail.com, Narcisa.Vasile@microsoft.com, talshn@nvidia.com, pallavi.kadam@intel.com Date: Mon, 26 Oct 2020 11:44:58 -0700 Message-Id: <20201026184458.8492-1-pallavi.kadam@intel.com> X-Mailer: git-send-email 2.18.0.windows.1 In-Reply-To: <20201021202616.2732-1-pallavi.kadam@intel.com> References: <20201021202616.2732-1-pallavi.kadam@intel.com> Subject: [dpdk-dev] [PATCH v2] eal: enable windows apps to run on non-admin users X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Currently, since there is no runtime directory set, the code tries to create a file in C:\ which is only writable with administrator privileges. As a result, if the user is not admin, the application will fail. So, forcing no_shconf to 1 to prevent the code having to create files in the runtime directory. Suggested-by: Dmitry Kozlyuk Signed-off-by: Pallavi Kadam Reviewed-by: Ranjit Menon Acked-by: Dmitry Kozlyuk Acked-by: Anatoly Burakov Acked-by: Narcisa Vasile --- lib/librte_eal/windows/eal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/windows/eal.c b/lib/librte_eal/windows/eal.c index 6334aca03..105549de1 100644 --- a/lib/librte_eal/windows/eal.c +++ b/lib/librte_eal/windows/eal.c @@ -295,6 +295,7 @@ rte_eal_init(int argc, char **argv) RTE_LOG(WARNING, EAL, "Multi-process support is requested, " "but not available.\n"); internal_conf->in_memory = 1; + internal_conf->no_shconf = 1; } if (!internal_conf->no_hugetlbfs && (eal_hugepage_info_init() < 0)) {