Skip to content

Permit code block evaluation for files in safelist #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2021
Merged

Permit code block evaluation for files in safelist #13

merged 1 commit into from
Nov 15, 2021

Conversation

fredericgiquel
Copy link
Contributor

By default, evaluation of code blocks is disabled (org-confirm-babel-evaluate is t by default in async Emacs process). If the org file contains section like this :

#+NAME: lsp-dir
#+begin_src emacs-lisp :tangle no
(expand-file-name "var/lsp/server" user-emacs-directory)
#+end_src

The auto-tangle process does not work :

As code block evaluation can lead to code execution form untrusted org-file, it's dangerous to enabled it globally. This PR define a safelist variable in order to enable code block evaluation only for an explicit list of files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants