forked from EdwinMoq/android_kernel_xiaomi_whyred
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
selinux: always return a secid from the network caches if we find one
Previously if we couldn't find an entry in the cache and we failed to allocate memory for a new cache entry we would fail the network object label lookup; this is obviously not ideal. This patch fixes this so that we return the object label even if we can't cache the object at this point in time due to memory pressure. The GitHub issue tracker is below: * SELinuxProject/selinux-kernel#3 Signed-off-by: Paul Moore <paul@paul-moore.com> Signed-off-by: Reinazhard <reinazhard@gmail.com>
- Loading branch information
1 parent
90fab66
commit 0756406
Showing
3 changed files
with
38 additions
and
47 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