Skip to content

Compilation: enable PIE and PIC #68

Description

@kewde

For security reasons it's better to compile our code with position indepent code/execution, rendering the stack unexecutable protecting against buffer overflows.

LevelDB needs to be compiled with -fPIC
Shadow needs to be compiled with -e PIE=1

The makefile.unix in src specifies a way (scanelf) to check if a binary is compiled with non-executable stack.

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions