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

tests/kola: add exceptions in upgrade test SELinux checks #3192

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

dustymabe
Copy link
Member

These are failing in the extended upgrade tests and we need to
add them as exceptions for now while we work out the fixes.
@dustymabe dustymabe enabled auto-merge (rebase) October 4, 2024 19:18
declare -A exceptions=(
['/var/lib/cni']=1
['/etc/selinux/targeted/semanage.read.LOCK']=1
['/etc/selinux/targeted/semanage.trans.LOCK']=1
['/etc/systemd/journald.conf.d']=1
['/etc/systemd/journald.conf.d/forward-to-console.conf']=1
['/boot/lost+found']=1
['/var/lib/systemd/home']=1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for my understanding - I assume that by adding this it ensures that the script doesn't falsely flag an error during SELinux policy updates?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it just means that if that file shows up in the list of ones that would be relabeled (i.e. it doesn't match the current policy) then we allow it because of some known SELinux policy change that happened.

Copy link
Member

@aaradhak aaradhak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dustymabe dustymabe merged commit a670ccc into coreos:testing-devel Oct 4, 2024
3 checks passed
@dustymabe dustymabe deleted the dusty-upgrade-test-fixes branch October 4, 2024 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants