logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

loadpin.h (834B)


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