Documentation ¶
Overview ¶
Package etcpasswdpermissions implements a detector for the "Ensure permissions on /etc/passwd- are configured" CIS check.
Index ¶
- type Detector
- func (Detector) Name() string
- func (Detector) RequiredExtractors() []string
- func (Detector) Requirements() *plugin.Capabilities
- func (d Detector) Scan(ctx context.Context, scanRoot *scalibrfs.ScanRoot, ...) ([]*detector.Finding, error)
- func (Detector) ScanFS(ctx context.Context, fs fs.FS, ix *inventoryindex.InventoryIndex) ([]*detector.Finding, error)
- func (Detector) Version() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct{}
Detector is a SCALIBR Detector for the CIS check "Ensure permissions on /etc/passwd- are configured" from the CIS Distribution Independent Linux benchmarks.
func (Detector) RequiredExtractors ¶
RequiredExtractors returns an empty list as there are no dependencies.
func (Detector) Requirements ¶ added in v0.1.3
func (Detector) Requirements() *plugin.Capabilities
Requirements of the Detector.
func (Detector) Scan ¶
func (d Detector) Scan(ctx context.Context, scanRoot *scalibrfs.ScanRoot, ix *inventoryindex.InventoryIndex) ([]*detector.Finding, error)
Scan starts the scan.
Click to show internal directories.
Click to hide internal directories.