🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

github.com/mars9/ramfs

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mars9/ramfs

Source
Go Modules
Version
v0.0.0-20150111165835-e53e16537b55
Version published
Created
Source

RAMFS

Ramfs starts a 9P2000 file server keeping all files in memory. The filesystem is entirely maintained in memory, no external storage is used. File data is allocated in 2 MiB blocks.

The root of the filesystem is owned by the user who invoked ramfs and is created with Read, Write and Execute permissions for the owner and Read and Execute permissions for everyone else (0755). Ramfs create the necessary directories and files in /adm/ctl, /adm/group and /.

9P2000

A 9P2000 server is an agent that provides one or more hierarchical file systems -- file trees -- that may be accessed by processes. A server responds to requests by clients to navigate the hierarchy, and to create, remove, read, and write files.

References

Usage

To add a new user with name and id gnot and create his home directory:

echo uname gnot gnot | racon write /adm/group

To create a new group sys (with no home directory) and add gnot to it:

echo uname sys :sys | racon write /adm/group
echo uname sys +gnot | racon write /adm/group

Listen manages the network addresses at which ramfs is listening.

echo listen tcp localhost:5641 | racon write /adm/ctl

FAQs

Package last updated on 11 Jan 2015

Did you know?

Socket

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.

Install

Related posts