Skip to content

Library for Lua providing access to some Linux syscalls

Notifications You must be signed in to change notification settings

jthiltges/lua-linuxsys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lua-linuxsys

Lua bindings for selected Linux syscalls

Functions

  • chroot(path)
  • mount(source, target, [type, flags, data])
  • umount(target, [flags])
  • unshare(flags)

Examples

s = require 'linuxsys'
s.unshare(s.CLONE_NEWNS)
s.mount("/dev/sda1", "/test", "ext4")
s.mount("/tmp/a", "/tmp/b", nil, s.MS_BIND)

About

Library for Lua providing access to some Linux syscalls

Resources

Stars

Watchers

Forks

Packages

No packages published