...discover TWiki details, and how to start your own site.
Search: 

Navigation

This site is powered by the TWiki collaboration platform

_email0

DakarContrib

Dakar compatibility module for use with plugins that need some of the infrastructure that has been established since TWiki-4.0.0 (dakar). Most notably, this is the security sandbox that eliminates the most common attack vectors to TWiki seen in the past.

Detailed Documentation

To use it in your plugin code proceed as follows.

Allocate a sandbox object

  my $sandbox;

  unless (defined &TWiki::Sandbox::new) {
    eval "use TWiki::Contrib::DakarContrib;";
    $sandbox = new TWiki::Sandbox();
  } else {
    $sandbox = $TWiki::sharedSandbox;
  }

Call an external process

  my ($result, $errorCode) = $sandbox->sysCommand($cmdTemplate>, %params);

Normalize a filename

  $fileName = TWiki::Sandbox::normalizeFilename($fileName);

Installation Instructions

  • Download the ZIP file from the Plugin web (see below)
  • Unzip DakarContrib.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/DakarContrib.txt contrib topic
    lib/TWiki/Contrib/DakarContrib.pm perl module

Contrib Info

Author: TWiki:Main/MichaelDaum
Version: v0.1 (09 Dec 2005)
Dependencies: None
Change History:  
09 Dec 2005 moved in sandbox code from dakar's codebase
Home: TWiki:Plugins/DakarContrib
Feedback: TWiki:Plugins/DakarContribDev

Author: TWiki:Main/MichaelDaum
Copyright ©: 2006, Michael Daum
License: GPL (GNU General Public License)
Dependencies: none
Version: v0.1
Change History:  
26 Jan 2006: Initial version
Home: TWiki:Plugins/DakarContrib
Feedback: TWiki:Plugins/DakarContribDev
Appraisal: TWiki:Plugins/DakarContribAppraisal

-- TWiki:Main/MichaelDaum - 26 Jan 2006

r2 - 26 Jan 2006 - 10:43 - MichaelDaum?
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel®, AVR® and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
All other trademarks are the property of their respective owners.
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.DakarContrib
Powered by TWiki/Dakar Wed, 08 Feb 2006 build 8740
Syndicate this site RSSATOM