Skip to content

Make PIE building/linking mandatory #48

Open

Description

@TheAssassin

Future runtime types must be linked as PIE. Current ones should. This allows the kernel to apply ASLR and makes the runtime compatible with tools like https://github.com/io12/userland-execve-rust.

Activity

  1. probonopd commented on Nov 28, 2024

    @probonopd
    Member

    Please elaborate the motivation for this. Especially why you think it should be a "must".

  2. TheAssassin commented on Nov 28, 2024

    @TheAssassin
    MemberAuthor

    See AppImage/type2-runtime#88 for additional context. Using PIE is an advantage security wise (it allows the kernel to apply ASLR, non-PIC code cannot be loaded that way). Also, it allows the runtime to be launched via https://github.com/io12/userland-execve-rust, which is a convenient way for tools like AppImageLauncher to launch statically linked runtimes while bypassing binfmt_misc. It doesn't cost anything either and should be possible with any modern compiler toolchain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions