Merge "Remove reference to nonplat sepolicy" am: d62f9054e8 am: b49a354cfd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1930822 Change-Id: Iafd4a16dc18fae46f900b57a0d8d277d830c30ec
This commit is contained in:
@@ -124,16 +124,10 @@ public final class SELinuxMMAC {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Vendor mac permissions.
|
// Vendor mac permissions.
|
||||||
// The filename has been renamed from nonplat_mac_permissions to
|
|
||||||
// vendor_mac_permissions. Either of them should exist.
|
|
||||||
final File vendorMacPermission = new File(
|
final File vendorMacPermission = new File(
|
||||||
Environment.getVendorDirectory(), "/etc/selinux/vendor_mac_permissions.xml");
|
Environment.getVendorDirectory(), "/etc/selinux/vendor_mac_permissions.xml");
|
||||||
if (vendorMacPermission.exists()) {
|
if (vendorMacPermission.exists()) {
|
||||||
sMacPermissions.add(vendorMacPermission);
|
sMacPermissions.add(vendorMacPermission);
|
||||||
} else {
|
|
||||||
// For backward compatibility.
|
|
||||||
sMacPermissions.add(new File(Environment.getVendorDirectory(),
|
|
||||||
"/etc/selinux/nonplat_mac_permissions.xml"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ODM mac permissions (optional).
|
// ODM mac permissions (optional).
|
||||||
|
|||||||
Reference in New Issue
Block a user