ceph-csi/internal
Niels de Vos 1b89f86d51 util: handle Close() errors in pidlimit
A new version of gosec insists on handling errors returned by Close():

    [/go/src/github.com/ceph/ceph-csi/internal/util/pidlimit.go:44] - G307 (CWE-): Deferring unsafe method "*os.File" on type "Close" (Confidence: HIGH, Severity: MEDIUM)
      > defer cgroup.Close()

    [/go/src/github.com/ceph/ceph-csi/internal/util/pidlimit.go:78] - G307 (CWE-): Deferring unsafe method "*os.File" on type "Close" (Confidence: HIGH, Severity: MEDIUM)
      > defer f.Close()

    [/go/src/github.com/ceph/ceph-csi/internal/util/pidlimit.go:113] - G307 (CWE-): Deferring unsafe method "*os.File" on type "Close" (Confidence: HIGH, Severity: MEDIUM)
      > defer f.Close()

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-07-01 05:56:32 +00:00
..
cephfs cephfs: do chmod on stagingpath 2020-06-30 17:43:41 +00:00
csi-common rbd: Add support for rbd ROX PVC mounting 2020-06-22 06:15:40 +00:00
journal journal: do not return errors from remove omap func if omap missing 2020-06-22 15:41:00 +00:00
liveness cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
rbd rbd: Add support for rbd ROX PVC mounting 2020-06-22 06:15:40 +00:00
util util: handle Close() errors in pidlimit 2020-07-01 05:56:32 +00:00