
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
h1. Ruby sendfile(2) Interface
This module allows Ruby programs to access their OS's native sendfile(2)
system call from any IO object. Your kernel must export a recognized signature for the sendfile(2)
system call to use this module. Currently, that includes Linux, Solaris and FreeBSD.
h2. Installation
Download and install the latest package from the rubyforge.org RubyGems repository.
$ gem install sendfile
If the tests all pass, you're ready to start using sendfile!
h2. Usage
Here's a small example of a use of IO#sendfile
.
bc.. require 'socket' require 'rubygems' require 'sendfile' s = TCPSocket.new 'yourdomain.com', 5000 File.open 'somefile.txt' { |f| s.sendfile f } s.close
p. See the test scripts for more examples on how to use this module.
FAQs
Unknown package
We found that sendfile demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.