File tree 1 file changed +8
-15
lines changed
1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -52,21 +52,14 @@ jobs:
52
52
53
53
- name : Examine bwrap situation
54
54
run : |
55
- echo '#!/bin/bash
56
- bwrap --dev-bind "$1" / \
57
- --proc /proc \
58
- --dev /dev \
59
- --tmpfs /tmp \
60
- --ro-bind /usr /usr \
61
- --ro-bind /bin /bin \
62
- --ro-bind /lib /lib \
63
- --ro-bind /etc /etc \
64
- --symlink usr/lib /lib \
65
- --symlink usr/bin /bin \
66
- --dir /home \
67
- --dir /root \
68
- --chdir / \
69
- /bin/bash' >> bwrap.sh
55
+ echo '#!/bin/bash' >> bwrap.sh
56
+ echo 'bwrap --dev-bind "$1" / \' >> bwrap.sh
57
+ echo '--proc /proc --dev /dev \' >> bwrap.sh
58
+ echo '--tmpfs /tmp --ro-bind /usr /usr \' >> bwrap.sh
59
+ echo '--ro-bind /bin /bin --ro-bind /lib /lib \' >> bwrap.sh
60
+ echo '--ro-bind /etc /etc --symlink usr/lib /lib \' >> bwrap.sh
61
+ echo '--symlink usr/bin /bin --dir /home --dir /root \' >> bwrap.sh
62
+ echo '--chdir / /bin/bash' >> bwrap.sh
70
63
chmod +x bwrap.sh
71
64
cp bwrap.sh /usr/sbin/chroot
72
65
You can’t perform that action at this time.
0 commit comments