Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad Call AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A Tests for nfs export checks. grr.lib flags grr.lib test_lib grr.lib.checks checks_test_lib grr.parsers config_file NfsExportsTests N/A N/A checks_test_lib HostCheckTest N/A N/A results None setUpClass N/A N/A cls N/A N/A N/A N/A N/A cls LoadCheck nfs.yaml N/A classmethod setUp N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super NfsExportsTests self setUp args kwargs N/A N/A N/A NfsExportsTests results N/A N/A parser N/A N/A config_file NfsExportsParser N/A host_data N/A N/A self SetKnowledgeBase N/A N/A open N/A N/A self TestDataPath exports export_fd N/A N/A parsed N/A list N/A N/A parser Parse None export_fd None N/A N/A host_data N/A NfsExportsFile N/A N/A self SetArtifactData parsed parsed N/A N/A NfsExportsTests results N/A N/A self RunChecks host_data N/A testNfsExportsCheck N/A N/A self N/A N/A N/A Ensure NFS export checks work as expected. N/A check_id CCE-4350-5 N/A sym Found: Default r/w NFS exports are too permissive. N/A found N/A /path/to/foo: defaults:rw,sync,no_root_squash hosts:host1,host2 options:ro,sec=sys /path/to/bar: defaults:rw hosts:*.example.org,192.168.1.0/24 options:all_squash,ro N/A N/A N/A self assertCheckDetectedAnom check_id N/A self results sym found N/A sym Found: Wildcard clients with r/w NFS exports are too permissive. N/A found N/A hosts:*.example.org options:rw N/A N/A N/A self assertCheckDetectedAnom check_id N/A self results sym found N/A testNfsRootSquashCheck N/A N/A self N/A N/A N/A check_id CCE-4544-3 N/A sym Found: NFS defaults allow access to the share as root. N/A found N/A /path/to/foo: defaults:rw,sync,no_root_squash hosts:host1,host2 options:ro N/A N/A N/A self assertCheckDetectedAnom check_id N/A self results sym found N/A testNfsAuthCheck N/A N/A self N/A N/A N/A check_id CCE-5669-7 N/A sym Found: NFS shares use no/weak authentication methods. N/A found N/A /path/to/foo: defaults:rw,sync,no_root_squash options:ro,sec=sys /path/to/bad: defaults:sec=none options:rw N/A N/A N/A self assertCheckDetectedAnom check_id N/A self results sym found N/A N/A main N/A N/A argv N/A N/A N/A N/A N/A test_lib GrrTestProgram argv argv N/A N/A N/A __name__ __main__ N/A N/A N/A N/A flags StartMain main