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

Add sleep for non-root calls of systemd-notify #2822

Closed
wants to merge 1 commit into from

Commits on Mar 10, 2016

  1. Add sleep for non-root calls of systemd-notify

    Fixes systemd#2379
    
    Without `CAP_SYS_ADMIN` it's not possible to fake user credentials in
    `sd_pid_notify` call, and in this case everything depends on timing -
    whether systemd will be able to get the cgroup of sending process before
    it exists or not.
    
    Adding `sleep(3)` for non-root users will at least make `systemd-notify`
    useful for them.
    binarin committed Mar 10, 2016
    Configuration menu
    Copy the full SHA
    20a749b View commit details
    Browse the repository at this point in the history