Affected by GO-2024-2653
and 10 other vulnerabilities
GO-2024-2653 : HTTP policy bypass in github.com/cilium/cilium
GO-2024-2656 : Unencrypted traffic between nodes with IPsec in github.com/cilium/cilium
GO-2024-2657 : Unencrypted traffic between nodes with WireGuard in github.com/cilium/cilium
GO-2024-2666 : Insecure IPsec transparent encryption in github.com/cilium/cilium
GO-2024-2922 : Cilium leaks sensitive information in cilium-bugtool in github.com/cilium/cilium
GO-2024-3071 : Gateway API route matching order contradicts specification in github.com/cilium/cilium
GO-2024-3072 : Policy bypass for Host Firewall policy due to race condition in Cilium agent in github.com/cilium/cilium
GO-2024-3074 : Cilium leaks information via incorrect ReferenceGrant update logic in Gateway API in github.com/cilium/cilium
GO-2024-3208 : Cilium's CIDR deny policies may not take effect when a more narrow CIDR allow is present in github.com/cilium/cilium
GO-2025-3415 : DoS in Cilium agent DNS proxy from crafted DNS responses in github.com/cilium/cilium
GO-2025-3416 : Cilium has an information leakage via insecure default Hubble UI CORS header in github.com/cilium/cilium
Discover Packages
github.com/cilium/cilium
pkg
lock
lockfile
package
Version:
v1.15.1
Opens a new window with list of versions in this module.
Published: Feb 14, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
SPDX-License-Identifier: Apache-2.0
Copyright Authors of Cilium
Lockfile is a simple wrapper around POSIX file locking
but it uses Linux's per-fd locks, which makes it safe to
use within the same process
NewLockfile creates and opens a lockfile, but does not acquire
a lock.
Close will close the file, which implicitly removes all locks held.
It is an error to re-use a closed Lockfile.
Lock will attempt to take a lock, blocking until it is able to do so.
If exclusive is true, then it will obtain a write, or exclusive, lock
TryLock will attempt to take a lock, returining error if it is not
possible to acquire the lock.
If exclusive is true, then it will attempt to obtain a write, or exclusive, lock
Unlock removes the lock, but keeps the file open.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.