From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id cIahKz7ANGY3VQEA62LTzQ:P1 (envelope-from ) for ; Fri, 03 May 2024 12:45:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id cIahKz7ANGY3VQEA62LTzQ (envelope-from ) for ; Fri, 03 May 2024 12:45:18 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JDIBBp+s; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714733118; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Y3dr39X+YVIHULy8UHDvhCvCjqNJp8oYRJpRGZLSI2s=; b=MzYwwAt80VOFwkTXGrnxa1uvWgXNBa4zZGX5/KPkGXUUUmed2XTKYLCTwHT3Fn8NcZFij1 4xuz1Zq641NqKjopa9tjGLrcvuyGSmP/Uu8r83JcdxTkxb0Qj6EB1V4gWR8hztShvXAdgu TUUuDrQ+WBhf/Dv4vyeRk/WZj2m+4B9ccOKt0q7HKEg6hu2BNVxbIZIxU21DNvN88kYBUl BuEDVch0QH873Vs4uK5F5xEQRkzyt9eerd8h5QB6NrhfJRh31L2OYG+/9YBvA+9kDLnsJg cauoenbZ441mt/Ak46EoSY6Tt1mAmgt4PhHL5wsss0oAz48B2cbTSogHnSCDCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JDIBBp+s; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714733118; a=rsa-sha256; cv=none; b=kmVU3WC+06Nah/BdtiISQT1JwuEUUU3rP1Ns7OfEL7pAtEok41ggPC4DQb38DYs5EPcHYW 7GhctDP0UBXptEqliz/y2Bh15xou4T+mVRrMyxooZf3FhlXIC23/k/e1g1j2d/Uz/o/RCn r0P0yPzvJlQJg+QcS+lrkHU5L82e7s4/VRnTbfSZhDOfMUTJad+nGYEEoAm/DXFbtCTuPO PnmIKT9n2y5buzSvUVfdTO1btEGd0uTkmOrHNcvM/0L8ZZobCOBByl4fVZxSJ8sUnW/jJv FVT/WNbqfF2H8IIlZ9/wdejjvtbep2O7Q52p/476GnS11XM9tGd77aPRG5Rg4w== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9332E631E9 for ; Fri, 3 May 2024 12:45:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2q67-0002nb-F6; Fri, 03 May 2024 06:24:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2q64-0002n2-Sn for emacs-orgmode@gnu.org; Fri, 03 May 2024 06:24:56 -0400 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2q61-0006L5-F9 for emacs-orgmode@gnu.org; Fri, 03 May 2024 06:24:55 -0400 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2e22a1bed91so9232871fa.0 for ; Fri, 03 May 2024 03:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714731890; x=1715336690; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=Y3dr39X+YVIHULy8UHDvhCvCjqNJp8oYRJpRGZLSI2s=; b=JDIBBp+s4flo0b1WNZQNe6TeBqiJK9tG/mCFvWWy+VbeQzHN0CLO9dzK4GE5pGZXCn 9+0dn9Eqz9isH/A3h6fN4LWdBwTWrHmmqqGqxEdDXsiMLrhbHbIpcl4kms2m6BHmAkFJ 0swyu0qAAwJi34KPKclGkz4RTOIdlTtcU9BLz+Eg9Di3yLqvPa1wg7Mh56xuk0JLDHgu BXYiM7BskJn5ZbrcQc/cW7M0JbrveGSsr9mONX20gW2QgNspA4ukoa45LhTpj1YIWUq1 UDNmd1TyhnWpGICf5jlKp2UQ+e9eCriqiN9XwlgtpklydxNlxxw0e9lNbpwLo/WsNgV9 APiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714731890; x=1715336690; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Y3dr39X+YVIHULy8UHDvhCvCjqNJp8oYRJpRGZLSI2s=; b=YVJnzrFBeBrgDVyuZHP/Y/ovZeglh9kAg856bPpE+OZ7F9u9EPiVC9wOav2TSekkh4 3Scu/li6gTlRDxxlgPWebf4Z+NB/hcgWm4ZMzfIi8XB5+2F6EBgrqNHJG179uQRZUZ3e 6y98mzFACYhJ0kHzIWHPHwp5u5Pu13k2939S9xHPlR2RurtNIUYcwmRIyF1mqavAsVyW u2cJu01kvpkVEa+1W7OZDyuf03v7A5NV+E/KLtXHEqakWczbyXe0TQm3hIg0PUra77hE vcT2Y+txzOxkJHAiuWlMnYGEQDqoD+9C5iSOpBb35p9B3okWqm52ZTyL2VmZbXvGQKV2 MILQ== X-Gm-Message-State: AOJu0Yxt9L4zz2/Ak0qYXt5mHgs6/O3aiTt0F/g6OQfD7ia2RnZWam0I qt+nGQ6Ghcgwzo8WzjlCYe59bb9xAmn/YH8TDGCFXYtg4EdVKY/vH30wbg== X-Google-Smtp-Source: AGHT+IFp6UxOMwyPjrX336HVhxwQkHAciP/BX6wyuowYTYAuOC+201mETg3NaWqcLcGG9IBajAofDw== X-Received: by 2002:a2e:960c:0:b0:2df:5116:928b with SMTP id v12-20020a2e960c000000b002df5116928bmr1348621ljh.25.1714731889692; Fri, 03 May 2024 03:24:49 -0700 (PDT) Received: from [192.168.0.102] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id j14-20020a2e800e000000b002dfa64b23e6sm471428ljg.13.2024.05.03.03.24.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 May 2024 03:24:49 -0700 (PDT) Message-ID: <9af62cb2-f237-4423-ba7a-e1fccfc722f9@gmail.com> Date: Fri, 3 May 2024 17:24:38 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [BUG] #+CALL - permission error -bash To: vitalij@gmx.com Cc: emacs-orgmode@gnu.org References: <87frv046ok.fsf@gmx.com> <87frv09sar.fsf@localhost> Content-Language: en-US, ru-RU From: Max Nikulin Mail-Followup-To: vitalij@gmx.com, emacs-orgmode@gnu.org In-Reply-To: <87frv09sar.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=manikulin@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 6.42 X-Spam-Score: 6.42 X-Migadu-Queue-Id: 9332E631E9 X-Migadu-Scanner: mx13.migadu.com X-TUID: evs/1ow8s0M1 On 02/05/2024 21:55, Ihor Radchenko wrote: > vitalij writes: > >> in org-babel-sh-evaluate >> file:~/.emacs.d/elpa/org-9.6.28/ob-shell.el::300 >> >> this do apply: (process-file "/tmp/babel-NfRG9P/sh-script-jmKNA4" >> "/tmp/babel-NfRG9P/sh-stdin-o3CEm5" # nil nil) >> >> I don't allow executables in /tmp folder! > > Why do you think that it is a bug in Org mode? > AFAIK, it is generally expected that anything can go into tmp. There are various guides recommending noexec, however they warn that some issues should be expected. Securing Debian Manual - https://www.debian.org/doc/manuals/securing-debian-manual/ch04s10.en.html 4.10. Mounting partitions the right way - https://www.debian.org/doc/manuals/securing-debian-manual/checklist.en.html B.2. Configuration checklist Security in Arch Linux wiki: https://wiki.archlinux.org/title/Security#Mount_options Mount options >> How to make it this way: >> >> (process-file "/use/bin/bash /tmp/babel-NfRG9P/sh-script-jmKNA4" >> "/tmp/babel-NfRG9P/sh-stdin-o3CEm5" # nil nil) >> >> ??? >> >> It is like when you do: >> ./a.sh >> >> instead of: >> bash a.sh Likely you mean (process-file "/usr/bin/bash" "/tmp/babel-NfRG9P/sh-stdin-o3CEm5" # nil "/tmp/babel-NfRG9P/sh-script-jmKNA4") but it would ignore shebang. Try #!/bin/sh -e false printf "Should not be executed\n" So it is necessary to either drop :shebang or set temporary directory to a suitable path.