
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Flock object uses fcntl.flock to lock (resp. unlock) file descriptor (fd) with operation (op) when entering (resp. leaving) runtime context related to it.
Flock object uses fcntl.flock
to lock (resp. unlock)
file descriptor (fd
) with operation (op
)
when entering (resp. leaving) runtime context related to it.
File objects providing a fileno()
method are accepted as well.
Operation is one of the following values:
LOCK_SH
- acquire a shared lockLOCK_EX
- acquire an exclusive lockOperation can also be bitwise ORed with LOCK_NB
to avoid blocking on lock acquisition.
with open('/tmp/file.lock', 'w') as f:
blocking_lock = flock.Flock(f, flock.LOCK_EX)
noblocking_lock = flock.Flock(f, flock.LOCK_EX|flock.LOCK_NB)
with blocking_lock:
pass # do something here
try:
with noblocking_lock:
pass # do something else here
except BlockingIOError:
pass
FAQs
Flock object uses fcntl.flock to lock (resp. unlock) file descriptor (fd) with operation (op) when entering (resp. leaving) runtime context related to it.
We found that flock demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.