Utilities

PySpwd

Python stdlib module — spwd. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.getspall()Neutral
#
Signature
getspall()

Return a list of all available shadow password database entries, in arbitrary order.

.getspnam()Neutral
#
Signature
getspnam(arg)

Return the shadow password database entry for the given user name.

.struct_spwd()Neutral
#
Signature
struct_spwd(...)

spwd.struct_spwd: Results from getsp*() routines.

Fully-Qualified Names

FQNField
spwdfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import spwd