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

Use logind instead of utmp because of Y2038 #2300

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Commits on Oct 24, 2023

  1. Use logind instead of utmp because of Y2038

    Bi-arch systems line x86-64 present the Y2038 problem, where an overflow
    can be produced because some glibc compatibility decissions (see
    https://github.com/thkukuk/utmpx/blob/main/Y2038.md for more
    information)
    
    This patch uses logind from systemd instead of utmp on Linux systems, if
    the systemd version is support the new API (>= 254).
    
    Signed-off-by: Alberto Planas <aplanas@suse.com>
    aplanas committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    76368a0 View commit details
    Browse the repository at this point in the history
  2. Address review feedback

    Signed-off-by: Alberto Planas <aplanas@suse.com>
    aplanas committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    d3f72e4 View commit details
    Browse the repository at this point in the history
  3. Make both function public

    Signed-off-by: Alberto Planas <aplanas@suse.com>
    aplanas committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    3f233c5 View commit details
    Browse the repository at this point in the history
  4. Update _pslinux.py and other changes

    Signed-off-by: Alberto Planas <aplanas@suse.com>
    aplanas committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    9bdfa1e View commit details
    Browse the repository at this point in the history
  5. fix compilation errors

    Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
    giampaolo authored and aplanas committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    6fb4801 View commit details
    Browse the repository at this point in the history
  6. fix failing test

    Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
    giampaolo authored and aplanas committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    27c4880 View commit details
    Browse the repository at this point in the history
  7. Drop py_user_proc from the users systemd version

    Signed-off-by: Alberto Planas <aplanas@suse.com>
    aplanas committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    a9b9472 View commit details
    Browse the repository at this point in the history
  8. Cache the dlopen handle

    Signed-off-by: Alberto Planas <aplanas@suse.com>
    aplanas committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    494f357 View commit details
    Browse the repository at this point in the history
  9. Make remote_host optional

    Signed-off-by: Alberto Planas <aplanas@suse.com>
    aplanas committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    25b8de0 View commit details
    Browse the repository at this point in the history
  10. Raise an expcetion when systemd fails

    Signed-off-by: Alberto Planas <aplanas@suse.com>
    aplanas committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    9295c5b View commit details
    Browse the repository at this point in the history