1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* 2 /* 3 * Copyright (c) 2022, Google LLC 3 * Copyright (c) 2022, Google LLC 4 */ 4 */ 5 5 6 #ifndef _UAPI_LINUX_LOOP_LOADPIN_H 6 #ifndef _UAPI_LINUX_LOOP_LOADPIN_H 7 #define _UAPI_LINUX_LOOP_LOADPIN_H 7 #define _UAPI_LINUX_LOOP_LOADPIN_H 8 8 9 #define LOADPIN_IOC_MAGIC 'L' 9 #define LOADPIN_IOC_MAGIC 'L' 10 10 11 /** 11 /** 12 * LOADPIN_IOC_SET_TRUSTED_VERITY_DIGESTS - Se 12 * LOADPIN_IOC_SET_TRUSTED_VERITY_DIGESTS - Set up the root digests of verity devices 13 * th 13 * that loadpin should trust. 14 * 14 * 15 * Takes a file descriptor from which to read 15 * Takes a file descriptor from which to read the root digests of trusted verity devices. The file 16 * is expected to contain a list of digests in 16 * is expected to contain a list of digests in ASCII format, with one line per digest. The ioctl 17 * must be issued on the securityfs attribute 17 * must be issued on the securityfs attribute 'loadpin/dm-verity' (which can be typically found 18 * under /sys/kernel/security/loadpin/dm-verit 18 * under /sys/kernel/security/loadpin/dm-verity). 19 */ 19 */ 20 #define LOADPIN_IOC_SET_TRUSTED_VERITY_DIGESTS 20 #define LOADPIN_IOC_SET_TRUSTED_VERITY_DIGESTS _IOW(LOADPIN_IOC_MAGIC, 0x00, unsigned int) 21 21 22 #endif /* _UAPI_LINUX_LOOP_LOADPIN_H */ 22 #endif /* _UAPI_LINUX_LOOP_LOADPIN_H */ 23 23
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.