Home
last modified time | relevance | path

Searched refs:modsig (Results 1 – 11 of 11) sorted by relevance

/linux/security/integrity/ima/
A Dima_modsig.c18 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 Dima.h68 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 Dima_api.c215 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 Dima_appraise.c316 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 Dima_main.c214 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 Dima_template_lib.c400 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 DKconfig250 The modsig keyword can be used in the IMA policy to allow a hook
/linux/security/integrity/
A Dintegrity.h158 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 Ddigsig.c85 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 DIMA-templates.rst71 - '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 Dima_policy50 appraise_type:= [imasig] [imasig|modsig]
134 Example of appraise rule allowing modsig appended signatures:
136 appraise func=KEXEC_KERNEL_CHECK appraise_type=imasig|modsig

Completed in 19 milliseconds