Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * Copyright (c) 2022, Google LLC
0004  */
0005 
0006 #ifndef _UAPI_LINUX_LOOP_LOADPIN_H
0007 #define _UAPI_LINUX_LOOP_LOADPIN_H
0008 
0009 #define LOADPIN_IOC_MAGIC   'L'
0010 
0011 /**
0012  * LOADPIN_IOC_SET_TRUSTED_VERITY_DIGESTS - Set up the root digests of verity devices
0013  *                                          that loadpin should trust.
0014  *
0015  * Takes a file descriptor from which to read the root digests of trusted verity devices. The file
0016  * is expected to contain a list of digests in ASCII format, with one line per digest. The ioctl
0017  * must be issued on the securityfs attribute 'loadpin/dm-verity' (which can be typically found
0018  * under /sys/kernel/security/loadpin/dm-verity).
0019  */
0020 #define LOADPIN_IOC_SET_TRUSTED_VERITY_DIGESTS _IOW(LOADPIN_IOC_MAGIC, 0x00, unsigned int)
0021 
0022 #endif /* _UAPI_LINUX_LOOP_LOADPIN_H */