-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compat: Switch from set_best_effort() to set_compatibility()
The set_compatibility() build method enables to set the compatibility level of an object builder (e.g. Ruleset). - set_compatibility(CompatLevel::BestEffort) is like set_best_effort(true). - set_compatibility(CompatLevel::HardRequirement) is like set_best_effort(false). - set_compatibility(CompatLevel::SoftRequirement) makes the ruleset moot if one of the following build requests (part of a build method) are not supported, but don't return a compatibility error. CompatLevel::SoftRequirement is particularly useful for access rights such as AccessFs::Refer. Indeed, it can be used to ignore the whole sandboxing if this could break the normal workflow of an application (which legitimately requires to move files to arbitrary directories). Signed-off-by: Mickaël Salaün <mic@digikod.net>
- Loading branch information
Showing
5 changed files
with
262 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.