Paranoid(3pm)


NAME

   Paranoid - Paranoia support for safer programs

VERSION

   $Id: lib/Paranoid.pm, 2.04 2016/09/19 15:00:25 acorliss Exp $

SYNOPSIS

     use Paranoid;

     $errMsg = Paranoid::ERROR;

     psecureEnv("/bin:/usr/bin");

DESCRIPTION

   This collection of modules started out as modules which perform things
   (debatably) in a safer and taint-safe manner.  Since then it's also
   grown to include functionality that fit into the same framework and
   conventions of the original modules, including keeping the debug hooks
   for command-line debugging.

   All the modules below are intended to be used directly in your programs
   if you need the functionality they provide.

   This module does provide one function meant to secure your environment
   enough to satisfy taint-enabled programs, and as a container which
   holds the last reported error from any code in the Paranoid framework.

SUBROUTINES/METHODS

   psecureEnv
     psecureEnv("/bin:/usr/bin");

   This function deletes some of the dangerous environment variables that
   can be used to subvert perl when being run in setuid applications.  It
   also sets the path, either to the passed argument (if passed) or a
   default of "/bin:/usr/bin".

   Paranoid::ERROR
     $errMsg = Paranoid::ERROR;
     Paranoid::ERROR = $errMsg;

   This lvalue function is not exported and must be referenced via the
   Paranoid namespace.

TAINT NOTES

   Taint-mode programming can be somewhat of an adventure until you know
   all the places considered dangerous under perl's taint mode.  The
   following functions should generally have their arguments detainted
   before using:

     exec        system      open        glob
     unlink      mkdir       chdir       rmdir
     chown       chmod       umask       utime
     link        symlink     kill        eval
     truncate    ioctl       fcntl       chroot
     setpgrp     setpriority syscall     socket
     socketpair  bind        connect

DEPENDENCIES

   While this module itself doesn't have any external dependencies various
   child modules do.  Please check their documentation for any particulars
   should you use them.

SEE ALSO

   The following modules are available for use.  You should check their
   POD for specifics on use:

   o   Paranoid::Args: Command-line argument parsing functions

   o   Paranoid::Data: Misc. data manipulation functions

   o   Paranoid::Debug: Command-line debugging framework and functions

   o   Paranoid::Filesystem: Filesystem operation functions

   o   Paranoid::Glob: Paranoid Glob objects

   o   Paranoid::IO: File I/O wrappers for sysopen, etc.

   o   Paranoid::IO::Line: I/O functions for working with line-based files

   o   Paranoid::IO::Lockfile: I/O functions for working with lock files

   o   Paranoid::Input: Input-related functions (file reading, detainting)

   o   Paranoid::Log: Unified logging framework and functions

   o   Paranoid::Log::Buffer: Buffered-based logging mechanism

   o   Paranoid::Log::File: File-based logging mechanism

   o   Paranoid::Module: Run-time module loading functions

   o   Paranoid::Network: Network-related functions

   o   Paranoid::Network::IPv4: General IPv4-related functions

   o   Paranoid::Network::IPv6: General IPv6-related functions

   o   Paranoid::Network::Socket: Wrapper module for Socket & Socket6

   o   Paranoid::Process: Process management functions

BUGS AND LIMITATIONS

AUTHOR

   Arthur Corliss (corliss@digitalmages.com)

LICENSE AND COPYRIGHT

   This software is licensed under the same terms as Perl, itself.  Please
   see http://dev.perl.org/licenses/ for more information.

   (c) 2005 - 2015, Arthur Corliss (corliss@digitalmages.com)





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.