Package ima-evm-integrity-check: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | %define _unpackaged_files_terminate_build 1 %def_without old_make_initrd Name: ima-evm-integrity-check Epoch: 1 Version: 0.8.2 Release: alt1 Summary: IMA/EVM integrity check License: %gpl2plus Group: System/Base Packager: Paul Wolneykien <manowar@altlinux.org> Source: %name-%version.tar BuildRequires(pre): rpm-build-licenses BuildRequires: bash5 BuildArch: noarch Requires: make-initrd-integrity = %version-%release %if_without old_make_initrd Requires: make-initrd >= 2.0.0 %endif Requires: /usr/bin/chattr Obsoletes: cert-distro-updater < %EVR Provides: cert-distro-updater = %EVR Conflicts: cert-distro-updater < %EVR Obsoletes: updater < %EVR Provides: updater = %EVR Conflicts: updater < %EVR %description This package make use of the IMA and EVM technologies from the Linux integrity subsystem. Basically IMA and EVM provide the following functionality: - measurement (hashing) of file content as it is accessed and keeping track of this information in an audit log; - appraisal of files, which allows to prevent access when a measurement (hash) or digital signature does not match the expected value. This package requires kernel with corresponding config options enabled. %package -n make-initrd-integrity Summary: Integrity check feature for make-initrd Group: System/Base # For put-file utility Requires: make-initrd >= 0.7.6-alt1 %if_with old_make_initrd Conflicts: make-initrd >= 2.0.0 %endif Requires: coreutils grep kmod mount Requires: keyutils ima-evm-utils Requires: filesystem >= 2.3.13-alt1.M80C.1 Conflicts: cert-distro-updater < %EVR %description -n make-initrd-integrity Integrity check feature for make-initrd %prep %setup %build %make_build libdir=%_libdir prefix=%_prefix sysconfdir=%_sysconfdir WITH_OLD_MI=%{with old_make_initrd} %install %makeinstall_std bindir=%_bindir sbindir=%_sbindir sysconfdir=%_sysconfdir datadir=%_datadir unitdir=%_unitdir presetdir=%_presetdir libdir=%_libdir prefix=%_prefix controldir=%_controldir mandir=%_mandir WITH_OLD_MI=%{with old_make_initrd} %add_findreq_skiplist %_datadir/make-initrd/features/integrity/data/etc/rc.d/init.d/integrity # For ghost: mkdir -p %buildroot%_sysconfdir/sysconfig touch %buildroot%_sysconfdir/sysconfig/integrity %files %doc README %_sbindir/* %_controldir/* %_unitdir/* %_presetdir/* %ghost %_sysconfdir/sysconfig/integrity %config(noreplace) %_sysconfdir/integrity/config %_man7dir/*.7.* %_man8dir/*.8.* %files -n make-initrd-integrity %dir %_sysconfdir/integrity %_datadir/integrity %dir %_datadir/make-initrd/features/integrity %_datadir/make-initrd/features/integrity/*.mk %dir %_datadir/make-initrd/features/integrity/data %if_without old_make_initrd %dir %_datadir/make-initrd/features/integrity/data/etc %dir %_datadir/make-initrd/features/integrity/data/etc/rc.d %dir %_datadir/make-initrd/features/integrity/data/etc/rc.d/init.d %_datadir/make-initrd/features/integrity/data/etc/rc.d/init.d/integrity %else %dir %_datadir/make-initrd/features/integrity/data/lib %dir %_datadir/make-initrd/features/integrity/data/lib/initrd %dir %_datadir/make-initrd/features/integrity/data/lib/initrd/modules %_datadir/make-initrd/features/integrity/data/lib/initrd/modules/085-integrity %endif %changelog * Tue Apr 14 2026 Paul Wolneykien <manowar@altlinux.org> 1:0.8.2-alt1 - Switch to bash5 (closes: 58516). - Added --log-stderr to the synopsis in integrity-applier(8). * Wed Feb 25 2026 Paul Wolneykien <manowar@altlinux.org> 1:0.8.1-alt1 - ima_appraise control: Don't change 'lsm' command-line option if 'selinux' option is present (thx IVK). * Thu Jul 31 2025 Paul Wolneykien <manowar@altlinux.org> 1:0.8.0-alt1 - Updated the README file. - Write integrity-applier messages to log file in --auto mode. - Don't require ima_appraise=fix in order to sign files. - Read and write the command-line options from/to state dir in --auto mode. - Directly use the main config instead of evm_mode file when applying and checking EVM. - Use independent openssl.cnf for certificate generation. - Fix: Document the GOST_PARAMSET configuration option. - Fix: Don't insert GOST kernel modules whin signing the files. - integrity-sign: Improve the check for incompatible options. - Added -B | --basename command-line option. - Add command-line and configuration options to control overwrite of existing signatures. - Fix: Check access to the private key when signing the files. - integrity-sign: Don't write messages to log file by default. - Don't generate a new certificate without -U | --update option. - Update the main manual page (trusted keyring + configuration options). - Added integrity-sign(8) manual page. - Don't load any keys into userspace when signing the files. - Added -U | --update option. - Better messaging on verification mode: N/A (reason), BAD, OK. - Improved --verify mode: Search for keys loaded into the IMA keyring - Make the initrd script not abort on key related errors by default. - Introduce SECONDARY_SUFFIX option to load CA certs. - Added CERT_BASENAME configuration option. - Allow to sign files using only the private key. - Optionally, protect the keys and keyrings. - Use `keyctl id` to search for a keyring ID. - Add IMA_KEYRING configuration option. - Add support for --cert and --key options. - Initialize kmk-user in EVM mode only. - Fix: Specify that v0.7.5-alt1 closes 48556. - Fix: Use standalone OpenSSL configuration. - Write /tmp/integrity.log at initrd stage for debug purposes. * Thu May 29 2025 Paul Wolneykien <manowar@altlinux.org> 1:0.7.9-alt1 - Fixed reconfiguration error for bootloaders other than GRUB. * Tue May 13 2025 Anton Midyukov <antohami@altlinux.org> 1:0.7.8-alt1 - integrity-sign: add extra library extension support * Thu Nov 21 2024 Paul Wolneykien <manowar@altlinux.org> 1:0.7.7-alt1 - Fix: Don't run update-grub if /etc/sysconfig/grub2 doesn't exist. - controls: Return error if specified configuration variable isn't defined anywhere. - Fix handling of /boot/boot.conf. - Provide next epoch of 'cert-distro-updater' and 'updater' packages to make upgrade possible (+ conflict them). * Thu Sep 05 2024 Paul Wolneykien <manowar@altlinux.org> 0.7.6-alt1 - Make the contents of /etc/sysconfig/integrity override values set in /etc/integrity/config. * Thu May 30 2024 Paul Wolneykien <manowar@altlinux.org> 0.7.5-alt1 - Use 0x80000002 as the default EVM mode. - Automatically enable --with-evm for integrity-sign --verify if EVM is enabled in the kernel. - Fix: Disable autoreq for integrity initrd script. - Added notes about new features (README and man). - Pass explicit EVM option via state file to Stage II. - Fix: Reconfigure bootloader on each stage. - Fix: Delete old /var/lib/integrity_update/default. - Don't touch filesystem immutable bit in EVM mode. - Added option --without-evm. - Run make-initrd with normal log output. - Allow to cancel loading the system if IMA policy fails to load. - Check loading of IMA and EVM policy at system boot (ima-check.service). - Load IMA policy at initrd stage only when ima_appraise=enforce. - Run make-initrd with normal log output. - Fixed OpenSSL GOST module path when copying to initrd. - Fix: Abort on some make-initrd errors. - Don't set or reset the immutable flag (closes: 48556). * Mon May 27 2024 Paul Wolneykien <manowar@altlinux.org> 0.7.4-alt1 - Fix file signing log output: stderr or file. - Fix log of errors when signing the files. - Write log to /var/log/integrity-sign.log by default. - Add --log-stderr option. * Wed May 22 2024 Paul Wolneykien <manowar@altlinux.org> 0.7.3-alt1 - Fix: Combine x509 certificate and private key in one file for signing. * Fri May 17 2024 Paul Wolneykien <manowar@altlinux.org> 0.7.2-alt1 - Fixed manpage sections. - Fix: Explicitly insert GOST kernel modules for Streebog hashes. - Fix: Require /usr/bin/chattr. - Added GOST_PARAMSET option (undocumented). - Fix and secure shell code mostly related to ignoring -e option. - Fix: Output file names to file log. - Fixed notes about /var/log/integrity-sign.log. * Fri May 17 2024 Paul Wolneykien <manowar@altlinux.org> 0.7.1-alt1 - Added copyright information. * Fri May 17 2024 Paul Wolneykien <manowar@altlinux.org> 0.7.0-alt1 - Added manual pages!!! - Add 'ima-' prefix to systemd units. - Updated README. - Fixed getting IMA hash from the Linux kernel command line. - Use pipe mode (padd) when adding kmk-user with keyctl. - Allow to run the whole cycle in automatic mode (with file signing log at /var/log/integrity-sign.log). - Make integrity-applier a multitool (initialization and signing operations). - integrity-sign: Make file signing error fatal. - integrity-sign: Change verbosity. - integrity-sign: Fixed file verification action. - integrity-sign: Fixed EVM key symlink. - integrity-sign: Fixed option parser. - integrity-sign: Fixed usage. - Setup the default policy to also check kernel modules. - Added comments to the default config (hash algorithms and EVM). * Tue Mar 19 2024 Paul Wolneykien <manowar@altlinux.org> 0.6.2-alt1 - Updated README. * Tue Mar 19 2024 Paul Wolneykien <manowar@altlinux.org> 0.6.1-alt1 - Make integalert dependency optional. - Fixed exit when integalert is disabled. * Mon Mar 18 2024 Paul Wolneykien <manowar@altlinux.org> 0.6.0-alt2 - Fix: Own make-initrd/features/integrity/** directories. * Mon Mar 18 2024 Paul Wolneykien <manowar@altlinux.org> 0.6.0-alt1 - signing.service: Output to tty. - Install the default IMA policy. - Make a configuration shorthand: /etc/integrity/config -> /etc/sysconfig/integrity. - Configure modules and files for the 'integrity' make-initrd feature with INTEGRITY_FEATURES variable. - Don't create /etc/noupdate. - Use /var/lib/integrity_update directory for state files. - Don't touch initrd from within integrity-sign script. - Fix: Declare the missing -a short option in integrity-applier. - Support -G | --disable-graphics option in integrity-applier. - Rename: --hash instead of --hashalgo in integrity-sign. - Configure the default behavior via /etc/sysconfig/integrity. - Added two control facilities: 'ima_appraise' and 'ima_hash'. - Read 'ima_hash=' from the kernel command line. - Fix/improve 'usage'. - Fix/improve some messages. - Place temp files in integrity-sign.XXXXXXXX temp dir. - Report error on problems with reading the certificate. - Exit with error in case of unknown hash algo. - Fixed 'verify' action of integrity-sign utility. - Add support for generation of GOST keys. - Run signing.service manually (thx Denis Medvedev). * Tue Feb 13 2024 Denis Medvedev <nbr@altlinux.org> 0.5.2-alt1 - changed operations to manual signing. * Mon Dec 25 2023 Denis Medvedev <nbr@altlinux.org> 0.5.1-alt1 - Initial release, based on ima-evm-integrity-check and parts of cert-distro-updater * Tue Apr 09 2019 Mikhail Efremov <sem@altlinux.org> 0.5.0-alt1 - integrity-sign: Fix chattr tmpdir cleanup. - integrity-sign: Create new initrd by default. - integrity-sign: Sign kernel modules. * Tue Apr 02 2019 Mikhail Efremov <sem@altlinux.org> 0.4.2-alt1 - integrity-sign: Fix -i option with spaces in filenames. - integrity-sign: Handle shared objects in /var/lib too. * Fri Jan 25 2019 Mikhail Efremov <sem@altlinux.org> 0.4.1-alt1 - Package example policy. * Fri Nov 16 2018 Mikhail Efremov <sem@altlinux.org> 0.4-alt1 - Determine make-initrd version at build time. - Add make-initrd-2.x support. * Thu Nov 15 2018 Mikhail Efremov <sem@altlinux.org> 0.3-alt1.M80C.1 - New version. * Thu Nov 01 2018 Mikhail Efremov <sem@altlinux.org> 0.2-alt0.M80C.1 - integrity-sign: Make signed files immutable. - integrity-sign: Use single command to sign files. |