Skip to content

SELinux Prevents zpoline - map failed Error #21

Open
@ossie-git

Description

In case anyone using an SELinux-enabled system runs into the following error:

$ LIBZPHOOK=./apps/basic/libzphook_basic.so LD_PRELOAD=./libzpoline.so /bin/ls
map failed
NOTE: /proc/sys/vm/mmap_min_addr should be set 0

the root cause is SELinux. By setting it to Permissive mode, you can get it to work:

sudo setenforce 0

You can turn it back to enforcement afterwards:

sudo setenforce 1

Activity

yasukata

yasukata commented on Oct 21, 2024

@yasukata
Owner

I have added a note on this issue in README.

Thank you very much for your report which has improved the documentation.

Jaslayer

Jaslayer commented on Nov 5, 2024

@Jaslayer

It might be more appropriate to use :

sudo setsebool -P mmap_low_allowed 1
yasukata

yasukata commented on Nov 7, 2024

@yasukata
Owner

It is good to know that setsebool can selectively enable or disable access control settings.

Thank you very much for sharing the helpful information.

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @yasukata@ossie-git@Jaslayer

      Issue actions

        SELinux Prevents zpoline - `map failed` Error · Issue #21 · yasukata/zpoline