-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add storage to the example ACL implementation (#14253)
* Add a simple implementation of storage for ACLs. It uses a persistent storage delegate to store the data as a TLV-formatted blob. Platforms or applications that want content-aware storage can either implement a persistent storage delegate that reads the TLV-formatted blob or implement the AccessControl::Delegate interface. * Use tags correctly and fix a format string. * Applied improvements suggested by bzbarsky. * Don't specify buffer sizes for writers. * Use form of Next that includes both tag and type. * Don't wrap subjects and targets in an unnecessary structure layer. * Save the ACL entries to flash whenever an entry is created, updated, or deleted. * Add simple storage for ACL. * Style fixes. * Remove unneeded and potentially misleading comments. * Missed one of the comments. * Explain choice of buffer sizes. * Style fixes.
- Loading branch information
1 parent
d5c43de
commit 2700521
Showing
4 changed files
with
238 additions
and
3 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
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