#! /usr/bin/python3
import os

modules = {
    "dev_sys": {
        "enable_syscalls": [
"acct",
"alarm",
"capget",
"capset",
"chdir",
"chmod",
"chown",
"chroot",
"clock_adjtime",
"clock_getres",
"clock_gettime",
"clock_nanosleep",
"clock_settime",
"clone",
"clone3",
"close",
"creat",
"delete_module",
"dup",
"dup2",
"dup3",
"epoll_create",
"epoll_create1",
"epoll_ctl$EPOLL_CTL_ADD",
"epoll_ctl$EPOLL_CTL_DEL",
"epoll_ctl$EPOLL_CTL_MOD",
"epoll_pwait",
"epoll_wait",
"eventfd",
"eventfd2",
"exit",
"exit_group",
"faccessat",
"fadvise64",
"fallocate",
"fchdir",
"fchmod",
"fchmodat",
"fchown",
"fchownat",
"fcntl$addseals",
"fcntl$dupfd",
"fcntl$F_GET_FILE_RW_HINT",
"fcntl$F_GET_RW_HINT",
"fcntl$F_SET_FILE_RW_HINT",
"fcntl$F_SET_RW_HINT",
"fcntl$getflags",
"fcntl$getown",
"fcntl$getownex",
"fcntl$lock",
"fcntl$notify",
"fcntl$setflags",
"fcntl$setlease",
"fcntl$setown",
"fcntl$setownex",
"fcntl$setpipe",
"fcntl$setsig",
"fcntl$setstatus",
"fdatasync",
"finit_module",
"flock",
"fstat",
#"fstat64",
#"fstatat64",
"fstatfs",
"fsync",
"ftruncate",
"futex",
"futimesat",
"getcwd",
"getdents",
"getdents64",
"getegid",
"geteuid",
"getgid",
"getgroups",
"getitimer",
"get_mempolicy",
"getpgid",
"getpgrp",
"getpid",
#"getppid",
"getpriority",
"getrandom",
"getresgid",
"getresuid",
"getrlimit",
"get_robust_list",
"getrusage",
#"getsid",
"get_thread_area",
"gettid",
"getuid",
"init_module",
"ioctl",
"ioctl$int_in",
"ioctl$int_out",
"ioctl$void",
"ioperm",
"iopl",
"ioprio_get$pid",
"ioprio_get$uid",
"ioprio_set$pid",
"ioprio_set$uid",
"kcmp",
"kcmp$KCMP_EPOLL_TFD",
"kexec_load",
#"kill",
"lchown",
"link",
"linkat",
"lookup_dcookie",
"lseek",
"lstat",
#"lstat64",
"madvise",
"mbind",
"membarrier",
"memfd_create",
"migrate_pages",
"mincore",
"mkdir",
"mkdirat",
"mknod",
"mknodat",
"mknod$loop",
"mlock",
"mlock2",
"mlockall",
"mmap",
"modify_ldt$read",
"modify_ldt$read_default",
"modify_ldt$write",
"modify_ldt$write2",
"move_pages",
"mprotect",
"mq_getsetattr",
"mq_notify",
"mq_open",
"mq_timedreceive",
"mq_timedsend",
"mq_unlink",
"mremap",
"msync",
"munlock",
"munlockall",
"munmap",
"name_to_handle_at",
"nanosleep",
"newfstatat",
"open",
"openat",
"openat$autofs",
"openat$bsg",
"openat$btrfs_control",
"openat$cachefiles",
"openat$dir",
"openat$dlm_control",
"openat$dlm_monitor",
"openat$dlm_plock",
"openat$full",
"openat$hpet",
"openat$hwrng",
"openat$irnet",
"openat$keychord",
"openat$lightnvm",
"openat$ndctl0",
"openat$nmem0",
"openat$null",
"openat$nvme_fabrics",
"openat$nvram",
"openat$ocfs2_control",
"openat$pidfd",
"openat$pktcdvd",
"openat$qat_adf_ctl",
"openat$sequencer",
"openat$sequencer2",
"openat$snapshot",
"openat$sw_sync",
"openat$ubi_ctrl",
"openat$vcs",
"openat$vcsa",
"openat$vcsu",
"openat$vga_arbiter",
"openat$xenevtchn",
"openat$zero",
"openat$zygote",
"open_by_handle_at",
"open$dir",
"pause",
"personality",
"pidfd_open",
"pidfd_send_signal",
"pipe",
"pipe2",
"pivot_root",
"pkey_alloc",
"pkey_free",
"pkey_mprotect",
"poll",
"ppoll",
"pread64",
"preadv",
"prlimit64",
"process_vm_readv",
"process_vm_writev",
"pselect6",
"ptrace",
"ptrace$cont",
"ptrace$getenv",
"ptrace$getregs",
"ptrace$getregset",
"ptrace$getsig",
"ptrace$peek",
"ptrace$peeksig",
"ptrace$peekuser",
"ptrace$poke",
"ptrace$pokeuser",
"ptrace$PTRACE_SECCOMP_GET_FILTER",
"ptrace$PTRACE_SECCOMP_GET_METADATA",
"ptrace$setopts",
"ptrace$setregs",
"ptrace$setregset",
"ptrace$setsig",
"pwrite64",
"pwritev",
"quotactl",
"read",
"readahead",
"read$eventfd",
"readlink",
"readlinkat",
"readv",
"remap_file_pages",
"rename",
"renameat",
"renameat2",
"restart_syscall",
"rmdir",
"rseq",
"rt_sigaction",
"rt_sigpending",
"rt_sigprocmask",
"rt_sigqueueinfo",
"rt_sigreturn",
"rt_sigsuspend",
"rt_sigtimedwait",
"rt_tgsigqueueinfo",
"sched_getaffinity",
"sched_getattr",
"sched_getparam",
"sched_getscheduler",
"sched_rr_get_interval",
"sched_setaffinity",
"sched_setattr",
"sched_setparam",
"sched_setscheduler",
"sched_yield",
"select",
"sendfile",
#"sendfile64",
"setfsgid",
"setfsuid",
"setgid",
"setgroups",
"setitimer",
"set_mempolicy",
"setpgid",
"setpriority",
"setregid",
"setresgid",
"setresuid",
"setreuid",
"setrlimit",
"set_robust_list",
#"setsid",
"set_thread_area",
"set_tid_address",
"setuid",
"sigaltstack",
"signalfd",
"signalfd4",
"splice",
"stat",
#"stat64",
"statfs",
"statx",
"symlink",
"symlinkat",
"sync",
"sync_file_range",
"syncfs",
"sysfs$1",
"sysfs$2",
"sysfs$3",
"sysinfo",
"syslog",
"syz_execute_func",
"syz_open_dev$audion",
#"syz_open_dev$block",
#"syz_open_dev$char",
#"syz_open_dev$console",
"syz_open_dev$ircomm",
"syz_open_dev$media",
"syz_open_dev$sndhw",
"syz_open_dev$vcsa",
"syz_open_dev$vcsn",
"syz_open_dev$vcsu",
"syz_open_procfs",
"tee",
"tgkill",
"time",
"timer_create",
"timer_delete",
"timerfd_create",
"timerfd_gettime",
"timerfd_settime",
"timer_getoverrun",
"timer_gettime",
"timer_settime",
"times",
"tkill",
"truncate",
"uname",
"unlink",
"unlinkat",
"uselib",
"ustat",
"utime",
"utimensat",
"utimes",
"vmsplice",
"wait4",
"waitid",
"waitid$P_PIDFD",
"write",
"write$eventfd",
"writev",
        ],
    },
    "dev_fs": {
        "enable_syscalls": [
# filesystem
"fsconfig$FSCONFIG_CMD_CREATE",
"fsconfig$FSCONFIG_CMD_RECONFIGURE",
"fsconfig$FSCONFIG_SET_BINARY",
"fsconfig$FSCONFIG_SET_FD",
"fsconfig$FSCONFIG_SET_FLAG",
"fsconfig$FSCONFIG_SET_PATH",
"fsconfig$FSCONFIG_SET_PATH_EMPTY",
"fsconfig$FSCONFIG_SET_STRING",
"fsmount",
"fsopen",
"fspick",
"mount",
"mount$binder",
"mount$bpf",
"mount$overlay",
"move_mount",
"open_tree",
"syz_mount_image$afs",
"syz_mount_image$bfs",
"syz_mount_image$btrfs",
"syz_mount_image$ceph",
"syz_mount_image$cifs",
"syz_mount_image$erofs",
"syz_mount_image$exfat",
"syz_mount_image$ext4",
"syz_mount_image$f2fs",
"syz_mount_image$gfs2",
"syz_mount_image$hfs",
"syz_mount_image$hfsplus",
"syz_mount_image$iso9660",
"syz_mount_image$jfs",
"syz_mount_image$minix",
"syz_mount_image$msdos",
"syz_mount_image$nfs",
"syz_mount_image$nfs4",
"syz_mount_image$ntfs",
"syz_mount_image$ocfs2",
"syz_mount_image$reiserfs",
"syz_mount_image$tmpfs",
"syz_mount_image$vfat",
"syz_mount_image$xfs",
"syz_read_part_table",
"umount2",
# fs_ioctl
"ioctl$FIBMAP",
"ioctl$FICLONE",
"ioctl$FICLONERANGE",
"ioctl$FIDEDUPERANGE",
"ioctl$FIGETBSZ",
"ioctl$FITRIM",
"ioctl$FS_IOC_FIEMAP",
"ioctl$FS_IOC_FSGETXATTR",
"ioctl$FS_IOC_FSSETXATTR",
"ioctl$FS_IOC_GETFLAGS",
"ioctl$FS_IOC_GETFSLABEL",
"ioctl$FS_IOC_GETFSMAP",
"ioctl$FS_IOC_GETVERSION",
"ioctl$FS_IOC_RESVSP",
"ioctl$FS_IOC_SETFLAGS",
"ioctl$FS_IOC_SETFSLABEL",
"ioctl$FS_IOC_SETVERSION",
# fanotify
"fanotify_init",
"fanotify_mark",
# fscrypt
"ioctl$FS_IOC_ADD_ENCRYPTION_KEY",
"ioctl$FS_IOC_GET_ENCRYPTION_KEY_STATUS",
"ioctl$FS_IOC_GET_ENCRYPTION_POLICY",
"ioctl$FS_IOC_GET_ENCRYPTION_POLICY_EX",
"ioctl$FS_IOC_GET_ENCRYPTION_PWSALT",
"ioctl$FS_IOC_REMOVE_ENCRYPTION_KEY",
"ioctl$FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS",
"ioctl$FS_IOC_SET_ENCRYPTION_POLICY",
# fs_ext4
"ioctl$EXT4_IOC_ALLOC_DA_BLKS",
"ioctl$EXT4_IOC_GROUP_ADD",
"ioctl$EXT4_IOC_GROUP_EXTEND",
"ioctl$EXT4_IOC_MIGRATE",
"ioctl$EXT4_IOC_MOVE_EXT",
"ioctl$EXT4_IOC_PRECACHE_EXTENTS",
"ioctl$EXT4_IOC_SETFLAGS",
"ioctl$EXT4_IOC_SWAP_BOOT",
# fs_verity
"ioctl$FS_IOC_ENABLE_VERITY",
"ioctl$FS_IOC_MEASURE_VERITY",
        ]
    },
    "dev_ipc": {
        "enable_syscalls": [
"msgctl$IPC_INFO",
"msgctl$IPC_RMID",
"msgctl$IPC_SET",
"msgctl$IPC_STAT",
"msgctl$MSG_INFO",
"msgctl$MSG_STAT",
"msgctl$MSG_STAT_ANY",
"msgget",
"msgget$private",
"msgrcv",
"msgsnd",
"semctl$GETALL",
"semctl$GETNCNT",
"semctl$GETPID",
"semctl$GETVAL",
"semctl$GETZCNT",
"semctl$IPC_INFO",
"semctl$IPC_RMID",
"semctl$IPC_SET",
"semctl$IPC_STAT",
"semctl$SEM_INFO",
"semctl$SEM_STAT",
"semctl$SEM_STAT_ANY",
"semctl$SETALL",
"semctl$SETVAL",
"semget",
"semget$private",
"semop",
"semtimedop",
"shmat",
"shmctl$IPC_INFO",
"shmctl$IPC_RMID",
"shmctl$IPC_SET",
"shmctl$IPC_STAT",
"shmctl$SHM_INFO",
"shmctl$SHM_LOCK",
"shmctl$SHM_STAT",
"shmctl$SHM_STAT_ANY",
"shmctl$SHM_UNLOCK",
"shmdt",
"shmget",
"shmget$private"
        ]
    },
    "dev_vusb": {
        "enable_syscalls": [
            "syz_usb_connect",
"syz_usb_connect$cdc_ecm",
"syz_usb_connect$cdc_ncm",
"syz_usb_connect$hid",
"syz_usb_connect$printer",
"syz_usb_connect$uac1",
"syz_usb_control_io",
"syz_usb_control_io$cdc_ecm",
"syz_usb_control_io$cdc_ncm",
"syz_usb_control_io$hid",
"syz_usb_control_io$printer",
"syz_usb_control_io$uac1",
"syz_usb_disconnect",
"syz_usb_ep_read",
"syz_usb_ep_write",
        ]
    },
    "dev_ptmx": {
        "enable_syscalls": [
"ioctl$FIONREAD",
"ioctl$GIO_CMAP",
"ioctl$GIO_FONT",
"ioctl$GIO_FONTX",
"ioctl$GIO_SCRNMAP",
"ioctl$GIO_UNIMAP",
"ioctl$GIO_UNISCRNMAP",
"ioctl$KDADDIO",
"ioctl$KDDELIO",
"ioctl$KDDISABIO",
"ioctl$KDENABIO",
"ioctl$KDFONTOP_COPY",
"ioctl$KDFONTOP_GET",
"ioctl$KDFONTOP_SET",
"ioctl$KDFONTOP_SET_DEF",
"ioctl$KDGETKEYCODE",
"ioctl$KDGETLED",
"ioctl$KDGETMODE",
"ioctl$KDGKBDIACR",
"ioctl$KDGKBENT",
"ioctl$KDGKBLED",
"ioctl$KDGKBMETA",
"ioctl$KDGKBMODE",
"ioctl$KDGKBSENT",
"ioctl$KDGKBTYPE",
"ioctl$KDMKTONE",
"ioctl$KDSETKEYCODE",
"ioctl$KDSETLED",
"ioctl$KDSETMODE",
"ioctl$KDSIGACCEPT",
"ioctl$KDSKBENT",
"ioctl$KDSKBLED",
"ioctl$KDSKBMETA",
"ioctl$KDSKBMODE",
"ioctl$KDSKBSENT",
"ioctl$KIOCSOUND",
"ioctl$PIO_CMAP",
"ioctl$PIO_FONT",
"ioctl$PIO_FONTRESET",
"ioctl$PIO_FONTX",
"ioctl$PIO_SCRNMAP",
"ioctl$PIO_UNIMAP",
"ioctl$PIO_UNIMAPCLR",
"ioctl$PIO_UNISCRNMAP",
"ioctl$TCFLSH",
"ioctl$TCGETA",
"ioctl$TCGETS",
"ioctl$TCGETS2",
"ioctl$TCGETX",
"ioctl$TCSBRK",
"ioctl$TCSBRKP",
"ioctl$TCSETA",
"ioctl$TCSETAF",
"ioctl$TCSETAW",
"ioctl$TCSETS",
"ioctl$TCSETS2",
"ioctl$TCSETSF",
"ioctl$TCSETSW",
"ioctl$TCSETX",
"ioctl$TCSETXF",
"ioctl$TCSETXW",
"ioctl$TCXONC",
"ioctl$TIOCCBRK",
"ioctl$TIOCCONS",
"ioctl$TIOCEXCL",
"ioctl$TIOCGDEV",
"ioctl$TIOCGETD",
"ioctl$TIOCGICOUNT",
"ioctl$TIOCGISO7816",
"ioctl$TIOCGLCKTRMIOS",
"ioctl$TIOCGPGRP",
"ioctl$TIOCGPKT",
"ioctl$TIOCGPTLCK",
"ioctl$TIOCGPTPEER",
"ioctl$TIOCGRS485",
"ioctl$TIOCGSERIAL",
"ioctl$TIOCGSID",
"ioctl$TIOCGSOFTCAR",
"ioctl$TIOCGWINSZ",
"ioctl$TIOCL_BLANKSCREEN",
"ioctl$TIOCL_GETKMSGREDIRECT",
"ioctl$TIOCL_GETMOUSEREPORTING",
"ioctl$TIOCL_GETSHIFTSTATE",
"ioctl$TIOCL_PASTESEL",
"ioctl$TIOCL_SCROLLCONSOLE",
"ioctl$TIOCL_SELLOADLUT",
"ioctl$TIOCL_SETSEL",
"ioctl$TIOCL_SETVESABLANK",
"ioctl$TIOCL_UNBLANKSCREEN",
"ioctl$TIOCMBIC",
"ioctl$TIOCMBIS",
"ioctl$TIOCMGET",
"ioctl$TIOCMIWAIT",
"ioctl$TIOCMSET",
"ioctl$TIOCNOTTY",
"ioctl$TIOCNXCL",
"ioctl$TIOCOUTQ",
"ioctl$TIOCPKT",
"ioctl$TIOCSBRK",
"ioctl$TIOCSCTTY",
"ioctl$TIOCSERGETLSR",
"ioctl$TIOCSETD",
"ioctl$TIOCSIG",
"ioctl$TIOCSISO7816",
"ioctl$TIOCSLCKTRMIOS",
"ioctl$TIOCSPGRP",
"ioctl$TIOCSPTLCK",
"ioctl$TIOCSRS485",
"ioctl$TIOCSSERIAL",
"ioctl$TIOCSSOFTCAR",
"ioctl$TIOCSTI",
"ioctl$TIOCSWINSZ",
"ioctl$TIOCVHANGUP",
"ioctl$VT_ACTIVATE",
"ioctl$VT_DISALLOCATE",
"ioctl$VT_GETMODE",
"ioctl$VT_GETSTATE",
"ioctl$VT_OPENQRY",
"ioctl$VT_RELDISP",
"ioctl$VT_RESIZE",
"ioctl$VT_RESIZEX",
"ioctl$VT_SETMODE",
"ioctl$VT_WAITACTIVE",
"openat$ptmx",
"openat$tty",
"openat$ttynull",
"openat$ttyprintk",
"openat$ttyS3",
"syz_open_dev$ptys",
"syz_open_dev$tty1",
"syz_open_dev$tty20",
"syz_open_dev$ttys",
"syz_open_pts",
        ]
    },
    "dev_socket": {
        "enable_syscalls": [
"accept",
"accept4",
"bind",
"connect",
"getpeername",
"getsockname",
"getsockopt",
"getsockopt$SO_BINDTODEVICE",
"getsockopt$sock_buf",
"getsockopt$sock_cred",
"getsockopt$sock_int",
"getsockopt$sock_linger",
"getsockopt$sock_timeval",
"getsockopt$SO_COOKIE",
"getsockopt$SO_TIMESTAMP",
"getsockopt$SO_TIMESTAMPING",
"ioctl$SIOCGSTAMP",
"ioctl$SIOCGSTAMPNS",
"ioctl$sock_FIOGETOWN",
"ioctl$sock_FIOSETOWN",
"ioctl$sock_ifreq",
"ioctl$sock_netdev_private",
"ioctl$sock_proto_private",
"ioctl$sock_SIOCADDDLCI",
"ioctl$sock_SIOCADDRT",
"ioctl$sock_SIOCBRADDBR",
"ioctl$sock_SIOCBRDELBR",
"ioctl$sock_SIOCDELDLCI",
"ioctl$sock_SIOCDELRT",
"ioctl$sock_SIOCETHTOOL",
"ioctl$sock_SIOCGIFBR",
"ioctl$sock_SIOCGIFCONF",
"ioctl$sock_SIOCGIFINDEX",
"ioctl$sock_SIOCGIFVLAN_ADD_VLAN_CMD",
"ioctl$sock_SIOCGIFVLAN_DEL_VLAN_CMD",
"ioctl$sock_SIOCGIFVLAN_GET_VLAN_EGRESS_PRIORITY_CMD",
"ioctl$sock_SIOCGIFVLAN_GET_VLAN_INGRESS_PRIORITY_CMD",
"ioctl$sock_SIOCGIFVLAN_GET_VLAN_REALDEV_NAME_CMD",
"ioctl$sock_SIOCGIFVLAN_GET_VLAN_VID_CMD",
"ioctl$sock_SIOCGIFVLAN_SET_VLAN_EGRESS_PRIORITY_CMD",
"ioctl$sock_SIOCGIFVLAN_SET_VLAN_FLAG_CMD",
"ioctl$sock_SIOCGIFVLAN_SET_VLAN_INGRESS_PRIORITY_CMD",
"ioctl$sock_SIOCGIFVLAN_SET_VLAN_NAME_TYPE_CMD",
"ioctl$sock_SIOCGPGRP",
"ioctl$sock_SIOCGSKNS",
"ioctl$sock_SIOCINQ",
"ioctl$sock_SIOCOUTQ",
"ioctl$sock_SIOCOUTQNSD",
"ioctl$sock_SIOCSIFBR",
"ioctl$sock_SIOCSIFVLAN_ADD_VLAN_CMD",
"ioctl$sock_SIOCSIFVLAN_DEL_VLAN_CMD",
"ioctl$sock_SIOCSIFVLAN_GET_VLAN_EGRESS_PRIORITY_CMD",
"ioctl$sock_SIOCSIFVLAN_GET_VLAN_INGRESS_PRIORITY_CMD",
"ioctl$sock_SIOCSIFVLAN_GET_VLAN_REALDEV_NAME_CMD",
"ioctl$sock_SIOCSIFVLAN_GET_VLAN_VID_CMD",
"ioctl$sock_SIOCSIFVLAN_SET_VLAN_EGRESS_PRIORITY_CMD",
"ioctl$sock_SIOCSIFVLAN_SET_VLAN_FLAG_CMD",
"ioctl$sock_SIOCSIFVLAN_SET_VLAN_INGRESS_PRIORITY_CMD",
"ioctl$sock_SIOCSIFVLAN_SET_VLAN_NAME_TYPE_CMD",
"ioctl$sock_SIOCSPGRP",
"ioctl$sock_TIOCINQ",
"ioctl$sock_TIOCOUTQ",
"listen",
"recvfrom",
"recvmmsg",
"recvmsg",
"sendmmsg",
"sendmmsg$sock",
"sendmsg",
"sendmsg$sock",
"sendto",
"setsockopt",
"setsockopt$SO_ATTACH_FILTER",
"setsockopt$SO_BINDTODEVICE",
"setsockopt$sock_attach_bpf",
"setsockopt$sock_cred",
"setsockopt$sock_int",
"setsockopt$sock_linger",
"setsockopt$sock_timeval",
"setsockopt$sock_void",
"setsockopt$SO_TIMESTAMP",
"setsockopt$SO_TIMESTAMPING",
"shutdown",
"socket",
"socketpair",
        ]
    },
    "dev_ashmem": {
        "enable_syscalls": [
            "openat$ashmem",
            "ioctl$ASHMEM_SET_NAME",
            "ioctl$ASHMEM_GET_NAME",
            "ioctl$ASHMEM_SET_SIZE",
            "ioctl$ASHMEM_GET_SIZE",
            "ioctl$ASHMEM_SET_PROT_MASK",
            "ioctl$ASHMEM_GET_PROT_MASK",
            "ioctl$ASHMEM_GET_PIN_STATUS",
            "ioctl$ASHMEM_PURGE_ALL_CACHES",
        ],
    },
    "dev_binder": {
        "enable_syscalls": [
            "syz_open_dev$binder",
            "mmap$binder",
            "ioctl$BINDER_SET_MAX_THREADS",
            "ioctl$BINDER_SET_CONTEXT_MGR",
            "ioctl$BINDER_THREAD_EXIT",
            "ioctl$BINDER_GET_NODE_DEBUG_INFO",
            "ioctl$BINDER_WRITE_READ",
        ],
    },
    "dev_block": {
        "enable_syscalls": [
            "openat$nullb",
            "openat$md",
            "ioctl$BLKTRACESETUP",
            "ioctl$BLKTRACESTART",
            "ioctl$BLKTRACESTOP",
            "ioctl$BLKTRACETEARDOWN",
            "ioctl$BLKFLSBUF",
            "ioctl$BLKROSET",
            "ioctl$BLKDISCARD",
            "ioctl$BLKSECDISCARD",
            "ioctl$BLKZEROOUT",
            "ioctl$BLKREPORTZONE",
            "ioctl$BLKRESETZONE",
            "ioctl$BLKRAGET",
            "ioctl$BLKROGET",
            "ioctl$BLKBSZGET",
            "ioctl$BLKPBSZGET",
            "ioctl$BLKIOMIN",
            "ioctl$BLKIOOPT",
            "ioctl$BLKALIGNOFF",
            "ioctl$BLKSECTGET",
            "ioctl$BLKROTATIONAL",
            "ioctl$BLKFRASET",
            "ioctl$BLKBSZSET",
            "ioctl$BLKPG",
            "ioctl$BLKRRPART",
            "ioctl$BLKGETSIZE",
            "ioctl$BLKGETSIZE64",
            "ioctl$HDIO_GETGEO",
            "ioctl$IOC_PR_REGISTER",
            "ioctl$IOC_PR_RESERVE",
            "ioctl$IOC_PR_RELEASE",
            "ioctl$IOC_PR_PREEMPT",
            "ioctl$IOC_PR_PREEMPT_ABORT",
            "ioctl$IOC_PR_CLEAR",
        ],
    },
    "dev_cdrom": {
        "enable_syscalls": [
            "syz_open_dev$CDROM_DEV_LINK",
            "ioctl$CDROMPAUSE",
            "ioctl$CDROMRESUME",
            "ioctl$CDROMPLAYMSF",
            "ioctl$CDROMPLAYTRKIND",
            "ioctl$CDROMREADTOCHDR",
            "ioctl$CDROMREADTOCENTRY",
            "ioctl$CDROMSTOP",
            "ioctl$CDROMSTART",
            "ioctl$CDROMEJECT",
            "ioctl$CDROMVOLCTRL",
            "ioctl$CDROMSUBCHNL",
            "ioctl$CDROMREADMODE2",
            "ioctl$CDROMREADMODE1",
            "ioctl$CDROMREADAUDIO",
            "ioctl$CDROMEJECT_SW",
            "ioctl$CDROMMULTISESSION",
            "ioctl$CDROM_GET_MCN",
            "ioctl$CDROMRESET",
            "ioctl$CDROMVOLREAD",
            "ioctl$CDROMREADRAW",
            "ioctl$CDROMREADCOOKED",
            "ioctl$CDROMSEEK",
            "ioctl$CDROMPLAYBLK",
            "ioctl$CDROMREADALL",
            "ioctl$CDROMGETSPINDOWN",
            "ioctl$CDROMSETSPINDOWN",
            "ioctl$CDROMCLOSETRAY",
            "ioctl$CDROM_SET_OPTIONS",
            "ioctl$CDROM_CLEAR_OPTIONS",
            "ioctl$CDROM_SELECT_SPEED",
            "ioctl$CDROM_SELECT_DISK",
            "ioctl$CDROM_MEDIA_CHANGED",
            "ioctl$CDROM_DISC_STATUS",
            "ioctl$CDROM_CHANGER_NSLOTS",
            "ioctl$CDROM_LOCKDOOR",
            "ioctl$CDROM_DEBUG",
            "ioctl$CDROM_GET_CAPABILITY",
            "ioctl$CDROMAUDIOBUFSIZ",
            "ioctl$DVD_READ_STRUCT",
            "ioctl$DVD_WRITE_STRUCT",
            "ioctl$DVD_AUTH",
            "ioctl$CDROM_SEND_PACKET",
            "ioctl$CDROM_NEXT_WRITABLE",
            "ioctl$CDROM_LAST_WRITTEN",
        ],
    },
    "dev_dri": {
        "enable_syscalls": [
            "syz_open_dev$dri",
            "syz_open_dev$dricontrol",
            "syz_open_dev$drirender",
            "ioctl$DRM_IOCTL_VERSION",
            "ioctl$DRM_IOCTL_GET_UNIQUE",
            "ioctl$DRM_IOCTL_GET_MAGIC",
            "ioctl$DRM_IOCTL_IRQ_BUSID",
            "ioctl$DRM_IOCTL_GET_MAP",
            "ioctl$DRM_IOCTL_GET_CLIENT",
            "ioctl$DRM_IOCTL_GET_STATS",
            "ioctl$DRM_IOCTL_GET_CAP",
            "ioctl$DRM_IOCTL_SET_CLIENT_CAP",
            "ioctl$DRM_IOCTL_SET_VERSION",
            "ioctl$DRM_IOCTL_SET_UNIQUE",
            "ioctl$DRM_IOCTL_AUTH_MAGIC",
            "ioctl$DRM_IOCTL_ADD_MAP",
            "ioctl$DRM_IOCTL_RM_MAP",
            "ioctl$DRM_IOCTL_SET_SAREA_CTX",
            "ioctl$DRM_IOCTL_GET_SAREA_CTX",
            "ioctl$DRM_IOCTL_SET_MASTER",
            "ioctl$DRM_IOCTL_DROP_MASTER",
            "ioctl$DRM_IOCTL_ADD_CTX",
            "ioctl$DRM_IOCTL_RM_CTX",
            "ioctl$DRM_IOCTL_GET_CTX",
            "ioctl$DRM_IOCTL_SWITCH_CTX",
            "ioctl$DRM_IOCTL_NEW_CTX",
            "ioctl$DRM_IOCTL_RES_CTX",
            "ioctl$DRM_IOCTL_LOCK",
            "ioctl$DRM_IOCTL_UNLOCK",
            "ioctl$DRM_IOCTL_ADD_BUFS",
            "ioctl$DRM_IOCTL_MARK_BUFS",
            "ioctl$DRM_IOCTL_INFO_BUFS",
            "ioctl$DRM_IOCTL_MAP_BUFS",
            "ioctl$DRM_IOCTL_FREE_BUFS",
            "ioctl$DRM_IOCTL_DMA",
            "ioctl$DRM_IOCTL_CONTROL",
            "ioctl$DRM_IOCTL_AGP_ACQUIRE",
            "ioctl$DRM_IOCTL_AGP_RELEASE",
            "ioctl$DRM_IOCTL_AGP_ENABLE",
            "ioctl$DRM_IOCTL_AGP_INFO",
            "ioctl$DRM_IOCTL_AGP_ALLOC",
            "ioctl$DRM_IOCTL_AGP_FREE",
            "ioctl$DRM_IOCTL_AGP_BIND",
            "ioctl$DRM_IOCTL_AGP_UNBIND",
            "ioctl$DRM_IOCTL_SG_ALLOC",
            "ioctl$DRM_IOCTL_SG_FREE",
            "ioctl$DRM_IOCTL_WAIT_VBLANK",
            "ioctl$DRM_IOCTL_MODESET_CTL",
            "ioctl$DRM_IOCTL_GEM_OPEN",
            "ioctl$DRM_IOCTL_GEM_CLOSE",
            "ioctl$DRM_IOCTL_GEM_FLINK",
            "ioctl$DRM_IOCTL_MODE_GETRESOURCES",
            "ioctl$DRM_IOCTL_PRIME_HANDLE_TO_FD",
            "ioctl$DRM_IOCTL_PRIME_FD_TO_HANDLE",
            "ioctl$DRM_IOCTL_MODE_GETPLANERESOURCES",
            "ioctl$DRM_IOCTL_MODE_GETCRTC",
            "ioctl$DRM_IOCTL_MODE_SETCRTC",
        ],
    },
    "dev_floppy": {
        "enable_syscalls": [
            "syz_open_dev$floppy",
            "ioctl$FLOPPY_FDEJECT",
            "ioctl$FLOPPY_FDCLRPRM",
            "ioctl$FLOPPY_FDSETPRM",
            "ioctl$FLOPPY_FDDEFPRM",
            "ioctl$FLOPPY_FDGETPRM",
            "ioctl$FLOPPY_FDMSGON",
            "ioctl$FLOPPY_FDMSGOFF",
            "ioctl$FLOPPY_FDFMTBEG",
            "ioctl$FLOPPY_FDFMTTRK",
            "ioctl$FLOPPY_FDFMTEND",
            "ioctl$FLOPPY_FDFLUSH",
            "ioctl$FLOPPY_FDSETEMSGTRESH",
            "ioctl$FLOPPY_FDGETMAXERRS",
            "ioctl$FLOPPY_FDSETMAXERRS",
            "ioctl$FLOPPY_FDGETDRVTYP",
            "ioctl$FLOPPY_FDSETDRVPRM",
            "ioctl$FLOPPY_FDGETDRVPRM",
            "ioctl$FLOPPY_FDPOLLDRVSTAT",
            "ioctl$FLOPPY_FDGETDRVSTAT",
            "ioctl$FLOPPY_FDRESET",
            "ioctl$FLOPPY_FDGETFDCSTAT",
            "ioctl$FLOPPY_FDWERRORCLR",
            "ioctl$FLOPPY_FDWERRORGET",
            "ioctl$FLOPPY_FDRAWCMD",
            "ioctl$FLOPPY_FDTWADDLE",
        ],
    },
    "dev_i2c": {
        "enable_syscalls": [
            "syz_open_dev$I2C",
            "ioctl$I2C_RETRIES",
            "ioctl$I2C_TIMEOUT",
            "ioctl$I2C_SLAVE",
            "ioctl$I2C_SLAVE_FORCE",
            "ioctl$I2C_TENBIT",
            "ioctl$I2C_PEC",
            "ioctl$I2C_FUNCS",
            "ioctl$I2C_RDWR",
            "ioctl$I2C_SMBUS",
        ],
    },
    "dev_input": {
        "enable_syscalls": [
            "syz_open_dev$mouse",
            "syz_open_dev$mice",
            "syz_open_dev$evdev",
            "write$evdev",
            "ioctl$EVIOCGVERSION",
            "ioctl$EVIOCGID",
            "ioctl$EVIOCGREP",
            "ioctl$EVIOCGKEYCODE",
            "ioctl$EVIOCGKEYCODE_V2",
            "ioctl$EVIOCGEFFECTS",
            "ioctl$EVIOCGMASK",
            "ioctl$EVIOCGNAME",
            "ioctl$EVIOCGPHYS",
            "ioctl$EVIOCGUNIQ",
            "ioctl$EVIOCGPROP",
            "ioctl$EVIOCGMTSLOTS",
            "ioctl$EVIOCGKEY",
            "ioctl$EVIOCGLED",
            "ioctl$EVIOCGSND",
            "ioctl$EVIOCGSW",
            "ioctl$EVIOCGBITKEY",
            "ioctl$EVIOCGBITSND",
            "ioctl$EVIOCGBITSW",
            "ioctl$EVIOCGABS0",
            "ioctl$EVIOCGABS20",
            "ioctl$EVIOCGABS2F",
            "ioctl$EVIOCGABS3F",
            "ioctl$EVIOCSREP",
            "ioctl$EVIOCSKEYCODE",
            "ioctl$EVIOCSKEYCODE_V2",
            "ioctl$EVIOCSFF",
            "ioctl$EVIOCRMFF",
            "ioctl$EVIOCGRAB",
            "ioctl$EVIOCREVOKE",
            "ioctl$EVIOCSMASK",
            "ioctl$EVIOCSCLOCKID",
            "ioctl$EVIOCSABS0",
            "ioctl$EVIOCSABS20",
            "ioctl$EVIOCSABS2F",
            "ioctl$EVIOCSABS3F",
        ],
    },
    "dev_ion": {
        "enable_syscalls": [
            "openat$ion",
            "ioctl$ION_IOC_ALLOC",
            "ioctl$ION_IOC_HEAP_QUERY",
            "ioctl$DMA_BUF_IOCTL_SYNC",
        ],
    },
    "dev_kvm": {
        "enable_syscalls": [
            "openat$kvm",
            "ioctl$KVM_CREATE_VM",
            "ioctl$KVM_GET_MSR_INDEX_LIST",
            "ioctl$KVM_CHECK_EXTENSION",
            "ioctl$KVM_GET_VCPU_MMAP_SIZE",
            "ioctl$KVM_GET_SUPPORTED_CPUID",
            "ioctl$KVM_GET_EMULATED_CPUID",
            "ioctl$KVM_X86_GET_MCE_CAP_SUPPORTED",
            "ioctl$KVM_GET_API_VERSION",
            "ioctl$KVM_CREATE_VCPU",
            "ioctl$KVM_CHECK_EXTENSION_VM",
            "ioctl$KVM_GET_DIRTY_LOG",
            "ioctl$KVM_CREATE_IRQCHIP",
            "ioctl$KVM_IRQ_LINE",
            "ioctl$KVM_IRQ_LINE_STATUS",
            "ioctl$KVM_GET_IRQCHIP",
            "ioctl$KVM_SET_IRQCHIP",
            "ioctl$KVM_XEN_HVM_CONFIG",
            "ioctl$KVM_GET_CLOCK",
            "ioctl$KVM_SET_CLOCK",
            "ioctl$KVM_SET_USER_MEMORY_REGION",
            "ioctl$KVM_SET_TSS_ADDR",
            "ioctl$KVM_ENABLE_CAP",
            "ioctl$KVM_SET_IDENTITY_MAP_ADDR",
            "ioctl$KVM_SET_BOOT_CPU_ID",
            "ioctl$KVM_PPC_GET_PVINFO",
            "ioctl$KVM_ASSIGN_PCI_DEVICE",
            "ioctl$KVM_DEASSIGN_PCI_DEVICE",
            "ioctl$KVM_ASSIGN_DEV_IRQ",
            "ioctl$KVM_DEASSIGN_DEV_IRQ",
            "ioctl$KVM_SET_GSI_ROUTING",
            "ioctl$KVM_ASSIGN_SET_MSIX_NR",
            "ioctl$KVM_ASSIGN_SET_MSIX_ENTRY",
            "ioctl$KVM_IOEVENTFD",
            "ioctl$KVM_ASSIGN_SET_INTX_MASK",
            "ioctl$KVM_SIGNAL_MSI",
            "ioctl$KVM_CREATE_PIT2",
            "ioctl$KVM_GET_PIT",
            "ioctl$KVM_SET_PIT",
            "ioctl$KVM_GET_PIT2",
            "ioctl$KVM_SET_PIT2",
            "ioctl$KVM_PPC_GET_SMMU_INFO",
            "ioctl$KVM_IRQFD",
            "ioctl$KVM_PPC_ALLOCATE_HTAB",
            "ioctl$KVM_CREATE_DEVICE",
            "ioctl$KVM_REGISTER_COALESCED_MMIO",
            "ioctl$KVM_UNREGISTER_COALESCED_MMIO",
            "ioctl$KVM_SET_NR_MMU_PAGES",
            "ioctl$KVM_GET_NR_MMU_PAGES",
            "ioctl$KVM_REINJECT_CONTROL",
            "ioctl$KVM_HYPERV_EVENTFD",
        ],
    },
    "dev_loop": {
        "enable_syscalls": [
            "syz_open_dev$loop",
            "ioctl$LOOP_SET_FD",
            "ioctl$LOOP_CHANGE_FD",
            "ioctl$LOOP_CLR_FD",
            "ioctl$LOOP_SET_STATUS",
            "ioctl$LOOP_SET_STATUS64",
            "ioctl$LOOP_GET_STATUS",
            "ioctl$LOOP_GET_STATUS64",
            "ioctl$LOOP_SET_CAPACITY",
            "ioctl$LOOP_SET_DIRECT_IO",
            "ioctl$LOOP_SET_BLOCK_SIZE",
            "openat$loop_ctrl",
            "ioctl$LOOP_CTL_GET_FREE",
            "ioctl$LOOP_CTL_ADD",
            "ioctl$LOOP_CTL_REMOVE",
        ],
    },
    "dev_nbd": {
        "enable_syscalls": [
            "syz_open_dev$ndb",
            "ioctl$NBD_DISCONNECT",
            "ioctl$NBD_CLEAR_SOCK",
            "ioctl$NBD_SET_SOCK",
            "ioctl$NBD_SET_BLKSIZE",
            "ioctl$NBD_SET_SIZE",
            "ioctl$NBD_SET_SIZE_BLOCKS",
            "ioctl$NBD_SET_TIMEOUT",
            "ioctl$NBD_SET_FLAGS",
            "ioctl$NBD_DO_IT",
            "ioctl$NBD_CLEAR_QUE",
            "syz_genetlink_get_family_id$nbd",
            "sendmsg$NBD_CMD_CONNECT",
            "sendmsg$NBD_CMD_DISCONNECT",
            "sendmsg$NBD_CMD_RECONFIGURE",
            "sendmsg$NBD_CMD_STATUS",
            "socketpair$nbd",
        ],
    },
    "dev_net_tun": {
        "enable_syscalls": [
            "openat$tun",
            "write$tun",
            "ioctl$TUNGETFEATURES",
            "ioctl$TUNSETQUEUE",
            "ioctl$TUNSETIFF",
            "ioctl$TUNSETIFINDEX",
            "ioctl$TUNGETIFF",
            "ioctl$TUNSETNOCSUM",
            "ioctl$TUNSETPERSIST",
            "ioctl$TUNSETOWNER",
            "ioctl$TUNSETGROUP",
            "ioctl$TUNSETLINK",
            "ioctl$TUNSETOFFLOAD",
            "ioctl$TUNSETTXFILTER",
            "ioctl$SIOCGIFHWADDR",
            "ioctl$SIOCSIFHWADDR",
            "ioctl$TUNGETSNDBUF",
            "ioctl$TUNSETSNDBUF",
            "ioctl$TUNGETVNETHDRSZ",
            "ioctl$TUNSETVNETHDRSZ",
            "ioctl$TUNATTACHFILTER",
            "ioctl$TUNDETACHFILTER",
            "ioctl$TUNGETFILTER",
            "ioctl$TUNSETSTEERINGEBPF",
            "ioctl$TUNSETFILTEREBPF",
            "ioctl$TUNSETVNETLE",
            "ioctl$TUNSETVNETBE",
            "syz_open_dev$loop",
        ],
    },
    "dev_ppp": {
        "enable_syscalls": [
            "openat$ppp",
            "write$ppp",
            "ioctl$PPPIOCNEWUNIT",
            "ioctl$PPPIOCATTACH",
            "ioctl$PPPIOCATTCHAN",
            "ioctl$PPPIOCCONNECT",
            "ioctl$PPPIOCDISCONN",
            "ioctl$PPPIOCSCOMPRESS",
            "ioctl$PPPIOCGUNIT",
            "ioctl$PPPIOCSDEBUG",
            "ioctl$PPPIOCGDEBUG",
            "ioctl$PPPIOCGIDLE",
            "ioctl$PPPIOCSMAXCID",
            "ioctl$PPPIOCGNPMODE",
            "ioctl$PPPIOCSNPMODE",
            "ioctl$PPPIOCSPASS",
            "ioctl$PPPIOCSACTIVE",
            "ioctl$PPPIOCSMRRU",
            "ioctl$PPPIOCSMRU1",
            "ioctl$PPPIOCSFLAGS1",
            "ioctl$PPPIOCGFLAGS1",
        ],
    },
    "dev_ptmx": {
        "enable_syscalls": [
            "openat$ptmx",
            "syz_open_pts",
            "ioctl$TCGETS",
            "ioctl$TCSETS",
            "ioctl$TCSETSW",
            "ioctl$TCSETSF",
            "ioctl$TCGETA",
            "ioctl$TCSETA",
            "ioctl$TCSETAW",
            "ioctl$TCSETAF",
            "ioctl$TIOCGLCKTRMIOS",
            "ioctl$TIOCSLCKTRMIOS",
            "ioctl$TIOCGWINSZ",
            "ioctl$TIOCSWINSZ",
            "ioctl$TCSBRK",
            "ioctl$TCSBRKP",
            "ioctl$TIOCSBRK",
            "ioctl$TIOCCBRK",
            "ioctl$TCXONC",
            "ioctl$FIONREAD",
            "ioctl$TIOCOUTQ",
            "ioctl$TCFLSH",
            "ioctl$TIOCSTI",
            "ioctl$TIOCCONS",
            "ioctl$TIOCSCTTY",
            "ioctl$TIOCNOTTY",
            "ioctl$TIOCGPGRP",
            "ioctl$TIOCSPGRP",
            "ioctl$TIOCGSID",
            "ioctl$TIOCEXCL",
            "ioctl$TIOCNXCL",
            "ioctl$TIOCGETD",
            "ioctl$TIOCSETD",
            "ioctl$TIOCPKT",
            "ioctl$TIOCMGET",
            "ioctl$TIOCMSET",
            "ioctl$TIOCMBIC",
            "ioctl$TIOCMBIS",
            "ioctl$TIOCGSOFTCAR",
            "ioctl$TIOCSSOFTCAR",
            "ioctl$KDGETLED",
            "ioctl$KDSETLED",
            "ioctl$KDGKBLED",
            "ioctl$KDSKBLED",
            "ioctl$KDGKBTYPE",
            "ioctl$KDADDIO",
            "ioctl$KDDELIO",
            "ioctl$KDENABIO",
            "ioctl$KDDISABIO",
            "ioctl$KDSETMODE",
            "ioctl$KDGETMODE",
            "ioctl$KDMKTONE",
            "ioctl$KIOCSOUND",
            "ioctl$GIO_CMAP",
            "ioctl$PIO_CMAP",
            "ioctl$GIO_FONT",
            "ioctl$GIO_FONTX",
            "ioctl$PIO_FONT",
            "ioctl$PIO_FONTX",
            "ioctl$PIO_FONTRESET",
            "ioctl$GIO_SCRNMAP",
            "ioctl$GIO_UNISCRNMAP",
            "ioctl$PIO_SCRNMAP",
            "ioctl$PIO_UNISCRNMAP",
            "ioctl$GIO_UNIMAP",
            "ioctl$PIO_UNIMAP",
            "ioctl$PIO_UNIMAPCLR",
            "ioctl$KDGKBMODE",
            "ioctl$KDSKBMODE",
            "ioctl$KDGKBMETA",
            "ioctl$KDSKBMETA",
            "ioctl$KDGKBENT",
            "ioctl$KDGKBSENT",
            "ioctl$KDSKBSENT",
            "ioctl$KDGKBDIACR",
            "ioctl$KDGETKEYCODE",
            "ioctl$KDSETKEYCODE",
            "ioctl$KDSIGACCEPT",
            "ioctl$VT_OPENQRY",
            "ioctl$VT_GETMODE",
            "ioctl$VT_SETMODE",
            "ioctl$VT_GETSTATE",
            "ioctl$VT_RELDISP",
            "ioctl$VT_ACTIVATE",
            "ioctl$VT_WAITACTIVE",
            "ioctl$VT_DISALLOCATE",
            "ioctl$VT_RESIZE",
            "ioctl$VT_RESIZEX",
            "ioctl$TIOCLINUX2",
            "ioctl$TIOCLINUX3",
            "ioctl$TIOCLINUX4",
            "ioctl$TIOCLINUX5",
            "ioctl$TIOCLINUX6",
            "ioctl$TIOCLINUX7",
            "ioctl$TIOCGSERIAL",
            "ioctl$TIOCSSERIAL",
            "ioctl$TCGETS2",
            "ioctl$TCSETS2",
            "ioctl$TIOCSERGETLSR",
            "ioctl$TIOCGRS485",
            "ioctl$TIOCSRS485",
            "ioctl$TIOCGISO7816",
            "ioctl$TIOCSISO7816",
            "ioctl$TIOCSPTLCK",
            "ioctl$TIOCGPTLCK",
            "ioctl$TIOCGPKT",
            "ioctl$TIOCSIG",
            "ioctl$TIOCVHANGUP",
            "ioctl$TIOCGDEV",
            "ioctl$TCGETX",
            "ioctl$TCSETX",
            "ioctl$TCSETXF",
            "ioctl$TCSETXW",
            "ioctl$TIOCMIWAIT",
            "ioctl$TIOCGICOUNT",
        ],
    },
    "dev_random": {
        "enable_syscalls": [
            "openat$random",
            "openat$urandom",
            "ioctl$RNDGETENTCNT",
            "ioctl$RNDADDTOENTCNT",
            "ioctl$RNDADDENTROPY",
            "ioctl$RNDZAPENTCNT",
            "ioctl$RNDCLEARPOOL",
        ],
    },
    "dev_rfkill": {
        "enable_syscalls": [
            "openat$rfkill",
            "write$rfkill",
            "read$rfkill",
            "ioctl$RFKILL_IOCTL_NOINPUT",
        ],
    },
    "dev_rtc": {
        "enable_syscalls": [
            "openat$rtc",
            "syz_open_dev$rtc",
            "ioctl$RTC_AIE_OFF",
            "ioctl$RTC_AIE_ON",
            "ioctl$RTC_PIE_OFF",
            "ioctl$RTC_PIE_ON",
            "ioctl$RTC_UIE_OFF",
            "ioctl$RTC_UIE_ON",
            "ioctl$RTC_WIE_ON",
            "ioctl$RTC_WIE_OFF",
            "ioctl$RTC_ALM_READ",
            "ioctl$RTC_ALM_SET",
            "ioctl$RTC_RD_TIME",
            "ioctl$RTC_SET_TIME",
            "ioctl$RTC_IRQP_READ",
            "ioctl$RTC_IRQP_SET",
            "ioctl$RTC_EPOCH_READ",
            "ioctl$RTC_EPOCH_SET",
            "ioctl$RTC_WKALM_RD",
            "ioctl$RTC_WKALM_SET",
            "ioctl$RTC_PLL_GET",
            "ioctl$RTC_PLL_SET",
            "ioctl$RTC_VL_READ",
            "ioctl$RTC_VL_CLR",
        ],
    },
    "dev_sg": {
        "enable_syscalls": [
            "syz_open_dev$sg",
            "ioctl$SG_IO",
            "ioctl$SG_SET_TIMEOUT",
            "ioctl$SG_GET_TIMEOUT",
            "ioctl$SG_GET_LOW_DMA",
            "ioctl$SG_GET_SCSI_ID",
            "ioctl$SG_SET_FORCE_PACK_ID",
            "ioctl$SG_GET_PACK_ID",
            "ioctl$SG_GET_NUM_WAITING",
            "ioctl$SG_GET_SG_TABLESIZE",
            "ioctl$SG_SET_RESERVED_SIZE",
            "ioctl$SG_GET_RESERVED_SIZE",
            "ioctl$SG_GET_COMMAND_Q",
            "ioctl$SG_GET_KEEP_ORPHAN",
            "ioctl$SG_GET_VERSION_NUM",
            "ioctl$SG_GET_ACCESS_COUNT",
            "ioctl$SG_EMULATED_HOST",
            "ioctl$SG_SET_COMMAND_Q",
            "ioctl$SG_SET_KEEP_ORPHAN",
            "ioctl$SG_NEXT_CMD_LEN",
            "ioctl$SG_SET_DEBUG",
            "ioctl$SG_SCSI_RESET",
            "ioctl$SG_GET_REQUEST_TABLE",
            "ioctl$SCSI_IOCTL_SEND_COMMAND",
            "ioctl$SCSI_IOCTL_TEST_UNIT_READY",
            "ioctl$SCSI_IOCTL_DOORLOCK",
            "ioctl$SCSI_IOCTL_DOORUNLOCK",
            "ioctl$SCSI_IOCTL_START_UNIT",
            "ioctl$SCSI_IOCTL_STOP_UNIT",
            "ioctl$SCSI_IOCTL_SYNC",
            "ioctl$SCSI_IOCTL_BENCHMARK_COMMAND",
            "ioctl$SCSI_IOCTL_GET_BUS_NUMBER",
            "ioctl$SCSI_IOCTL_GET_PCI",
            "ioctl$SCSI_IOCTL_PROBE_HOST",
            "ioctl$SCSI_IOCTL_GET_IDLUN",
        ],
    },
    "dev_snd_control": {
        "enable_syscalls": [
            "syz_open_dev$sndctrl",
            "ioctl$SNDRV_CTL_IOCTL_PVERSION",
            "ioctl$SNDRV_CTL_IOCTL_CARD_INFO",
            "ioctl$SNDRV_CTL_IOCTL_HWDEP_INFO",
            "ioctl$SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE",
            "ioctl$SNDRV_CTL_IOCTL_POWER_STATE",
            "ioctl$SNDRV_CTL_IOCTL_ELEM_LIST",
            "ioctl$SNDRV_CTL_IOCTL_ELEM_INFO",
            "ioctl$SNDRV_CTL_IOCTL_ELEM_READ",
            "ioctl$SNDRV_CTL_IOCTL_ELEM_WRITE",
            "ioctl$SNDRV_CTL_IOCTL_ELEM_LOCK",
            "ioctl$SNDRV_CTL_IOCTL_ELEM_UNLOCK",
            "ioctl$SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS",
            "ioctl$SNDRV_CTL_IOCTL_ELEM_ADD",
            "ioctl$SNDRV_CTL_IOCTL_ELEM_REPLACE",
            "ioctl$SNDRV_CTL_IOCTL_ELEM_REMOVE",
            "ioctl$SNDRV_CTL_IOCTL_TLV_READ",
            "ioctl$SNDRV_CTL_IOCTL_TLV_WRITE",
            "ioctl$SNDRV_CTL_IOCTL_TLV_COMMAND",
            "ioctl$SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE",
            "ioctl$SNDRV_CTL_IOCTL_PCM_INFO",
            "ioctl$SNDRV_CTL_IOCTL_PCM_PREFER_SUBDEVICE",
            "ioctl$SNDRV_CTL_IOCTL_RAWMIDI_NEXT_DEVICE",
            "ioctl$SNDRV_CTL_IOCTL_RAWMIDI_INFO",
            "ioctl$SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE",
        ],
    },
    "dev_snd_seq": {
        "enable_syscalls": [
            "syz_open_dev$sndseq",
            "write$sndseq",
            "ioctl$SNDRV_SEQ_IOCTL_PVERSION",
            "ioctl$SNDRV_SEQ_IOCTL_CLIENT_ID",
            "ioctl$SNDRV_SEQ_IOCTL_SYSTEM_INFO",
            "ioctl$SNDRV_SEQ_IOCTL_RUNNING_MODE",
            "ioctl$SNDRV_SEQ_IOCTL_GET_CLIENT_INFO",
            "ioctl$SNDRV_SEQ_IOCTL_SET_CLIENT_INFO",
            "ioctl$SNDRV_SEQ_IOCTL_CREATE_PORT",
            "ioctl$SNDRV_SEQ_IOCTL_DELETE_PORT",
            "ioctl$SNDRV_SEQ_IOCTL_GET_PORT_INFO",
            "ioctl$SNDRV_SEQ_IOCTL_SET_PORT_INFO",
            "ioctl$SNDRV_SEQ_IOCTL_SUBSCRIBE_PORT",
            "ioctl$SNDRV_SEQ_IOCTL_UNSUBSCRIBE_PORT",
            "ioctl$SNDRV_SEQ_IOCTL_CREATE_QUEUE",
            "ioctl$SNDRV_SEQ_IOCTL_DELETE_QUEUE",
            "ioctl$SNDRV_SEQ_IOCTL_GET_QUEUE_INFO",
            "ioctl$SNDRV_SEQ_IOCTL_SET_QUEUE_INFO",
            "ioctl$SNDRV_SEQ_IOCTL_GET_NAMED_QUEUE",
            "ioctl$SNDRV_SEQ_IOCTL_GET_QUEUE_STATUS",
            "ioctl$SNDRV_SEQ_IOCTL_GET_QUEUE_TEMPO",
            "ioctl$SNDRV_SEQ_IOCTL_SET_QUEUE_TEMPO",
            "ioctl$SNDRV_SEQ_IOCTL_GET_QUEUE_TIMER",
            "ioctl$SNDRV_SEQ_IOCTL_SET_QUEUE_TIMER",
            "ioctl$SNDRV_SEQ_IOCTL_GET_QUEUE_CLIENT",
            "ioctl$SNDRV_SEQ_IOCTL_SET_QUEUE_CLIENT",
            "ioctl$SNDRV_SEQ_IOCTL_GET_CLIENT_POOL",
            "ioctl$SNDRV_SEQ_IOCTL_SET_CLIENT_POOL",
            "ioctl$SNDRV_SEQ_IOCTL_REMOVE_EVENTS",
            "ioctl$SNDRV_SEQ_IOCTL_QUERY_SUBS",
            "ioctl$SNDRV_SEQ_IOCTL_GET_SUBSCRIPTION",
            "ioctl$SNDRV_SEQ_IOCTL_QUERY_NEXT_CLIENT",
            "ioctl$SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT",
        ],
    },
    "dev_snd_timer": {
        "enable_syscalls": [
            "syz_open_dev$sndtimer",
            "ioctl$SNDRV_TIMER_IOCTL_PVERSION",
            "ioctl$SNDRV_TIMER_IOCTL_NEXT_DEVICE",
            "ioctl$SNDRV_TIMER_IOCTL_TREAD",
            "ioctl$SNDRV_TIMER_IOCTL_GINFO",
            "ioctl$SNDRV_TIMER_IOCTL_GPARAMS",
            "ioctl$SNDRV_TIMER_IOCTL_GSTATUS",
            "ioctl$SNDRV_TIMER_IOCTL_SELECT",
            "ioctl$SNDRV_TIMER_IOCTL_INFO",
            "ioctl$SNDRV_TIMER_IOCTL_PARAMS",
            "ioctl$SNDRV_TIMER_IOCTL_STATUS",
            "ioctl$SNDRV_TIMER_IOCTL_START",
            "ioctl$SNDRV_TIMER_IOCTL_STOP",
            "ioctl$SNDRV_TIMER_IOCTL_CONTINUE",
            "ioctl$SNDRV_TIMER_IOCTL_PAUSE",
        ],
    },
    "dev_sr": {
        "enable_syscalls": [
            "openat$sr",
        ],
    },
    "dev_uhid": {
        "enable_syscalls": [
            "openat$uhid",
            "write$UHID_CREATE",
            "write$UHID_CREATE2",
            "write$UHID_DESTROY",
            "write$UHID_INPUT",
            "write$UHID_INPUT2",
            "write$UHID_GET_REPORT_REPLY",
            "write$UHID_SET_REPORT_REPLY",
        ],
    },
    "dev_uinput": {
        "enable_syscalls": [
            "openat$uinput",
            "write$uinput_user_dev",
            "write$input_event",
            "ioctl$UI_GET_VERSION",
            "ioctl$UI_DEV_CREATE",
            "ioctl$UI_DEV_DESTROY",
            "ioctl$UI_DEV_SETUP",
            "ioctl$UI_SET_EVBIT",
            "ioctl$UI_SET_KEYBIT",
            "ioctl$UI_SET_RELBIT",
            "ioctl$UI_SET_MSCBIT",
            "ioctl$UI_SET_ABSBIT",
            "ioctl$UI_SET_LEDBIT",
            "ioctl$UI_SET_SNDBIT",
            "ioctl$UI_SET_FFBIT",
            "ioctl$UI_SET_SWBIT",
            "ioctl$UI_SET_PROPBIT",
            "ioctl$UI_SET_PHYS",
            "ioctl$UI_BEGIN_FF_UPLOAD",
            "ioctl$UI_BEGIN_FF_ERASE",
            "ioctl$UI_END_FF_UPLOAD",
            "ioctl$UI_END_FF_ERASE",
            "ioctl$UI_GET_SYSNAME",
            "ioctl$UI_ABS_SETUP",
        ],
    },
    "dev_userio": {
        "enable_syscalls": [
            "openat$userio",
            "write$USERIO_CMD_REGISTER",
            "write$USERIO_CMD_SET_PORT_TYPE",
            "write$USERIO_CMD_SEND_INTERRUPT",
        ],
    },
    "dev_video4linux": {
        "enable_syscalls": [
            "syz_open_dev$video",
            "syz_open_dev$video4linux",
            "openat$vimc0",
            "openat$vimc1",
            "openat$vimc2",
            "syz_open_dev$vivid",
            "openat$vim2m",
            "openat$vicodec0",
            "openat$vicodec1",
            "syz_open_dev$swradio",
            "syz_open_dev$radio",
            "syz_open_dev$vbi",
            "syz_open_dev$cec",
            "ioctl$VIDIOC_QUERYCAP",
            "ioctl$VIDIOC_RESERVED",
            "ioctl$VIDIOC_ENUM_FMT",
            "ioctl$VIDIOC_G_FMT",
            "ioctl$VIDIOC_S_FMT",
            "ioctl$VIDIOC_REQBUFS",
            "ioctl$VIDIOC_QUERYBUF",
            "ioctl$VIDIOC_G_FBUF",
            "ioctl$VIDIOC_S_FBUF",
            "ioctl$VIDIOC_OVERLAY",
            "ioctl$VIDIOC_QBUF",
            "ioctl$VIDIOC_EXPBUF",
            "ioctl$VIDIOC_DQBUF",
            "ioctl$VIDIOC_STREAMON",
            "ioctl$VIDIOC_STREAMOFF",
            "ioctl$VIDIOC_G_PARM",
            "ioctl$VIDIOC_S_PARM",
            "ioctl$VIDIOC_G_STD",
            "ioctl$VIDIOC_S_STD",
            "ioctl$VIDIOC_ENUMSTD",
            "ioctl$VIDIOC_ENUMINPUT",
            "ioctl$VIDIOC_G_CTRL",
            "ioctl$VIDIOC_S_CTRL",
            "ioctl$VIDIOC_G_TUNER",
            "ioctl$VIDIOC_S_TUNER",
            "ioctl$VIDIOC_G_AUDIO",
            "ioctl$VIDIOC_S_AUDIO",
            "ioctl$VIDIOC_QUERYCTRL",
            "ioctl$VIDIOC_QUERYMENU",
            "ioctl$VIDIOC_G_INPUT",
            "ioctl$VIDIOC_S_INPUT",
            "ioctl$VIDIOC_G_EDID",
            "ioctl$VIDIOC_S_EDID",
            "ioctl$VIDIOC_G_OUTPUT",
            "ioctl$VIDIOC_S_OUTPUT",
            "ioctl$VIDIOC_ENUMOUTPUT",
            "ioctl$VIDIOC_G_AUDOUT",
            "ioctl$VIDIOC_S_AUDOUT",
            "ioctl$VIDIOC_G_MODULATOR",
            "ioctl$VIDIOC_S_MODULATOR",
            "ioctl$VIDIOC_G_FREQUENCY",
            "ioctl$VIDIOC_S_FREQUENCY",
            "ioctl$VIDIOC_CROPCAP",
            "ioctl$VIDIOC_G_CROP",
            "ioctl$VIDIOC_S_CROP",
            "ioctl$VIDIOC_G_JPEGCOMP",
            "ioctl$VIDIOC_S_JPEGCOMP",
            "ioctl$VIDIOC_QUERYSTD",
            "ioctl$VIDIOC_TRY_FMT",
            "ioctl$VIDIOC_ENUMAUDIO",
            "ioctl$VIDIOC_ENUMAUDOUT",
            "ioctl$VIDIOC_G_PRIORITY",
            "ioctl$VIDIOC_S_PRIORITY",
            "ioctl$VIDIOC_G_SLICED_VBI_CAP",
            "ioctl$VIDIOC_LOG_STATUS",
            "ioctl$VIDIOC_G_EXT_CTRLS",
            "ioctl$VIDIOC_S_EXT_CTRLS",
            "ioctl$VIDIOC_TRY_EXT_CTRLS",
            "ioctl$VIDIOC_ENUM_FRAMESIZES",
            "ioctl$VIDIOC_ENUM_FRAMEINTERVALS",
            "ioctl$VIDIOC_G_ENC_INDEX",
            "ioctl$VIDIOC_ENCODER_CMD",
            "ioctl$VIDIOC_TRY_ENCODER_CMD",
            "ioctl$VIDIOC_DBG_S_REGISTER",
            "ioctl$VIDIOC_DBG_G_REGISTER",
            "ioctl$VIDIOC_S_HW_FREQ_SEEK",
            "ioctl$VIDIOC_S_DV_TIMINGS",
            "ioctl$VIDIOC_G_DV_TIMINGS",
            "ioctl$VIDIOC_DQEVENT",
            "ioctl$VIDIOC_SUBSCRIBE_EVENT",
            "ioctl$VIDIOC_UNSUBSCRIBE_EVENT",
            "ioctl$VIDIOC_CREATE_BUFS",
            "ioctl$VIDIOC_PREPARE_BUF",
            "ioctl$VIDIOC_G_SELECTION",
            "ioctl$VIDIOC_S_SELECTION",
            "ioctl$VIDIOC_DECODER_CMD",
            "ioctl$VIDIOC_TRY_DECODER_CMD",
            "ioctl$VIDIOC_ENUM_DV_TIMINGS",
            "ioctl$VIDIOC_QUERY_DV_TIMINGS",
            "ioctl$VIDIOC_DV_TIMINGS_CAP",
            "ioctl$VIDIOC_ENUM_FREQ_BANDS",
            "ioctl$VIDIOC_DBG_G_CHIP_INFO",
            "ioctl$VIDIOC_QUERY_EXT_CTRL",
            "ioctl$VIDIOC_SUBDEV_G_FMT",
            "ioctl$VIDIOC_SUBDEV_S_FMT",
            "ioctl$VIDIOC_SUBDEV_G_FRAME_INTERVAL",
            "ioctl$VIDIOC_SUBDEV_S_FRAME_INTERVAL",
            "ioctl$VIDIOC_SUBDEV_ENUM_MBUS_CODE",
            "ioctl$VIDIOC_SUBDEV_ENUM_FRAME_SIZE",
            "ioctl$VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL",
            "ioctl$VIDIOC_SUBDEV_G_CROP",
            "ioctl$VIDIOC_SUBDEV_S_CROP",
            "ioctl$VIDIOC_SUBDEV_G_SELECTION",
            "ioctl$VIDIOC_SUBDEV_S_SELECTION",
            "ioctl$VIDIOC_SUBDEV_G_EDID",
            "ioctl$VIDIOC_SUBDEV_S_EDID",
            "ioctl$VIDIOC_SUBDEV_S_DV_TIMINGS",
            "ioctl$VIDIOC_SUBDEV_G_DV_TIMINGS",
            "ioctl$VIDIOC_SUBDEV_ENUM_DV_TIMINGS",
            "ioctl$VIDIOC_SUBDEV_QUERY_DV_TIMINGS",
            "ioctl$VIDIOC_SUBDEV_DV_TIMINGS_CAP",
        ],
    },
}
