Apache...llRule(3pm)
π NAME π
Apache2::SiteControl::GrantAllRule β bestie, it's a rule that grants permission to do everything. Like, literally everything. No cap. π
β¨ SYNOPSIS β¨
okay so you drop it into your instance of a ManagerFactory, like this:
use Apache2::SiteControl::GrantAllRule;
...
sub getPermissionManager
{
...
$manager->addRule(new Apache2::SiteControl::GrantAllRule);
...
return $manager;
}
π¦ DESCRIPTION π¦
Apache2::SiteControl::GrantAllRule is a pre-built rule that grants access for all permission requests. It's the "yes bestie, go off" of rules. π
The way you'd use it: it helps you implement a system that has a default policy of allowing access, and then you add rules that deny access for specific cases. So it's an allow-everything baseline and you carve out the no-no zones on top. π
β οΈ okay but real talk β note that the loose type checking of Perl makes this inherently dangerous, because a typo is likely to <em>fail to deny access</em>. π So you think you blocked someone and instead youβ¦ didn't. It is giving security hole.
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). fr fr β a loud bug you can fix beats a silent hole nobody notices. π
π SEE ALSO π
Apache2::SiteControl::ManagerFactoryApache::SiteControl::PermissionManagerApache2::SiteControl::Rule
π AUTHOR π
This module was written by Tony Kay, <tkay@uoregon.edu>. iconic of him honestly π«Ά
π COPYRIGHT AND LICENSE π
(β¦that's it. that's the whole section. the original page leaves it blank, no notes, nothing, we move. π)
perl v5.26.2 Β· 2018-08-31 β and that's the whole vibe check bestie, mwah πβ¨ππ¦πΈπ
π¦ where this page comes from
- debian trixie: libapache2-sitecontrol-perl 1.05-2 Β· GPL-1.0-or-later
- ubuntu jammy: libapache2-sitecontrol-perl 1.05-2 Β· GPL-1.0-or-later
- ubuntu noble: libapache2-sitecontrol-perl 1.05-2 Β· GPL-1.0-or-later
- ubuntu resolute: libapache2-sitecontrol-perl 1.05-2 Β· GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms