663ea0 pid1: make sure to restore correct default values for some rlimits

1 file Authored by Jan Synacek 4 years ago, Committed by Packit Service 4 years ago,
    pid1: make sure to restore correct default values for some rlimits
    
    Commit fb39af4ce42d7ef9af63009f271f404038703704 forgot to restore the default
    rlimit values (RLIMIT_NOFILE and RLIMIT_MEMLOCK) while PID1 is reloading.
    
    This patch extracts the code in charge of initializing the default values for
    those rlimits in order to create dedicated functions, which take care of their
    initialization.
    
    These functions are then called in parse_configuration() so we make sure that
    the default values for these rlimits get restored every time PID1 is reloading
    its configuration.
    
    (cherry picked from commit a9fd4cd1206832a61aaf61fff583bb133e6cb965)
    Resolves: #1789930
    
    patch_name: 0321-pid1-make-sure-to-restore-correct-default-values-for.patch
    present_in_specfile: true
    location_in_specfile: 321
    squash_commits: true
    
        
file modified
+106 -29