Files
systemd/test/fuzz/fuzz-user-record/auth-recovery.json
T
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

28 lines
745 B
JSON

{
"userName": "recoveryuser",
"realName": "Recovery Key User",
"uid": 2003,
"gid": 2003,
"homeDirectory": "/home/recoveryuser",
"shell": "/bin/bash",
"disposition": "regular",
"storage": "luks",
"imagePath": "/home/recoveryuser.home",
"recoveryKeyType": ["modhex64", "modhex64"],
"privileged": {
"hashedPassword": [
"$6$mainsalt$mainpasswordhashforrecoveryuser"
],
"recoveryKey": [
{
"type": "modhex64",
"hashedPassword": "$6$recovery1$hashedrecoverykey1"
},
{
"type": "modhex64",
"hashedPassword": "$6$recovery2$hashedrecoverykey2"
}
]
}
}