Prevent FIPS packages been overwrite by official version #21530
+13
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prevent FIPS packages been overwrite by official version
Why I did it
FIPS break on 202405 and later version, because openssl and libk5crypto3 Debian offical version higher than FIPS version, so FIPS openssl been upgrade when install python-dbus:
Reading package lists...
Building dependency tree...
Reading state information...
python3-dbus is already the newest version (1.3.2-4+b1).
The following additional packages will be installed:
libk5crypto3 openssl <== python3-dbus depends on libk5crypto3 and openssl
Suggested packages:
krb5-doc krb5-user
The following packages will be upgraded:
libk5crypto3 openssl
2 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
...
Unpacking libk5crypto3:amd64 (1.20.1-2+deb12u2) over (1.20.1-2+deb12u1+fips) ... <== debian version been installed
Unpacking openssl (3.0.15-1
deb12u1) over (3.0.11-1deb12u2+fips) ...Work item tracking
How I did it
Hold FIPS packaged during build image.
How to verify it
Pass all UT.
Manually confirm the package upgrade issue fixed:
openssl set on hold.
...
Reading package lists...
Building dependency tree...
Reading state information...
python3-dbus is already the newest version (1.3.2-4+b1).
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded. <== openssl not upgrade any more
Canceled hold on openssl.
admin@vlab-01:
$ apt list | grep fipsdeb12u2+fips amd64 [installed,local]libk5crypto3/now 1.20.1-2+deb12u1+fips amd64 [installed,local]
openssl/now 3.0.11-1
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Prevent FIPS packages been overwrite by official version
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)