Skip to content

Commit

Permalink
snapcraft: add snapdfips build tag for FIPS builds
Browse files Browse the repository at this point in the history
Set the snapdfips build tag when building in FIPS mode, such that FIPS compliant
configuration is enforced at startup.

Signed-off-by: Maciej Borzecki <[email protected]>
  • Loading branch information
bboozzoo authored and Meulengracht committed Sep 3, 2024
1 parent 3d818c0 commit a5ebcb4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-aux/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,11 @@ parts:
if [ -f fips-build ]; then
case "${cmd}" in
# per snapd FIPS spec, FIPS build tags are only relevant for snapd,
# snap, snap-repair and snap-bootstrap
# snap, snap-repair and snap-bootstrap, tags:
# - goexperiment.opensslcrypto - enable openssl crypto backend
# - snapdfips - enable additional FIPS support (enforce FIPS compliant TLS)
bin/snap|lib/snapd/snapd|lib/snapd/snap-repair|lib/snapd/snap-bootstrap)
TAGS+=(goexperiment.opensslcrypto)
TAGS+=(goexperiment.opensslcrypto snapdfips)
;;
esac
fi
Expand Down

0 comments on commit a5ebcb4

Please sign in to comment.