X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FLinux%2FSeccomp.pm;h=25a3d471928980b5fd6849377f416c853482f353;hb=03d6d32d66ccf842001dc8d8e0b5757f8055ef11;hp=e4143eee4c33da9974823257562e931aab4a9345;hpb=bcf524c10c0ad85fcef711acffc3251bb8472352;p=linux-seccomp.git diff --git a/lib/Linux/Seccomp.pm b/lib/Linux/Seccomp.pm index e4143ee..25a3d47 100644 --- a/lib/Linux/Seccomp.pm +++ b/lib/Linux/Seccomp.pm @@ -17,7 +17,8 @@ our %EXPORT_TAGS = ( syscall_resolve_name syscall_resolve_name_arch syscall_resolve_name_rewrite - syscall_resolve_num_arch/ ], + syscall_resolve_num_arch + version/ ], macros => [ qw/SCMP_ACT_ALLOW @@ -172,7 +173,7 @@ our %EXPORT_TAGS = ( __NR_query_module __NR_readdir __NR_readlink -s __NR_recv + __NR_recv __NR_recvfrom __NR_recvmmsg __NR_recvmsg @@ -466,7 +467,7 @@ our @EXPORT = @{$EXPORT_TAGS{macros}}; our $VERSION; BEGIN{ - $VERSION = '0.001'; + $VERSION = '0.002'; } sub AUTOLOAD { @@ -587,7 +588,7 @@ Most methods die on error. =over -=item I<$ctx> = Linux::Seccomp->B(I<$def_action>>) +=item I<$ctx> = Linux::Seccomp->B(I<$def_action>) Creates a new C filter, with the default action for unhandled syscalls being I<$def_action>. Possible values for @@ -649,43 +650,57 @@ we are comparing. I<$op> is as follows: =over =item SCMP_CMP_NE + =item '!=' + =item 'ne' Matches when the argument value is not equal to I<$datum_a>. =item SCMP_CMP_LT + =item '<' + =item 'lt' Matches when the argument value is less than I<$datum_a>. =item SCMP_CMP_LE + =item '<=' + =item 'le' Matches when the argument value is less than or equal to I<$datum_a>. =item SCMP_CMP_EQ + =item '==' + =item 'eq' Matches when the argument value is equal to I<$datum_a>. =item SCMP_CMP_GE + =item '>=' + =item 'ge' Matches when the argument value is greater than or equal to I<$datum_a>. =item SCMP_CMP_GT + =item '>' + =item 'gt' Matches when the argument value is greater than I<$datum_a>. =item SCMP_CMP_MASKED_EQ + =item '=~' + =item 'me' Matches when the argument value masked with I<$datum_a> is equal to I<$datum_b> masked with I<$datum_a>. @@ -704,12 +719,12 @@ See L. Returns true if the given architecture is in the filter, false otherwise. -See L. =item I<$ctx>->B(I<$arch_token>) Removes an architecture from the filter. -See L. =item I<$ctx>->B(I<$attr>)