Files
systemd/test/fuzz/fuzz-user-record/luks-complete.json
Frantisek Sumsal be0db50cad fuzz: add a fuzzer for user records
Add a simple fuzzer that verifies our machinery for parsing user records
from JSON works as intended.

The initial corpus was created with the help of Claude, so we have a
bunch of valid user records with as much fields as possible for the
initial corpus.
2026-03-06 19:03:14 +01:00

37 lines
1.1 KiB
JSON

{
"userName": "luksuser",
"realName": "Complete LUKS User",
"uid": 3015,
"gid": 3015,
"homeDirectory": "/home/luksuser",
"shell": "/bin/bash",
"disposition": "regular",
"storage": "luks",
"imagePath": "/home/luksuser.home",
"diskSize": 107374182400,
"fileSystemType": "btrfs",
"partitionUuid": "12345678-1234-1234-1234-123456789abc",
"luksUuid": "abcdef12-3456-7890-abcd-ef1234567890",
"fileSystemUuid": "fedcba98-7654-3210-fedc-ba9876543210",
"luksDiscard": true,
"luksOfflineDiscard": true,
"luksCipher": "aes",
"luksCipherMode": "xts-plain64",
"luksVolumeKeySize": 64,
"luksPbkdfHashAlgorithm": "sha256",
"luksPbkdfType": "pbkdf2",
"luksPbkdfForceIterations": 100000,
"luksPbkdfTimeCostUSec": 500000,
"luksPbkdfMemoryCost": 67108864,
"luksPbkdfParallelThreads": 2,
"luksSectorSize": 4096,
"luksExtraMountOptions": "compress=zstd:3,noatime",
"dropCaches": true,
"mountNoDevices": true,
"mountNoSuid": true,
"mountNoExecute": false,
"accessMode": 448,
"autoResizeMode": "shrink-and-grow",
"rebalanceWeight": 100
}