Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SELinux Prevents zpoline - map failed Error #21

Open
ossie-git opened this issue Oct 18, 2024 · 3 comments
Open

SELinux Prevents zpoline - map failed Error #21

ossie-git opened this issue Oct 18, 2024 · 3 comments

Comments

@ossie-git
Copy link

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
@yasukata
Copy link
Owner

I have added a note on this issue in README.

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

@Jaslayer
Copy link

Jaslayer commented Nov 5, 2024

It might be more appropriate to use :

sudo setsebool -P mmap_low_allowed 1

@yasukata
Copy link
Owner

yasukata commented Nov 7, 2024

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants