Home
last modified time | relevance | path

Searched refs:khdr (Results 1 – 6 of 6) sorted by relevance

/linux/security/integrity/ima/
A Dima_kexec.c23 struct ima_kexec_hdr khdr; in ima_dump_measurement_list() local
35 file.count = sizeof(khdr); /* reserved space */ in ima_dump_measurement_list()
37 memset(&khdr, 0, sizeof(khdr)); in ima_dump_measurement_list()
38 khdr.version = 1; in ima_dump_measurement_list()
41 khdr.count++; in ima_dump_measurement_list()
56 khdr.buffer_size = file.count; in ima_dump_measurement_list()
58 khdr.version = cpu_to_le16(khdr.version); in ima_dump_measurement_list()
59 khdr.count = cpu_to_le64(khdr.count); in ima_dump_measurement_list()
60 khdr.buffer_size = cpu_to_le64(khdr.buffer_size); in ima_dump_measurement_list()
62 memcpy(file.buf, &khdr, sizeof(khdr)); in ima_dump_measurement_list()
A Dima_template.c408 struct ima_kexec_hdr *khdr = buf; in ima_restore_measurement_list() local
414 void *bufp = buf + sizeof(*khdr); in ima_restore_measurement_list()
422 if (!buf || size < sizeof(*khdr)) in ima_restore_measurement_list()
426 khdr->version = le16_to_cpu((__force __le16)khdr->version); in ima_restore_measurement_list()
427 khdr->count = le64_to_cpu((__force __le64)khdr->count); in ima_restore_measurement_list()
428 khdr->buffer_size = le64_to_cpu((__force __le64)khdr->buffer_size); in ima_restore_measurement_list()
431 if (khdr->version != 1) { in ima_restore_measurement_list()
436 if (khdr->count > ULONG_MAX - 1) { in ima_restore_measurement_list()
450 bufendp = buf + khdr->buffer_size; in ima_restore_measurement_list()
451 while ((bufp < bufendp) && (count++ < khdr->count)) { in ima_restore_measurement_list()
[all …]
/linux/tools/testing/selftests/
A Dlib.mk50 .PHONY: khdr
52 khdr:
62 all: khdr $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES)
A DMakefile153 khdr: target
161 all: khdr
258 .PHONY: khdr all run_tests hotplug run_hotplug clean_hotplug run_pstore_crash install clean gen_tar
/linux/tools/testing/selftests/landlock/
A DMakefile17 $(khdr_dir)/linux/landlock.h: khdr
/linux/drivers/message/fusion/
A Dmptctl.c622 mpt_ioctl_header khdr; in __mptctl_ioctl() local
629 if (copy_from_user(&khdr, uhdr, sizeof(khdr))) { in __mptctl_ioctl()
640 iocnumX = khdr.iocnum & 0xFF; in __mptctl_ioctl()

Completed in 12 milliseconds