|
|
4b36bb |
# keylime-agent-rust.spec
|
|
|
4b36bb |
# Generated by rust2rpm 20
|
|
|
4b36bb |
|
|
|
4b36bb |
%bcond_without check
|
|
|
4b36bb |
|
|
|
4b36bb |
%global crate keylime_agent
|
|
|
4b36bb |
|
|
|
4b36bb |
# RHEL: Use bundled deps as it doesn't ship Rust libraries
|
|
|
4b36bb |
%global bundled_rust_deps 1
|
|
|
4b36bb |
|
|
|
4b36bb |
Name: keylime-agent-rust
|
|
|
4b36bb |
Version: 0.1.0
|
|
|
4b36bb |
Release: 1%{?dist}
|
|
|
4b36bb |
Summary: Rust agent for Keylime
|
|
|
4b36bb |
|
|
|
4b36bb |
# Upstream license specification: Apache-2.0
|
|
|
4b36bb |
#
|
|
|
4b36bb |
# The build dependencies have the following licenses:
|
|
|
4b36bb |
#
|
|
|
4b36bb |
# 0BSD or MIT or ASL 2.0
|
|
|
4b36bb |
# ASL 2.0
|
|
|
4b36bb |
# ASL 2.0 or Boost
|
|
|
4b36bb |
# ASL 2.0 or MIT
|
|
|
4b36bb |
# ASL 2.0 with exceptions
|
|
|
4b36bb |
# BSD
|
|
|
4b36bb |
# MIT
|
|
|
4b36bb |
# MIT or ASL 2.0
|
|
|
4b36bb |
# MIT or ASL 2.0 or zlib
|
|
|
4b36bb |
# MIT or zlib or ASL 2.0
|
|
|
4b36bb |
# Unlicense or MIT
|
|
|
4b36bb |
# zlib or ASL 2.0 or MIT
|
|
|
4b36bb |
#
|
|
|
4b36bb |
License: ASL 2.0 and BSD and MIT
|
|
|
4b36bb |
URL: https://github.com/keylime/rust-keylime/
|
|
|
4b36bb |
# The source tarball is downloaded using the following commands:
|
|
|
4b36bb |
# spectool -g keylime-agent-rust.spec
|
|
|
4b36bb |
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
|
|
|
4b36bb |
# The vendor tarball is created using cargo-vendor-filterer to remove Windows
|
|
|
4b36bb |
# related files (https://github.com/cgwalters/cargo-vendor-filterer)
|
|
|
4b36bb |
# tar xf rust-keylime-%%{version}.tar.gz
|
|
|
4b36bb |
# cd rust-keylime-%%{version}
|
|
|
4b36bb |
# cargo vendor-filterer --platform x86_64-unknown-linux-gnu \
|
|
|
4b36bb |
# --platform powerpc64le-unknown-linux-gnu \
|
|
|
4b36bb |
# --platform aarch64-unknown-linux-gnu \
|
|
|
4b36bb |
# --platform i686-unknown-linux-gnu \
|
|
|
4b36bb |
# --platform s390x-unknown-linux-gnu \
|
|
|
4b36bb |
# --exclude-crate-path "libloading#tests"
|
|
|
4b36bb |
# tar jcf rust-keylime-%%{version}-vendor.tar.xz vendor
|
|
|
4b36bb |
Source1: rust-keylime-%{version}-vendor.tar.xz
|
|
|
4b36bb |
# Drop dependencies and adjust the features
|
|
|
4b36bb |
Patch0: rust-keylime-adjust-features.patch
|
|
|
4b36bb |
|
|
|
4b36bb |
ExclusiveArch: %{rust_arches}
|
|
|
4b36bb |
|
|
|
4b36bb |
Requires: tpm2-tss
|
|
|
4b36bb |
|
|
|
4b36bb |
# The keylime-base package provides the configuration file from the python
|
|
|
4b36bb |
# implementation which ca be used for the rust implementation. It is available
|
|
|
4b36bb |
# from Fedora 36
|
|
|
4b36bb |
Requires: keylime-base
|
|
|
4b36bb |
|
|
|
4b36bb |
BuildRequires: systemd
|
|
|
4b36bb |
BuildRequires: openssl-devel
|
|
|
4b36bb |
BuildRequires: libarchive-devel
|
|
|
4b36bb |
BuildRequires: tpm2-tss-devel
|
|
|
4b36bb |
BuildRequires: rust-toolset
|
|
|
4b36bb |
BuildRequires: clang
|
|
|
4b36bb |
|
|
|
4b36bb |
# Virtual Provides to support swapping between Python and Rust implementation
|
|
|
4b36bb |
Provides: keylime-agent
|
|
|
4b36bb |
Conflicts: keylime-agent
|
|
|
4b36bb |
|
|
|
4b36bb |
Provides: bundled(crate(actix-codec)) = 0.5.0
|
|
|
4b36bb |
Provides: bundled(crate(actix-http)) = 3.0.4
|
|
|
4b36bb |
Provides: bundled(crate(actix-macros)) = 0.2.3
|
|
|
4b36bb |
Provides: bundled(crate(actix-router)) = 0.5.0
|
|
|
4b36bb |
Provides: bundled(crate(actix-rt)) = 2.7.0
|
|
|
4b36bb |
Provides: bundled(crate(actix-server)) = 2.1.1
|
|
|
4b36bb |
Provides: bundled(crate(actix-service)) = 2.0.2
|
|
|
4b36bb |
Provides: bundled(crate(actix-tls)) = 3.0.3
|
|
|
4b36bb |
Provides: bundled(crate(actix-utils)) = 3.0.0
|
|
|
4b36bb |
Provides: bundled(crate(actix-web)) = 4.0.1
|
|
|
4b36bb |
Provides: bundled(crate(actix-web-codegen)) = 4.0.0
|
|
|
4b36bb |
Provides: bundled(crate(adler)) = 1.0.2
|
|
|
4b36bb |
Provides: bundled(crate(ahash)) = 0.4.7
|
|
|
4b36bb |
Provides: bundled(crate(ahash)) = 0.7.6
|
|
|
4b36bb |
Provides: bundled(crate(aho-corasick)) = 0.7.18
|
|
|
4b36bb |
Provides: bundled(crate(alloc-no-stdlib)) = 2.0.3
|
|
|
4b36bb |
Provides: bundled(crate(alloc-stdlib)) = 0.2.1
|
|
|
4b36bb |
Provides: bundled(crate(ansi_term)) = 0.12.1
|
|
|
4b36bb |
Provides: bundled(crate(async-trait)) = 0.1.56
|
|
|
4b36bb |
Provides: bundled(crate(atty)) = 0.2.14
|
|
|
4b36bb |
Provides: bundled(crate(autocfg)) = 1.1.0
|
|
|
4b36bb |
Provides: bundled(crate(base64)) = 0.13.0
|
|
|
4b36bb |
Provides: bundled(crate(bindgen)) = 0.59.2
|
|
|
4b36bb |
Provides: bundled(crate(bitfield)) = 0.13.2
|
|
|
4b36bb |
Provides: bundled(crate(bitflags)) = 1.3.2
|
|
|
4b36bb |
Provides: bundled(crate(block-buffer)) = 0.10.2
|
|
|
4b36bb |
Provides: bundled(crate(brotli)) = 3.3.4
|
|
|
4b36bb |
Provides: bundled(crate(brotli-decompressor)) = 2.3.2
|
|
|
4b36bb |
Provides: bundled(crate(bytes)) = 1.1.0
|
|
|
4b36bb |
Provides: bundled(crate(bytestring)) = 1.0.0
|
|
|
4b36bb |
Provides: bundled(crate(cc)) = 1.0.73
|
|
|
4b36bb |
Provides: bundled(crate(cexpr)) = 0.6.0
|
|
|
4b36bb |
Provides: bundled(crate(cfg-if)) = 1.0.0
|
|
|
4b36bb |
Provides: bundled(crate(clang-sys)) = 1.3.3
|
|
|
4b36bb |
Provides: bundled(crate(clap)) = 2.34.0
|
|
|
4b36bb |
Provides: bundled(crate(clap)) = 3.1.18
|
|
|
4b36bb |
Provides: bundled(crate(clap_derive)) = 3.1.18
|
|
|
4b36bb |
Provides: bundled(crate(clap_lex)) = 0.2.0
|
|
|
4b36bb |
Provides: bundled(crate(compress-tools)) = 0.12.2
|
|
|
4b36bb |
Provides: bundled(crate(config)) = 0.13.2
|
|
|
4b36bb |
Provides: bundled(crate(convert_case)) = 0.4.0
|
|
|
4b36bb |
Provides: bundled(crate(cookie)) = 0.16.0
|
|
|
4b36bb |
Provides: bundled(crate(cpufeatures)) = 0.2.2
|
|
|
4b36bb |
Provides: bundled(crate(crc32fast)) = 1.3.2
|
|
|
4b36bb |
Provides: bundled(crate(crypto-common)) = 0.1.3
|
|
|
4b36bb |
Provides: bundled(crate(derive_more)) = 0.99.17
|
|
|
4b36bb |
Provides: bundled(crate(digest)) = 0.10.5
|
|
|
4b36bb |
Provides: bundled(crate(dlv-list)) = 0.2.3
|
|
|
4b36bb |
Provides: bundled(crate(dlv-list)) = 0.3.0
|
|
|
4b36bb |
Provides: bundled(crate(either)) = 1.8.0
|
|
|
4b36bb |
Provides: bundled(crate(encoding_rs)) = 0.8.31
|
|
|
4b36bb |
Provides: bundled(crate(enumflags2)) = 0.7.5
|
|
|
4b36bb |
Provides: bundled(crate(enumflags2_derive)) = 0.7.4
|
|
|
4b36bb |
Provides: bundled(crate(env_logger)) = 0.7.1
|
|
|
4b36bb |
Provides: bundled(crate(env_logger)) = 0.9.0
|
|
|
4b36bb |
Provides: bundled(crate(fastrand)) = 1.7.0
|
|
|
4b36bb |
Provides: bundled(crate(firestorm)) = 0.5.1
|
|
|
4b36bb |
Provides: bundled(crate(flate2)) = 1.0.24
|
|
|
4b36bb |
Provides: bundled(crate(fnv)) = 1.0.7
|
|
|
4b36bb |
Provides: bundled(crate(foreign-types)) = 0.3.2
|
|
|
4b36bb |
Provides: bundled(crate(foreign-types-shared)) = 0.1.1
|
|
|
4b36bb |
Provides: bundled(crate(form_urlencoded)) = 1.0.1
|
|
|
4b36bb |
Provides: bundled(crate(futures)) = 0.3.21
|
|
|
4b36bb |
Provides: bundled(crate(futures-channel)) = 0.3.21
|
|
|
4b36bb |
Provides: bundled(crate(futures-core)) = 0.3.21
|
|
|
4b36bb |
Provides: bundled(crate(futures-executor)) = 0.3.21
|
|
|
4b36bb |
Provides: bundled(crate(futures-io)) = 0.3.21
|
|
|
4b36bb |
Provides: bundled(crate(futures-macro)) = 0.3.21
|
|
|
4b36bb |
Provides: bundled(crate(futures-sink)) = 0.3.21
|
|
|
4b36bb |
Provides: bundled(crate(futures-task)) = 0.3.21
|
|
|
4b36bb |
Provides: bundled(crate(futures-util)) = 0.3.21
|
|
|
4b36bb |
Provides: bundled(crate(generic-array)) = 0.14.5
|
|
|
4b36bb |
Provides: bundled(crate(getrandom)) = 0.2.6
|
|
|
4b36bb |
Provides: bundled(crate(glob)) = 0.3.0
|
|
|
4b36bb |
Provides: bundled(crate(h2)) = 0.3.13
|
|
|
4b36bb |
Provides: bundled(crate(hashbrown)) = 0.9.1
|
|
|
4b36bb |
Provides: bundled(crate(hashbrown)) = 0.11.2
|
|
|
4b36bb |
Provides: bundled(crate(hashbrown)) = 0.12.3
|
|
|
4b36bb |
Provides: bundled(crate(heck)) = 0.4.0
|
|
|
4b36bb |
Provides: bundled(crate(hex)) = 0.4.3
|
|
|
4b36bb |
Provides: bundled(crate(hostname-validator)) = 1.1.1
|
|
|
4b36bb |
Provides: bundled(crate(http)) = 0.2.8
|
|
|
4b36bb |
Provides: bundled(crate(http-body)) = 0.4.5
|
|
|
4b36bb |
Provides: bundled(crate(httparse)) = 1.7.1
|
|
|
4b36bb |
Provides: bundled(crate(httpdate)) = 1.0.2
|
|
|
4b36bb |
Provides: bundled(crate(humantime)) = 1.3.0
|
|
|
4b36bb |
Provides: bundled(crate(humantime)) = 2.1.0
|
|
|
4b36bb |
Provides: bundled(crate(hyper)) = 0.14.19
|
|
|
4b36bb |
Provides: bundled(crate(hyper-tls)) = 0.5.0
|
|
|
4b36bb |
Provides: bundled(crate(idna)) = 0.2.3
|
|
|
4b36bb |
Provides: bundled(crate(indexmap)) = 1.8.2
|
|
|
4b36bb |
Provides: bundled(crate(ipnet)) = 2.5.0
|
|
|
4b36bb |
Provides: bundled(crate(itoa)) = 1.0.2
|
|
|
4b36bb |
Provides: bundled(crate(jobserver)) = 0.1.24
|
|
|
4b36bb |
Provides: bundled(crate(json5)) = 0.4.1
|
|
|
4b36bb |
Provides: bundled(crate(keylime_agent)) = 0.1.0
|
|
|
4b36bb |
Provides: bundled(crate(language-tags)) = 0.3.2
|
|
|
4b36bb |
Provides: bundled(crate(lazy_static)) = 1.4.0
|
|
|
4b36bb |
Provides: bundled(crate(lazycell)) = 1.3.0
|
|
|
4b36bb |
Provides: bundled(crate(libc)) = 0.2.126
|
|
|
4b36bb |
Provides: bundled(crate(libloading)) = 0.7.3
|
|
|
4b36bb |
Provides: bundled(crate(linked-hash-map)) = 0.5.6
|
|
|
4b36bb |
Provides: bundled(crate(local-channel)) = 0.1.3
|
|
|
4b36bb |
Provides: bundled(crate(local-waker)) = 0.1.3
|
|
|
4b36bb |
Provides: bundled(crate(lock_api)) = 0.4.7
|
|
|
4b36bb |
Provides: bundled(crate(log)) = 0.4.17
|
|
|
4b36bb |
Provides: bundled(crate(matches)) = 0.1.9
|
|
|
4b36bb |
Provides: bundled(crate(mbox)) = 0.6.0
|
|
|
4b36bb |
Provides: bundled(crate(memchr)) = 2.5.0
|
|
|
4b36bb |
Provides: bundled(crate(mime)) = 0.3.16
|
|
|
4b36bb |
Provides: bundled(crate(minimal-lexical)) = 0.2.1
|
|
|
4b36bb |
Provides: bundled(crate(miniz_oxide)) = 0.5.3
|
|
|
4b36bb |
Provides: bundled(crate(mio)) = 0.8.3
|
|
|
4b36bb |
Provides: bundled(crate(native-tls)) = 0.2.10
|
|
|
4b36bb |
Provides: bundled(crate(nom)) = 7.1.1
|
|
|
4b36bb |
Provides: bundled(crate(num-derive)) = 0.3.3
|
|
|
4b36bb |
Provides: bundled(crate(num-traits)) = 0.2.15
|
|
|
4b36bb |
Provides: bundled(crate(num_cpus)) = 1.13.1
|
|
|
4b36bb |
Provides: bundled(crate(num_threads)) = 0.1.6
|
|
|
4b36bb |
Provides: bundled(crate(oid)) = 0.2.1
|
|
|
4b36bb |
Provides: bundled(crate(once_cell)) = 1.12.0
|
|
|
4b36bb |
Provides: bundled(crate(openssl)) = 0.10.40
|
|
|
4b36bb |
Provides: bundled(crate(openssl-macros)) = 0.1.0
|
|
|
4b36bb |
Provides: bundled(crate(openssl-probe)) = 0.1.5
|
|
|
4b36bb |
Provides: bundled(crate(openssl-sys)) = 0.9.74
|
|
|
4b36bb |
Provides: bundled(crate(ordered-multimap)) = 0.3.1
|
|
|
4b36bb |
Provides: bundled(crate(ordered-multimap)) = 0.4.3
|
|
|
4b36bb |
Provides: bundled(crate(os_str_bytes)) = 6.1.0
|
|
|
4b36bb |
Provides: bundled(crate(parking_lot)) = 0.12.1
|
|
|
4b36bb |
Provides: bundled(crate(parking_lot_core)) = 0.9.3
|
|
|
4b36bb |
Provides: bundled(crate(paste)) = 1.0.7
|
|
|
4b36bb |
Provides: bundled(crate(pathdiff)) = 0.2.1
|
|
|
4b36bb |
Provides: bundled(crate(peeking_take_while)) = 0.1.2
|
|
|
4b36bb |
Provides: bundled(crate(percent-encoding)) = 2.1.0
|
|
|
4b36bb |
Provides: bundled(crate(pest)) = 2.3.1
|
|
|
4b36bb |
Provides: bundled(crate(pest_derive)) = 2.3.1
|
|
|
4b36bb |
Provides: bundled(crate(pest_generator)) = 2.3.1
|
|
|
4b36bb |
Provides: bundled(crate(pest_meta)) = 2.3.1
|
|
|
4b36bb |
Provides: bundled(crate(picky-asn1)) = 0.3.3
|
|
|
4b36bb |
Provides: bundled(crate(picky-asn1)) = 0.5.0
|
|
|
4b36bb |
Provides: bundled(crate(picky-asn1-der)) = 0.2.5
|
|
|
4b36bb |
Provides: bundled(crate(picky-asn1-der)) = 0.3.1
|
|
|
4b36bb |
Provides: bundled(crate(picky-asn1-x509)) = 0.6.1
|
|
|
4b36bb |
Provides: bundled(crate(pin-project-lite)) = 0.2.9
|
|
|
4b36bb |
Provides: bundled(crate(pin-utils)) = 0.1.0
|
|
|
4b36bb |
Provides: bundled(crate(pkg-config)) = 0.3.25
|
|
|
4b36bb |
Provides: bundled(crate(ppv-lite86)) = 0.2.16
|
|
|
4b36bb |
Provides: bundled(crate(pretty_env_logger)) = 0.4.0
|
|
|
4b36bb |
Provides: bundled(crate(proc-macro-error)) = 1.0.4
|
|
|
4b36bb |
Provides: bundled(crate(proc-macro-error-attr)) = 1.0.4
|
|
|
4b36bb |
Provides: bundled(crate(proc-macro2)) = 1.0.39
|
|
|
4b36bb |
Provides: bundled(crate(quick-error)) = 1.2.3
|
|
|
4b36bb |
Provides: bundled(crate(quote)) = 1.0.18
|
|
|
4b36bb |
Provides: bundled(crate(rand)) = 0.8.5
|
|
|
4b36bb |
Provides: bundled(crate(rand_chacha)) = 0.3.1
|
|
|
4b36bb |
Provides: bundled(crate(rand_core)) = 0.6.3
|
|
|
4b36bb |
Provides: bundled(crate(regex)) = 1.5.6
|
|
|
4b36bb |
Provides: bundled(crate(regex-syntax)) = 0.6.26
|
|
|
4b36bb |
Provides: bundled(crate(remove_dir_all)) = 0.5.3
|
|
|
4b36bb |
Provides: bundled(crate(reqwest)) = 0.11.10
|
|
|
4b36bb |
Provides: bundled(crate(ron)) = 0.7.1
|
|
|
4b36bb |
Provides: bundled(crate(rust-ini)) = 0.17.0
|
|
|
4b36bb |
Provides: bundled(crate(rust-ini)) = 0.18.0
|
|
|
4b36bb |
Provides: bundled(crate(rustc-hash)) = 1.1.0
|
|
|
4b36bb |
Provides: bundled(crate(rustc_version)) = 0.3.3
|
|
|
4b36bb |
Provides: bundled(crate(rustc_version)) = 0.4.0
|
|
|
4b36bb |
Provides: bundled(crate(ryu)) = 1.0.10
|
|
|
4b36bb |
Provides: bundled(crate(scopeguard)) = 1.1.0
|
|
|
4b36bb |
Provides: bundled(crate(semver)) = 0.11.0
|
|
|
4b36bb |
Provides: bundled(crate(semver)) = 1.0.9
|
|
|
4b36bb |
Provides: bundled(crate(semver-parser)) = 0.10.2
|
|
|
4b36bb |
Provides: bundled(crate(serde)) = 1.0.137
|
|
|
4b36bb |
Provides: bundled(crate(serde_bytes)) = 0.11.6
|
|
|
4b36bb |
Provides: bundled(crate(serde_derive)) = 1.0.137
|
|
|
4b36bb |
Provides: bundled(crate(serde_json)) = 1.0.81
|
|
|
4b36bb |
Provides: bundled(crate(serde_urlencoded)) = 0.7.1
|
|
|
4b36bb |
Provides: bundled(crate(sha-1)) = 0.10.0
|
|
|
4b36bb |
Provides: bundled(crate(sha1)) = 0.10.5
|
|
|
4b36bb |
Provides: bundled(crate(shlex)) = 1.1.0
|
|
|
4b36bb |
Provides: bundled(crate(signal-hook-registry)) = 1.4.0
|
|
|
4b36bb |
Provides: bundled(crate(slab)) = 0.4.6
|
|
|
4b36bb |
Provides: bundled(crate(smallvec)) = 1.8.0
|
|
|
4b36bb |
Provides: bundled(crate(socket2)) = 0.4.4
|
|
|
4b36bb |
Provides: bundled(crate(stable_deref_trait)) = 1.2.0
|
|
|
4b36bb |
Provides: bundled(crate(static_assertions)) = 1.1.0
|
|
|
4b36bb |
Provides: bundled(crate(strsim)) = 0.8.0
|
|
|
4b36bb |
Provides: bundled(crate(strsim)) = 0.10.0
|
|
|
4b36bb |
Provides: bundled(crate(syn)) = 1.0.96
|
|
|
4b36bb |
Provides: bundled(crate(synstructure)) = 0.12.6
|
|
|
4b36bb |
Provides: bundled(crate(target-lexicon)) = 0.12.4
|
|
|
4b36bb |
Provides: bundled(crate(tempfile)) = 3.3.0
|
|
|
4b36bb |
Provides: bundled(crate(termcolor)) = 1.1.3
|
|
|
4b36bb |
Provides: bundled(crate(textwrap)) = 0.11.0
|
|
|
4b36bb |
Provides: bundled(crate(textwrap)) = 0.15.0
|
|
|
4b36bb |
Provides: bundled(crate(thiserror)) = 1.0.31
|
|
|
4b36bb |
Provides: bundled(crate(thiserror-impl)) = 1.0.31
|
|
|
4b36bb |
Provides: bundled(crate(time)) = 0.3.9
|
|
|
4b36bb |
Provides: bundled(crate(time-macros)) = 0.2.4
|
|
|
4b36bb |
Provides: bundled(crate(tinyvec)) = 1.6.0
|
|
|
4b36bb |
Provides: bundled(crate(tinyvec_macros)) = 0.1.0
|
|
|
4b36bb |
Provides: bundled(crate(tokio)) = 1.19.2
|
|
|
4b36bb |
Provides: bundled(crate(tokio-macros)) = 1.8.0
|
|
|
4b36bb |
Provides: bundled(crate(tokio-native-tls)) = 0.3.0
|
|
|
4b36bb |
Provides: bundled(crate(tokio-openssl)) = 0.6.3
|
|
|
4b36bb |
Provides: bundled(crate(tokio-util)) = 0.7.3
|
|
|
4b36bb |
Provides: bundled(crate(toml)) = 0.5.9
|
|
|
4b36bb |
Provides: bundled(crate(tower-service)) = 0.3.1
|
|
|
4b36bb |
Provides: bundled(crate(tracing)) = 0.1.35
|
|
|
4b36bb |
Provides: bundled(crate(tracing-core)) = 0.1.27
|
|
|
4b36bb |
Provides: bundled(crate(try-lock)) = 0.2.3
|
|
|
4b36bb |
Provides: bundled(crate(tss-esapi)) = 7.1.0
|
|
|
4b36bb |
Provides: bundled(crate(tss-esapi-sys)) = 0.3.0
|
|
|
4b36bb |
Provides: bundled(crate(typenum)) = 1.15.0
|
|
|
4b36bb |
Provides: bundled(crate(ucd-trie)) = 0.1.3
|
|
|
4b36bb |
Provides: bundled(crate(unicode-bidi)) = 0.3.8
|
|
|
4b36bb |
Provides: bundled(crate(unicode-ident)) = 1.0.0
|
|
|
4b36bb |
Provides: bundled(crate(unicode-normalization)) = 0.1.19
|
|
|
4b36bb |
Provides: bundled(crate(unicode-width)) = 0.1.10
|
|
|
4b36bb |
Provides: bundled(crate(unicode-xid)) = 0.2.3
|
|
|
4b36bb |
Provides: bundled(crate(url)) = 2.2.2
|
|
|
4b36bb |
Provides: bundled(crate(uuid)) = 0.8.2
|
|
|
4b36bb |
Provides: bundled(crate(vec_map)) = 0.8.2
|
|
|
4b36bb |
Provides: bundled(crate(version_check)) = 0.9.4
|
|
|
4b36bb |
Provides: bundled(crate(want)) = 0.3.0
|
|
|
4b36bb |
Provides: bundled(crate(which)) = 4.3.0
|
|
|
4b36bb |
Provides: bundled(crate(yaml-rust)) = 0.4.5
|
|
|
4b36bb |
Provides: bundled(crate(zeroize)) = 1.5.5
|
|
|
4b36bb |
Provides: bundled(crate(zeroize_derive)) = 1.3.2
|
|
|
4b36bb |
Provides: bundled(crate(zstd)) = 0.10.2+zstd.1.5.2
|
|
|
4b36bb |
Provides: bundled(crate(zstd-safe)) = 4.1.6+zstd.1.5.2
|
|
|
4b36bb |
Provides: bundled(crate(zstd-sys)) = 1.6.3+zstd.1.5.2
|
|
|
4b36bb |
|
|
|
4b36bb |
%description
|
|
|
4b36bb |
Rust agent for Keylime
|
|
|
4b36bb |
|
|
|
4b36bb |
%prep
|
|
|
4b36bb |
%autosetup -N -n rust-keylime-%{version}
|
|
|
4b36bb |
%cargo_prep -V 1
|
|
|
4b36bb |
%autopatch -p1
|
|
|
4b36bb |
|
|
|
4b36bb |
# Sometimes Rust sources start with #![...] attributes, and "smart" editors think
|
|
|
4b36bb |
# it's a shebang and make them executable. Then brp-mangle-shebangs gets upset...
|
|
|
4b36bb |
find -name '*.rs' -type f -perm /111 -exec chmod -v -x '{}' '+'
|
|
|
4b36bb |
|
|
|
4b36bb |
%build
|
|
|
4b36bb |
%cargo_build --no-default-features
|
|
|
4b36bb |
|
|
|
4b36bb |
%install
|
|
|
4b36bb |
%cargo_install
|
|
|
4b36bb |
mkdir -p %{buildroot}/%{_sharedstatedir}/keylime
|
|
|
4b36bb |
mkdir -p --mode=0700 %{buildroot}/%{_rundir}/keylime
|
|
|
4b36bb |
mkdir -p --mode=0700 %{buildroot}/%{_localstatedir}/log/keylime
|
|
|
4b36bb |
mkdir -p --mode=0700 %{buildroot}/%{_libexecdir}/keylime
|
|
|
4b36bb |
mkdir -p --mode=0700 %{buildroot}/%{_sysconfdir}/keylime
|
|
|
4b36bb |
mkdir -p --mode=0700 %{buildroot}/%{_sysconfdir}/keylime/agent.conf.d
|
|
|
4b36bb |
|
|
|
4b36bb |
install -Dpm 400 keylime-agent.conf \
|
|
|
4b36bb |
%{buildroot}%{_sysconfdir}/keylime/agent.conf
|
|
|
4b36bb |
|
|
|
4b36bb |
install -Dpm 644 ./dist/systemd/system/keylime_agent.service \
|
|
|
4b36bb |
%{buildroot}%{_unitdir}/keylime_agent.service
|
|
|
4b36bb |
|
|
|
4b36bb |
install -Dpm 644 ./dist/systemd/system/var-lib-keylime-secure.mount \
|
|
|
4b36bb |
%{buildroot}%{_unitdir}/var-lib-keylime-secure.mount
|
|
|
4b36bb |
|
|
|
4b36bb |
# Setting up the agent to use keylime:keylime user/group after dropping privileges.
|
|
|
4b36bb |
cat > %{buildroot}/%{_sysconfdir}/keylime/agent.conf.d/001-run_as.conf << EOF
|
|
|
4b36bb |
[agent]
|
|
|
4b36bb |
run_as = "keylime:keylime"
|
|
|
4b36bb |
EOF
|
|
|
4b36bb |
|
|
|
4b36bb |
%posttrans
|
|
|
4b36bb |
chmod 500 %{_sysconfdir}/keylime/agent.conf.d
|
|
|
4b36bb |
chmod 400 %{_sysconfdir}/keylime/agent.conf.d/*.conf
|
|
|
4b36bb |
chmod 500 %{_sysconfdir}/keylime
|
|
|
4b36bb |
chown -R keylime:keylime %{_sysconfdir}/keylime
|
|
|
4b36bb |
|
|
|
4b36bb |
%preun
|
|
|
4b36bb |
%systemd_preun keylime_agent.service
|
|
|
4b36bb |
%systemd_preun var-lib-keylime-secure.mount
|
|
|
4b36bb |
|
|
|
4b36bb |
%postun
|
|
|
4b36bb |
%systemd_postun_with_restart keylime_agent.service
|
|
|
4b36bb |
%systemd_postun_with_restart var-lib-keylime-secure.mount
|
|
|
4b36bb |
|
|
|
4b36bb |
%files
|
|
|
4b36bb |
%license LICENSE
|
|
|
4b36bb |
%doc README.md
|
|
|
4b36bb |
%attr(500,keylime,keylime) %dir %{_sysconfdir}/keylime
|
|
|
4b36bb |
%attr(500,keylime,keylime) %dir %{_sysconfdir}/keylime/agent.conf.d
|
|
|
4b36bb |
%config(noreplace) %attr(400,keylime,keylime) %{_sysconfdir}/keylime/agent.conf.d/001-run_as.conf
|
|
|
4b36bb |
%config(noreplace) %attr(400,keylime,keylime) %{_sysconfdir}/keylime/agent.conf
|
|
|
4b36bb |
%{_unitdir}/keylime_agent.service
|
|
|
4b36bb |
%{_unitdir}/var-lib-keylime-secure.mount
|
|
|
4b36bb |
%attr(700,keylime,keylime) %dir %{_rundir}/keylime
|
|
|
4b36bb |
%attr(700,keylime,keylime) %dir %{_localstatedir}/log/keylime
|
|
|
4b36bb |
%attr(700,keylime,keylime) %{_sharedstatedir}/keylime
|
|
|
4b36bb |
%attr(500,keylime,keylime) %{_libexecdir}/keylime
|
|
|
4b36bb |
%{_bindir}/keylime_agent
|
|
|
4b36bb |
%{_bindir}/keylime_ima_emulator
|
|
|
4b36bb |
|
|
|
4b36bb |
%if %{with check}
|
|
|
4b36bb |
%check
|
|
|
4b36bb |
%cargo_test
|
|
|
4b36bb |
%endif
|
|
|
4b36bb |
|
|
|
4b36bb |
%changelog
|
|
|
4b36bb |
* Wed Sep 21 2022 Anderson Toshiyuki Sasaki <ansasaki@redhat.com> - 0.1.0-1
|
|
|
4b36bb |
- Update to upstream release 0.1.0
|
|
|
4b36bb |
|
|
|
4b36bb |
* Thu Aug 25 2022 Anderson Toshiyuki Sasaki <ansasaki@redhat.com> - 0.1.0~20220805git0185093-1
|
|
|
4b36bb |
- Update to upstream commit 0186093
|
|
|
4b36bb |
|
|
|
4b36bb |
* Mon Jul 18 2022 Anderson Toshiyuki Sasaki <ansasaki@redhat.com> - 0.1.0~20220603gitaed51c7-4
|
|
|
4b36bb |
- Remove vendored source files for non-Linux or unsupported platforms
|
|
|
4b36bb |
|
|
|
4b36bb |
* Fri Jul 08 2022 Anderson Toshiyuki Sasaki <ansasaki@redhat.com> - 0.1.0~20220603gitaed51c7-3
|
|
|
4b36bb |
- Add support for hash algorithms other than SHA-1 to the IMA emulator
|
|
|
4b36bb |
|
|
|
4b36bb |
* Mon Jul 04 2022 Anderson Toshiyuki Sasaki <ansasaki@redhat.com> - 0.1.0~20220603gitaed51c7-2
|
|
|
4b36bb |
- Use classic release instead of autorelease macro
|
|
|
4b36bb |
- Use classic changelog instead of autochangelog macro
|
|
|
4b36bb |
|
|
|
4b36bb |
* Mon Jul 04 2022 Anderson Toshiyuki Sasaki <ansasaki@redhat.com> - 0.1.0~20220603gitaed51c7-2
|
|
|
4b36bb |
- Backport patch to load configuration file only once
|
|
|
4b36bb |
|
|
|
4b36bb |
* Fri Jul 01 2022 Anderson Toshiyuki Sasaki <ansasaki@redhat.com> - 0.1.0~20220603gitaed51c7-2
|
|
|
4b36bb |
- Set supplementary groups when dropping privileges
|
|
|
4b36bb |
- Show more descriptive error messages on missing files errors
|
|
|
4b36bb |
- Create /usr/libexec/keylime directory
|
|
|
4b36bb |
|
|
|
4b36bb |
* Tue Jun 21 2022 Sergio Correia <scorreia@redhat.com> - 0.1.0~20220603gitaed51c7-1
|
|
|
4b36bb |
- Add keylime-agent-rust to RHEL 9
|