/linux/security/integrity/ima/ |
A D | ima_modsig.c | 18 struct modsig { struct 41 struct modsig **modsig) in ima_read_modsig() argument 45 struct modsig *hdr; in ima_read_modsig() 85 *modsig = hdr; in ima_read_modsig() 112 rc = pkcs7_get_digest(modsig->pkcs7_msg, &modsig->digest, in ima_collect_modsig() 113 &modsig->digest_size, &modsig->hash_algo); in ima_collect_modsig() 116 int ima_modsig_verify(struct key *keyring, const struct modsig *modsig) in ima_modsig_verify() argument 132 int ima_get_raw_modsig(const struct modsig *modsig, const void **data, in ima_get_raw_modsig() argument 141 void ima_free_modsig(struct modsig *modsig) in ima_free_modsig() argument 143 if (!modsig) in ima_free_modsig() [all …]
|
A D | ima.h | 68 const struct modsig *modsig; member 230 struct modsig; 265 enum hash_algo algo, struct modsig *modsig); 269 int xattr_len, const struct modsig *modsig, int pcr, 315 const struct modsig *modsig, int pcr); 320 int xattr_len, const struct modsig *modsig); 333 const struct modsig *modsig, int pcr) in ima_check_blacklist() argument 344 const struct modsig *modsig) in ima_appraise_measurement() argument 384 struct modsig **modsig); 390 void ima_free_modsig(struct modsig *modsig); [all …]
|
A D | ima_api.c | 215 enum hash_algo algo, struct modsig *modsig) in ima_collect_measurement() argument 234 if (modsig) in ima_collect_measurement() 235 ima_collect_modsig(modsig, buf, size); in ima_collect_measurement() 303 int xattr_len, const struct modsig *modsig, int pcr, in ima_store_measurement() argument 316 .modsig = modsig }; in ima_store_measurement() 325 if (iint->measured_pcrs & (0x1 << pcr) && !modsig) in ima_store_measurement()
|
A D | ima_appraise.c | 316 static int modsig_verify(enum ima_hooks func, const struct modsig *modsig, in modsig_verify() argument 321 rc = integrity_modsig_verify(INTEGRITY_KEYRING_IMA, modsig); in modsig_verify() 325 modsig); in modsig_verify() 345 const struct modsig *modsig, int pcr) in ima_check_blacklist() argument 355 if (iint->flags & IMA_MODSIG_ALLOWED && modsig) { in ima_check_blacklist() 356 ima_get_modsig_digest(modsig, &hash_algo, &digest, &digestsize); in ima_check_blacklist() 380 int xattr_len, const struct modsig *modsig) in ima_appraise_measurement() argument 388 bool try_modsig = iint->flags & IMA_MODSIG_ALLOWED && modsig; in ima_appraise_measurement() 447 rc = modsig_verify(func, modsig, &status, &cause); in ima_appraise_measurement()
|
A D | ima_main.c | 214 struct modsig *modsig = NULL; in process_measurement() local 327 rc = ima_read_modsig(func, buf, size, &modsig); in process_measurement() 337 rc = ima_collect_measurement(iint, file, buf, size, hash_algo, modsig); in process_measurement() 346 xattr_value, xattr_len, modsig, pcr, in process_measurement() 349 rc = ima_check_blacklist(iint, modsig, pcr); in process_measurement() 354 xattr_len, modsig); in process_measurement() 382 ima_free_modsig(modsig); in process_measurement()
|
A D | ima_template_lib.c | 400 if (!event_data->modsig) in ima_eventdigest_modsig_init() 411 rc = ima_get_modsig_digest(event_data->modsig, &hash_algo, in ima_eventdigest_modsig_init() 514 if (!event_data->modsig) in ima_eventmodsig_init() 521 rc = ima_get_raw_modsig(event_data->modsig, &data, &data_len); in ima_eventmodsig_init()
|
A D | Kconfig | 250 The modsig keyword can be used in the IMA policy to allow a hook
|
/linux/security/integrity/ |
A D | integrity.h | 158 struct modsig; 164 int integrity_modsig_verify(unsigned int id, const struct modsig *modsig); 180 const struct modsig *modsig) in integrity_modsig_verify() argument 211 int ima_modsig_verify(struct key *keyring, const struct modsig *modsig); 214 const struct modsig *modsig) in ima_modsig_verify() argument
|
A D | digsig.c | 85 int integrity_modsig_verify(const unsigned int id, const struct modsig *modsig) in integrity_modsig_verify() argument 93 return ima_modsig_verify(keyring, modsig); in integrity_modsig_verify()
|
/linux/Documentation/security/ |
A D | IMA-templates.rst | 71 - 'd-modsig': the digest of the event without the appended modsig; 75 - 'modsig' the appended file signature; 93 - "ima-modsig": its format is ``d-ng|n-ng|sig|d-modsig|modsig``;
|
/linux/Documentation/ABI/testing/ |
A D | ima_policy | 50 appraise_type:= [imasig] [imasig|modsig] 134 Example of appraise rule allowing modsig appended signatures: 136 appraise func=KEXEC_KERNEL_CHECK appraise_type=imasig|modsig
|