VERIEXEC(4)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1, nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so this is veriexec(4), straight out of the Kernel Interfaces Manual β€” the page for the veriexec device, bestie. πŸ’…

✨ SYNOPSIS ✨

include this header and you're in:

#include <dev/veriexec/veriexec_ioctl.h>

πŸ’… DESCRIPTION πŸ’…

The veriexec device is what veriexec(8) uses to query and modify the state of mac_veriexec(4). slay.

Once mac_veriexec(4) is active, only a process marked as β€˜trusted’ β€” normally only veriexec(8) β€” can do anything beyond the VERIEXEC_GETSTATE ioctl. periodt. That is the whole vibe check, no cap.

πŸ”₯ IOCTLS πŸ”₯

here is the supported ioctl lineup, bestie β€” every one of them, no skips:

  • VERIEXEC_SIGNED_LOAD struct verified_exec_params β€” passes file information to mac_veriexec(4). 🫢
struct verified_exec_params  {
        unsigned char flags;
        char fp_type[VERIEXEC_FPTYPELEN];       /* type of fingerprint */
        char file[MAXPATHLEN];
        unsigned char fingerprint[MAXFINGERPRINTLEN];
};
  • VERIEXEC_LABEL_LOAD struct verified_exec_label_params β€” passes file information and a label to mac_veriexec(4). πŸŽ€
struct verified_exec_label_params  {
        struct verified_exec_params params;
        char label[MAXLABELLEN];
};
  • VERIEXEC_ACTIVE β€” listed on the page, with no extra description attached. ✨
  • VERIEXEC_DEBUG_OFF β€” listed on the page, with no extra description attached. πŸ’œ
  • VERIEXEC_DEBUG_ON int level β€” listed with an int level argument, with no extra description attached. πŸ”₯
  • VERIEXEC_ENFORCE β€” listed on the page, with no extra description attached. 🌸
  • VERIEXEC_GETSTATE β€” listed on the page, with no extra description attached. πŸ¦‹
  • VERIEXEC_GETVERSION β€” listed on the page, with no extra description attached. ⭐
  • VERIEXEC_LOCK β€” listed on the page, with no extra description attached. πŸ‘‘
  • VERIEXEC_VERIFIED_FILE int fd β€” rarely needed. Tells mac_veriexec(4) that the file associated with fd is verified. πŸ™ˆ

πŸ¦‹ HISTORY πŸ¦‹

A veriexec device first appeared in NetBSD. It was added to FreeBSD 13.1. the lore is lore-ing. 🌈


xoxo from Debian, August 1, 2024 β€” this was VERIEXEC(4), bestie πŸ’…πŸ’–

πŸ“¦ where this page comes from