Eliminate the chance to segfault on older Android versions

This commit is contained in:
topjohnwu
2017-07-13 10:12:54 +08:00
parent 5529dab84e
commit 4c7e081e15
2 changed files with 11 additions and 11 deletions

View File

@ -232,7 +232,7 @@ void sepol_min_rules() {
sepol_allow("system_server", "dex2oat_exec", "file", ALL);
// xperms
if (policydb->policyvers >= 30)
if (policydb->policyvers >= POLICYDB_VERSION_XPERMS_IOCTL)
sepol_allowxperm("domain", "devpts", "chr_file", "0x5400-0x54FF");
}