Files
systemd/test/fuzz/fuzz-user-record/password-policy.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

25 lines
726 B
JSON

{
"userName": "policuser",
"realName": "Password Policy User",
"uid": 3017,
"gid": 3017,
"homeDirectory": "/home/policyuser",
"shell": "/bin/bash",
"disposition": "regular",
"enforcePasswordPolicy": true,
"passwordChangeNow": true,
"passwordChangeMinUSec": 86400000000,
"passwordChangeMaxUSec": 7776000000000,
"passwordChangeWarnUSec": 1209600000000,
"passwordChangeInactiveUSec": 2592000000000,
"lastPasswordChangeUSec": 1700000000000000,
"rateLimitIntervalUSec": 60000000,
"rateLimitBurst": 3,
"privileged": {
"hashedPassword": [
"$6$rounds=656000$salt$hashedpassword"
],
"passwordHint": "Your first pet's name"
}
}