disable bpfloader selinux_context support am: a7a11bda00

Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2132533

Change-Id: I757e645cb774520d3279fbfd3044e67d7bec3db8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Maciej Żenczykowski 2022-06-21 18:07:07 +00:00 committed by Automerger Merge Worker
commit e4fae2c26e

View file

@ -792,6 +792,8 @@ static int createMaps(const char* elfPath, ifstream& elfFile, vector<unique_fd>&
ALOGI("map %s selinux_context [%32s] -> %d -> '%s' (%s)", mapNames[i].c_str(),
md[i].selinux_context, selinux_context, lookupSelinuxContext(selinux_context),
lookupPinSubdir(selinux_context));
// temp disable until selinux grants bpfloader 'rename' priv
selinux_context = domain::unspecified;
}
domain pin_subdir = getDomainFromPinSubdir(md[i].pin_subdir);
@ -1018,6 +1020,8 @@ static int loadCodeSections(const char* elfPath, vector<codeSection>& cs, const
ALOGI("prog %s selinux_context [%32s] -> %d -> '%s' (%s)", name.c_str(),
cs[i].prog_def->selinux_context, selinux_context,
lookupSelinuxContext(selinux_context), lookupPinSubdir(selinux_context));
// temp disable until selinux grants bpfloader 'rename' priv
selinux_context = domain::unspecified;
}
if (specified(pin_subdir)) {