Add note about APE loader and noexec mounts (#707)

This commit is contained in:
Gavin Hayes 2022-12-22 02:00:51 -05:00 committed by GitHub
parent f6b3019796
commit 5c0ce6b83e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,9 +57,13 @@ sudo sh -c 'echo -1 >/proc/sys/fs/binfmt_misc/status'
Since we used the `ape-no-modify-self.o` bootloader (rather than Since we used the `ape-no-modify-self.o` bootloader (rather than
`ape.o`) your executable will not modify itself when it's run. What `ape.o`) your executable will not modify itself when it's run. What
it'll instead do, is extract a 4kb program to `${TMPDIR:-${HOME:-.}}` it'll instead do, is extract a 4kb program (the [APE loader](https://justine.lol/apeloader/))
that maps your program into memory without needing to copy it. It's to `${TMPDIR:-${HOME:-.}}` that maps your program into memory without
possible to install the APE loader systemwide as follows. needing to copy it. The APE loader must be in an executable location
(e.g. not stored on a `noexec` mount) for it to run. See below for
alternatives:
It's possible to install the APE loader systemwide as follows.
```sh ```sh
# System-Wide APE Install # System-Wide APE Install