X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FLinux%2FSeccomp.pm;h=d1c2034e8be420116cf8bb175e17dfd884c49b0c;hb=53e03791d1665cb0f2bf4743c0b4276821113340;hp=d081885c445ef97c8450317012d4f950e233c098;hpb=ccd15039babaf807f884538ef8e0716510d4a307;p=linux-seccomp.git diff --git a/lib/Linux/Seccomp.pm b/lib/Linux/Seccomp.pm index d081885..d1c2034 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 @@ -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>)