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

Load profiles from multiple locations, default profiles #16

Merged
merged 4 commits into from
Oct 20, 2021

Conversation

topimiettinen
Copy link
Owner

This is on top of #15.

Fixes passthrough with environment variable.

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
dlsym() calls calloc(), so let's use a temporary version. This is only
used for resolving symbol 'calloc' for passthrough.

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
Copy link
Contributor

@rusty-snake rusty-snake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

meson.build Outdated Show resolved Hide resolved
libaslrmalloc.c Outdated Show resolved Hide resolved
libaslrmalloc.c Outdated Show resolved Hide resolved
@topimiettinen
Copy link
Owner Author

GitHub CI fails due to timeout.

Read profiles in sequence. $profile means either 'app.profile' or if
that's not found, 'default.profile'.

1. /usr/lib/libaslrmalloc/profile/$profile (distro)
2. /etc/libaslrmalloc/profile/$profile (local admin overriding the distro)
3.  ~/.config/libaslrmalloc/profile/$profile (user permanently overriding
    the admin, when allowed (not for SUID)),
    either with $XDG_CONFIG_HOME or $HOME/.config (without $XDG_CONFIG_HOME)
4.  environment (user temporarily overriding 3., when allowed (not for SUID))

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
@topimiettinen topimiettinen merged commit 1047dde into master Oct 20, 2021
@topimiettinen topimiettinen deleted the multiple-profiles branch November 18, 2021 20:06
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

Successfully merging this pull request may close these issues.

2 participants