Tags:
cairo1Add my vote for this tag compatibility1Add my vote for this tag create new tag
, view all tags
Note: This package is no longer needed for TWiki-4.0 and later.

DakarContrib

Dakar compatibility module for use with plugins that need some of the infrastructure that has been established since TWiki-4.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);

Settings

  • One line description:
    • Set SHORTDESCRIPTION = Dakar compatibility module for Plugins that need some of the TWiki-4.0 infrastructure on Cairo codebase
  • Name of the perl package
    • Set STUB = TWiki::Contrib::DakarContrib

Installation Instructions

  • Download the ZIP file
  • Unzip it 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
Copyright ©: 2006, Michael Daum
License: GPL (GNU General Public License)
Version: v0.1 (26 Jan 2006)
Dependencies: None
Change History:  
26 Jan 2006: Initial version
09 Dec 2005: moved in sandbox code from dakar's codebase
Home: TWiki:Plugins/DakarContrib
Feedback: TWiki:Plugins/DakarContribDev
Appraisal: TWiki:Plugins/DakarContribAppraisal

-- TWiki:Main/MichaelDaum - 26 Jan 2006

Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatmd5 DakarContrib.md5 manage 0.2 K 2008-12-12 - 11:11 SopanShewale checksum file , Uploaded as a part of Release Process
Compressed Zip archivetgz DakarContrib.tgz manage 7.0 K 2008-12-12 - 11:11 SopanShewale See DakarContrib for details. Untar and run the installer script, Uploaded as a part of Release Process
Compressed Zip archivezip DakarContrib.zip manage 8.5 K 2008-12-12 - 11:11 SopanShewale See DakarContrib for details. Unzip and run the installer script , Uploaded as a part of Release Process
Unknown file formatEXT DakarContrib_installer manage 3.4 K 2008-12-12 - 11:11 SopanShewale Installer Script, Uploaded as a part of Release Process
Topic revision: r8 - 2011-05-11 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.