SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Safe rpm build for : openSUSE Leap 42. For other distributions click perl-Safe.

Name : perl-Safe
Version : 2.35 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 1.1 Date : 2017-06-19 21:36:28
Group : Development/Libraries/Perl Source RPM : perl-Safe-2.35-1.1.src.rpm
Size : 0.04 MB
Packager : (none)
Summary : Compile and execute code in restricted compartments
Description :
The Safe extension module allows the creation of compartments in which perl
code can be evaluated. Each compartment has

* a new namespace

The \"root\" of the namespace (i.e. \"main::\") is changed to a different
package and code evaluated in the compartment cannot refer to variables
outside this namespace, even with run-time glob lookups and other tricks.

Code which is compiled outside the compartment can choose to place
variables into (or _share_ variables with) the compartment\'s namespace
and only that data will be visible to code evaluated in the compartment.

By default, the only variables shared with compartments are the
\"underscore\" variables $_ and AATT_ (and, technically, the less frequently
used %_, the _ filehandle and so on). This is because otherwise perl
operators which default to $_ will not work and neither will the
assignment of arguments to AATT_ on subroutine entry.

* an operator mask

Each compartment has an associated \"operator mask\". Recall that perl code
is compiled into an internal format before execution. Evaluating perl
code (e.g. via \"eval\" or \"do \'file\'\") causes the code to be compiled into
an internal format and then, provided there was no error in the
compilation, executed. Code evaluated in a compartment compiles subject
to the compartment\'s operator mask. Attempting to evaluate code in a
compartment which contains a masked operator will cause the compilation
to fail with an error. The code will not be executed.

The default operator mask for a newly created compartment is the
\':default\' optag.

It is important that you read the the Opcode manpage module documentation
for more information, especially for detailed definitions of opnames,
optags and opsets.

Since it is only at the compilation stage that the operator mask applies,
controlled access to potentially unsafe operations can be achieved by
having a handle to a wrapper subroutine (written outside the compartment)
placed into the compartment. For example,

$cpt = new Safe;
sub wrapper {

}
$cpt->share(\'&wrapper\');

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/openSUSE_Leap_42.3/noarch

Content of RPM  Changelog  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
perl(Safe)
perl-Safe

Requires :
perl(:MODULE_COMPAT_5.18.2)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.18.2/Safe.pm
/usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Safe
/usr/share/doc/packages/perl-Safe/Changes
/usr/share/doc/packages/perl-Safe/README
/usr/share/man/man3/Safe.3pmc.gz

 
ICM