-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enforcement: fix use case when the same target has different hashes (#…
…1469) Fix an issue when the same mount target could have different hashes during device mount policy enforcement. Although it's possible to mount different devices at the same mount location, this doesn't make sense for read-only container layers. The device mount enforcement logic has been updated to cover this case. This was discovered by randomized security policy unit tests. The tests have been updated, to minimize the chance of it happening by adding a minimal length for a random string and appropriate unit test has been added to cover the change. Signed-off-by: Maksim An <maksiman@microsoft.com>
- Loading branch information
Showing
2 changed files
with
86 additions
and
5 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