-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
1,524 additions
and
392 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"Signatures": { | ||
"azl-compliance-1.0.1.tar.gz": "1d96b99ec755500383e5ff6bad01f1ac85848f067488f3ce29a99e6eb57a86b7" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
Summary: Azure Linux compliance package to meet all sorts of compliance rules | ||
Name: azl-compliance | ||
Version: 1.0.1 | ||
Release: 1%{?dist} | ||
License: BSD-3-Clause | ||
Vendor: Microsoft Corporation | ||
Distribution: Mariner | ||
Group: System Environment/Base | ||
URL: https://aka.ms/mariner | ||
Source0: %{_mariner_sources_url}/%{name}-%{version}.tar.gz | ||
Requires: dnf | ||
Requires: gnutls | ||
Requires: grub2 | ||
Requires: grubby | ||
Requires: rpm | ||
Requires: rsyslog | ||
Requires: sudo | ||
BuildRequires: rust | ||
|
||
%description | ||
Azure Linux compliance package to configure systems to meet FIPS and FedRAMP compliance. | ||
|
||
%prep | ||
%autosetup | ||
|
||
%build | ||
cd azl-compliance | ||
cargo build --release --offline | ||
|
||
%install | ||
mkdir -p %{buildroot}%{_sysconfdir}/azl-compliance/ | ||
mkdir -p %{buildroot}%{_bindir} | ||
install -m 0755 ./azl-compliance/target/release/azl-compliance %{buildroot}%{_bindir}/azl-compliance | ||
mkdir -p %{buildroot}%{_sysconfdir}/azl-compliance/fips | ||
mkdir -p %{buildroot}%{_sysconfdir}/azl-compliance/fedramp/remediation_scripts | ||
install -m 0755 fips/*.sh %{buildroot}%{_sysconfdir}/azl-compliance/fips/ | ||
install -m 0755 fedramp/*.sh %{buildroot}%{_sysconfdir}/azl-compliance/fedramp/ | ||
install -m 0644 fedramp/*.txt %{buildroot}%{_sysconfdir}/azl-compliance/fedramp/ | ||
install -m 0755 fedramp/remediation_scripts/* %{buildroot}%{_sysconfdir}/azl-compliance/fedramp/remediation_scripts/ | ||
install -m 0644 azl-compliance-fips.json %{buildroot}%{_sysconfdir}/azl-compliance/ | ||
install -m 0644 azl-compliance-fedramp.json %{buildroot}%{_sysconfdir}/azl-compliance/ | ||
|
||
%files | ||
%license LICENSE | ||
%{_bindir}/azl-compliance | ||
%{_sysconfdir}/azl-compliance/fips | ||
%{_sysconfdir}/azl-compliance/azl-compliance-fips.json | ||
%{_sysconfdir}/azl-compliance/fedramp | ||
%{_sysconfdir}/azl-compliance/azl-compliance-fedramp.json | ||
|
||
%check | ||
cd azl-compliance | ||
cargo test --release --offline | ||
|
||
%changelog | ||
* Tue Mar 19 2024 Tobias Brick <tobiasb@microsoft.com> 1.0.1-1 | ||
- Original version for CBL-Mariner. | ||
- License verified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.