NAME

Secure::File -- A module to open or create files within suid/sgid files

SYNOPSIS

use Secure::File;
my $SF = new Secure::File;
$SF->open();

my $NF = new Secure::File, 'myfile';

DESCRIPTION

open This checks that both the effective and real user / group ids have sufficient permissions to use the specified file. (Standard open calls only check the effective ids). Secure::File also checks that the file we open, really is the same file we checked ids on.

If the file already exists, open will fail.

WARNING <==============================================================>

DO NOT TRUST THIS MODULE. Every effort has been made to make this module useful, but it can not make a secure system out of an insecure one. It can not read the programers mind.

Author

Randall Maas (mailto:randym@acm.org, http://www.hamline.edu/~rcmaas/)