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

Commits on Oct 19, 2021

  1. Save and restore errno in init()

    Fixes passthrough with environment variable.
    
    Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
    topimiettinen committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    25cce2c View commit details
    Browse the repository at this point in the history
  2. Fix profile tests with passthrough

    Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
    topimiettinen committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    1564ca3 View commit details
    Browse the repository at this point in the history
  3. Provide a temporary calloc() for dlsym()

    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>
    topimiettinen committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    3b2143e View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2021

  1. Load profiles from multiple locations, default profiles

    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 committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    1047dde View commit details
    Browse the repository at this point in the history