[GH-ISSUE #4775] Highlight profile blacklists lua which is required #2773

Closed
opened 2026-05-05 09:26:13 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @michelesr on GitHub (Dec 13, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4775

Description

Highlight text formatter program fails to run due to lua libraries being blacklisted.

Steps to Reproduce

Steps to reproduce the behavior

  1. Run in bash firejail highlight

Expected behavior

The program runs

Actual behavior

The program fails with the following error:

/usr/bin/highlight: error while loading shared libraries: liblua.so.5.4: cannot open shared object file: Permission denied

Behavior without a profile

What changed calling LC_ALL=C firejail --noprofile /path/to/program in a terminal?

The program works normally.

Environment

  • Arch Linux
  • Firejail version 0.9.66

Checklist

  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local).
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • I have performed a short search for similar issues (to avoid opening a duplicate).
Originally created by @michelesr on GitHub (Dec 13, 2021). Original GitHub issue: https://github.com/netblue30/firejail/issues/4775 <!-- See the following links for help with formatting: https://guides.github.com/features/mastering-markdown/ https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax --> ### Description Highlight text formatter program fails to run due to lua libraries being [blacklisted](https://github.com/netblue30/firejail/blob/master/etc/inc/disable-interpreters.inc#L13). ### Steps to Reproduce _Steps to reproduce the behavior_ 1. Run in bash `firejail highlight` ### Expected behavior The program runs ### Actual behavior The program fails with the following error: ``` /usr/bin/highlight: error while loading shared libraries: liblua.so.5.4: cannot open shared object file: Permission denied ``` ### Behavior without a profile _What changed calling `LC_ALL=C firejail --noprofile /path/to/program` in a terminal?_ The program works normally. ### Environment - Arch Linux - Firejail version 0.9.66 ### Checklist <!-- Note: Items are checked with an "x", like so: - [x] This is a checked item. --> - [x] The issues is caused by firejail (i.e. running the program by path (e.g. `/usr/bin/vlc`) "fixes" it). - [x] I can reproduce the issue without custom modifications (e.g. globals.local). - [x] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [x] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] I have performed a short search for similar issues (to avoid opening a duplicate).
Author
Owner

@ghost commented on GitHub (Dec 13, 2021):

@michelesr Can you confirm the app works when adding the below to your highlight.local:

# Allow lua (blacklisted by disable-interpreters.inc)
include allow-lua.inc
<!-- gh-comment-id:992549115 --> @ghost commented on GitHub (Dec 13, 2021): @michelesr Can you confirm the app works when adding the below to your highlight.local: ``` # Allow lua (blacklisted by disable-interpreters.inc) include allow-lua.inc ```
Author
Owner

@michelesr commented on GitHub (Dec 13, 2021):

Can you confirm the app works when adding the below to your highlight.local:

Yes, it works.

<!-- gh-comment-id:992562477 --> @michelesr commented on GitHub (Dec 13, 2021): > Can you confirm the app works when adding the below to your highlight.local: Yes, it works.
Author
Owner

@ghost commented on GitHub (Dec 13, 2021):

@michelesr Thanks for reporting this and confirming the fix! I'll add a PR to get this ready for the next milestone.

<!-- gh-comment-id:992565468 --> @ghost commented on GitHub (Dec 13, 2021): @michelesr Thanks for reporting this and confirming the fix! I'll add a PR to get this ready for the next milestone.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2773
No description provided.