Skip to content
 
 

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seccomp module for perl

overview

This module allows you easily whitelist systemcalls in your perl programs. An example program is provided in examples/

The module only exports one function, scmp_bpf_install_filter, which takes a list as an argument..

Example:

use strict;
use Linux::Seccomp_bpf;

my @whitelist = (#"write",
                 "exit_group",
                 "rt_sigaction",
                 "read",);
print "foo\n";
&scmp_bpf_install_filter(@whitelist);
#program dies now, there is no write syscall anymore.
print "bar\n";

limitations

Module currently only allows for restriction of syscalls, not arguments.

credits

special thanks to mue for hacking on this.

About

filter syscalls in perl programs

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages