Apache2::SiteControl::GrantAllRule(3pm)

Apache2::SiteControl::GrantAllRule3pm

A rule that grants permission to do everything.

Usage

In your instance of a ManagerFactory:

   use Apache2::SiteControl::GrantAllRule;
   ...
   sub getPermissionManager
   {
      ...
      $manager->addRule(new Apache2::SiteControl::GrantAllRule);
      ...
      return $manager;
   }

Overview

Apache2::SiteControl::GrantAllRule is a pre-built rule that grants access for all permission requests. This rule can be used to help implement a system that has a default policy of allowing access, and to which you add rules that deny access for specific cases.

Note that the loose type checking of Perl makes this inherently dangerous, since a typo is likely to fail to deny access. It is recommended that you take the opposite approach with your rules, since a typo will err on the side of denying access. The former is a security hole, the latter is a bug that people will complain about (so you can fix it).

Releases

6 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–9
  2. 10–13

Author

This module was written by Tony Kay, <[email protected]>.

From libapache2-sitecontrol-perl 1.05-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.