cleanup: address golangci 'gosec' issues

The golangci 'gosec' linter complains about permissions that could be
more secure. These have been modified or annotated on.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos
2025-04-29 12:37:33 +02:00
committed by mergify[bot]
parent 5941371c4b
commit 4ffa1d6c89
4 changed files with 4 additions and 1 deletions

View File

@ -120,6 +120,7 @@ func SetPIDLimit(limit int) error {
return err
}
//nolint:gosec // pidsMax is the intended file to use
f, err := os.Create(pidsMax)
if err != nil {
return err