Documentation
¶
Overview ¶
Package etcpasswdpermissions implements a detector for the "Ensure permissions on /etc/passwd- are configured" CIS check.
Index ¶
- Constants
- func New() detector.Detector
- type Detector
- func (d Detector) DetectedFinding() inventory.Finding
- func (Detector) Name() string
- func (Detector) RequiredExtractors() []string
- func (Detector) Requirements() *plugin.Capabilities
- func (d Detector) Scan(ctx context.Context, scanRoot *scalibrfs.ScanRoot, ...) (inventory.Finding, error)
- func (d Detector) ScanFS(ctx context.Context, fs fs.FS, px *packageindex.PackageIndex) (inventory.Finding, error)
- func (Detector) Version() int
Constants ¶
View Source
const (
// Name of the detector.
Name = "cis/generic-linux/etcpasswdpermissions"
)
Variables ¶
This section is empty.
Functions ¶
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) DetectedFinding ¶ added in v0.3.1
DetectedFinding returns generic vulnerability information about what is detected.
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, px *packageindex.PackageIndex) (inventory.Finding, error)
Scan starts the scan.
Click to show internal directories.
Click to hide internal directories.