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

ENT-10429: Guarded against race condition in install scriptlets with restorecon (3.18) #1309

Merged
merged 1 commit into from
Oct 2, 2023

Commits on Oct 2, 2023

  1. Guarded against race condition in install scriptlets with restorecon

    Try to run restorecon with the least number of processes/services running that might
    make changes to /var/cfengine and /opt/cfengine
    
    restorecon seems to gather a list of files up-front and then process which can take more
    than a few seconds.
    
    When services such as database or cf-execd/cf-agent/etc are running files can change
    causing restorecon to error out when files are removed.
    
    The files being removed doesn't create a risk of bad SELinux labels since they are gone.
    
    Ticket: ENT-10429
    Changelog: title
    (cherry picked from commit ee76818)
    craigcomstock committed Oct 2, 2023
    Configuration menu
    Copy the full SHA
    06d1a80 View commit details
    Browse the repository at this point in the history