Merge "Remove reference to nonplat sepolicy" am: d62f9054e8 am: b49a354cfd am: a76638e402
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1930822 Change-Id: Ibf60a0dd408a2b285e4643e7f7fe173fe7db34e9
This commit is contained in:
@@ -124,16 +124,10 @@ public final class SELinuxMMAC {
|
||||
}
|
||||
|
||||
// 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(
|
||||
Environment.getVendorDirectory(), "/etc/selinux/vendor_mac_permissions.xml");
|
||||
if (vendorMacPermission.exists()) {
|
||||
sMacPermissions.add(vendorMacPermission);
|
||||
} else {
|
||||
// For backward compatibility.
|
||||
sMacPermissions.add(new File(Environment.getVendorDirectory(),
|
||||
"/etc/selinux/nonplat_mac_permissions.xml"));
|
||||
}
|
||||
|
||||
// ODM mac permissions (optional).
|
||||
|
||||
Reference in New Issue
Block a user