Skip to content

Commit

Permalink
Call modinfo via sudo too
Browse files Browse the repository at this point in the history
Whonix sets /lib/modules as readable only by root
  • Loading branch information
marmarek committed Mar 28, 2024
1 parent 73f4219 commit fd1e5ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions receiver/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ trap exit ERR

# Test if v4l2loopback kernel module is installed
test_v4l2loopback() {
# Prepend sbin directories to PATH because some distributions don't include it in the user profile by default
PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH" modinfo v4l2loopback &> /dev/null
# call modinfo via sudo because Whonix sets 0700 on /lib/modules
sudo --non-interactive modinfo v4l2loopback &> /dev/null
}

0 comments on commit fd1e5ee

Please sign in to comment.