mirror of
https://github.com/systemd/systemd.git
synced 2026-08-08 17:10:55 +00:00
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.
41 lines
1.2 KiB
JSON
41 lines
1.2 KiB
JSON
{
|
|
"userName": "fido2user",
|
|
"realName": "FIDO2 Security Key User",
|
|
"uid": 2002,
|
|
"gid": 2002,
|
|
"homeDirectory": "/home/fido2user",
|
|
"shell": "/bin/bash",
|
|
"disposition": "regular",
|
|
"storage": "luks",
|
|
"imagePath": "/home/fido2user.home",
|
|
"fido2HmacCredential": [
|
|
"AQIDBAUAAQ==",
|
|
"BQYHCAkKCw=="
|
|
],
|
|
"privileged": {
|
|
"fido2HmacSalt": [
|
|
{
|
|
"credential": "AQIDBAUAAQ==",
|
|
"salt": "Zmlyc3RzYWx0Zm9yZmlkbzJ0ZXN0aW5n",
|
|
"hashedPassword": "$6$fido2salt1$hashedpasswordforfido2credential1",
|
|
"up": true,
|
|
"uv": false,
|
|
"clientPin": false
|
|
},
|
|
{
|
|
"credential": "BQYHCAkKCw==",
|
|
"salt": "c2Vjb25kc2FsdGZvcmZpZG8ydGVzdA==",
|
|
"hashedPassword": "$6$fido2salt2$hashedpasswordforfido2credential2",
|
|
"up": true,
|
|
"uv": true,
|
|
"clientPin": true
|
|
}
|
|
]
|
|
},
|
|
"secret": {
|
|
"tokenPin": ["1234"],
|
|
"fido2UserPresencePermitted": true,
|
|
"fido2UserVerificationPermitted": true
|
|
}
|
|
}
|