• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux File::Policy Download

File::Policy

October 28, 2009
This software implements site policies for file input/output functions. It defines rules and guidelines around file handling on a given platform or application, ensuring appropriate data management and security measures.
Version 1.005
License GPL
Platform Linux
Supported Languages English
Homepage www.bbc.co.uk
Developed by BBC
File::Policy is a Perl module that is designed to define the policy for file I/O with modules such as File::Slurp::WithinPolicy. Its primary objective is to allow system administrators to define the locations and restrictions for the file I/O of applications, while offering developers a policy to follow. It is important to note that while the module does define the policy, it does not enforce it. Developers have the option of ignoring it, and administrators have the option of not installing the applications that do not follow it.

You have the ability to control which policy is applied by creating a File::Policy::Config module with an IMPLEMENTATION constant. You can even write your own policy as a module within the File::Policy:: namespace. If no File::Policy::Config module is present, the default policy of File::Policy::Default is implemented, which offers reasonable default locations for both temporary and log files and does not impose any restrictions.

This module was created to provide a standard and flexible approach to allow a site-wide file policy to be established. It is most useful in larger environments where a few system administrators are responsible for different codes written by many developers. By ensuring submitted code calls check_safe(), file access is made much more straightforward, reducing the amount of effort required for a security audit. While it may be overkill if your code is not security audit'd, or if you are the only developer at your site, it is still considered good practice and provides protection against paths in your code that may become corrupted accidentally or maliciously in the future.

Using this module offers two major benefits. Firstly, it enables sites that implement a policy to easily integrate your code in a standard way. If you have a file policy at your site, you can apply different policies (via File::Policy::Config) in different environments (production, integration test, development), and the appropriate policy is automatically applied without having to change your code or configs.

The SYNOPSIS for this module is as follows:

To check I/O policy:
use File::Policy;
use File::Policy qw/check_safe/; # to import a specific subroutine
use File::Policy qw/:all/; # to import all subroutines

Checking I/O policy:
check_safe($filename, 'r');
check_safe($filename, 'w');

Preferred directory locations:
$logdir = get_log_dir();
$tmpdir = get_temp_dir();
What's New

Version 1.005: N/A

Free Download 13.9K
345
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    157
  2. Dvgrab 3.4
    94
  3. DynVPN 1.0
    83
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    76
  6. porm r2
    72
  7. Clewarecontrol 0.8
    71
  8. Hills 2.0
    71
  9. fuseftp 0.8
    70
  10. Java Games 1.0
    70

Related Downloads

PyGCS
Memory-efficient software designed to operate with minimal memory usage.
OpenProtect
OpenProtect is an email protection software that defends against spam and viruses ...
Crossfire TRT
Crossfire TRT is an upgraded version of the crossfire multiplayer role-playing game.
LinkExchange
A software client library that provides a universal link exchange service which ...
UMLGraph
UMLGraph is a software that enables easy declaration and visualization of UML ...
Pydvdauthor
Pydvdauthor is a user-friendly software that facilitates the creation of video DVDs. ...
jCIFS
jCIFS is a Java-based library used for Client Server Message Block (CIFS) ...
Kate LaTeX typesetting plugin
Kate LaTeX plugin adds 'Run LaTeX' and 'View Output' buttons on the ...
jakarta-tomcat
Jakarta Project provides a broad range of Java solutions that are open ...
iproute2
iproute2 software provides advanced network control tools for Linux kernels, designed for ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.