BSD Ports

databases/p5-DBIx-Safe 1.2.5_3 FreeBSD

Safer access to your database through a DBI database handle

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
databases, perl5
Package size
11.1 KiB, 23.8 KiB installed

Description

The purpose of DBIx::Safe is to give controlled, limited access to an application, rather than simply passing it a raw database handle through DBI. DBIx::Safe acts as a wrapper to the database, by only allowing through the commands you tell it to. It filters all things related to the database handle - methods and attributes.

The typical usage is for your application to create a database handle via a normal DBI call to new(), then pass that to DBIx::Safe->new(), which will return you a DBIx::Safe object. After specifying exactly what is and what is not allowed, you can pass the object to the untrusted application. The object will act very similar to a DBI database handle, and in most cases can be used interchangeably.

By default, nothing is allowed to run at all. There are many things you can control. You can specify which SQL commands are allowed, by indicating the first word in the SQL statement (e.g. 'SELECT'). You can specify which database methods are allowed to run (e.g. 'ping'). You can specify a regular expression that allows matching SQL statements to run (e.g. 'qr{SET TIMEZONE}'). You can specify a regular expression that is NOT allowed to run (e.g. qr(UPDATE xxx}). Finally, you can indicate which database attributes are allowed to be read and changed (e.g. 'PrintError'). For all of the above, there are matching methods to remove them as well.

In the other systems

SystemPortVersion
FreeBSDdatabases/p5-DBIx-Safe1.2.5_3
DragonFlydatabases/p5-DBIx-Safe1.2.5_3
HardenedBSDdatabases/p5-DBIx-Safe1.2.5_3
GhostBSDdatabases/p5-DBIx-Safe1.2.5_3

Install

Binary package:

pkg install p5-DBIx-Safe

From the ports tree:

cd /usr/ports/databases/p5-DBIx-Safe/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-DBIx-Safe>0:databases/p5-DBIx-Safe

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.2.5_31.2.5_31.2.5_31.2.5_31.2.5_3
FreeBSD:14:quarterly1.2.5_31.2.5_3n/a1.2.5_31.2.5_3
FreeBSD:15:latest1.2.5_31.2.5_3n/a1.2.5_31.2.5_3
FreeBSD:15:quarterly1.2.5_31.2.5_3n/an/an/a
FreeBSD:16:latest1.2.5_31.2.5_3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Runtime 2

The full lists below include those, and their dependencies in turn.

Build dependencies 9
Run dependencies 9
Required by 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/DBIx/Safe.pm
  • %%PERL5_MAN3%%/DBIx::Safe.3.gz
distinfo 1
FileSizeSHA256
DBIx-Safe-1.2.5.tar.gz1695873279fd98b20034d3735dee67e2b89ac63d55449c3c64dd1a7ba0df10fbe0acf
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.