Skip to content

Commit

Permalink
Update devel.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
oklopfer authored May 6, 2024
1 parent bf018c0 commit f3bdb27
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,14 @@ jobs:
- name: Examine bwrap situation
run: |
echo '#!/bin/bash
bwrap --dev-bind "$1" / \
--proc /proc \
--dev /dev \
--tmpfs /tmp \
--ro-bind /usr /usr \
--ro-bind /bin /bin \
--ro-bind /lib /lib \
--ro-bind /etc /etc \
--symlink usr/lib /lib \
--symlink usr/bin /bin \
--dir /home \
--dir /root \
--chdir / \
/bin/bash' >> bwrap.sh
echo '#!/bin/bash' >> bwrap.sh
echo 'bwrap --dev-bind "$1" / \' >> bwrap.sh
echo '--proc /proc --dev /dev \' >> bwrap.sh
echo '--tmpfs /tmp --ro-bind /usr /usr \' >> bwrap.sh
echo '--ro-bind /bin /bin --ro-bind /lib /lib \' >> bwrap.sh
echo '--ro-bind /etc /etc --symlink usr/lib /lib \' >> bwrap.sh
echo '--symlink usr/bin /bin --dir /home --dir /root \' >> bwrap.sh
echo '--chdir / /bin/bash' >> bwrap.sh
chmod +x bwrap.sh
cp bwrap.sh /usr/sbin/chroot
Expand Down

0 comments on commit f3bdb27

Please sign in to comment.