mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +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.
25 lines
726 B
JSON
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"
|
|
}
|
|
}
|