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

refactor: optimize flags and SetLabel #9762

Merged
merged 1 commit into from
Nov 21, 2024

Commits on Nov 21, 2024

  1. refactor: optimize flags and SetLabel

    Do not do string lookups in repetitive calls. We do not support changing SELinux status during runtime, so once we read this we can assume status does not change.
    
    Also avoid unneeded FS writes when appropriate label is already set on file.
    
    Signed-off-by: Dmitry Sharshakov <[email protected]>
    dsseng committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    4caeae2 View commit details
    Browse the repository at this point in the history