NetBpfLoad: remove isGSI() check
it doesn't work due to sepolicy anyway: I auditd : type=1400 audit(0.0:6): avc: denied { search } for comm="netbpfload" name="gsi" dev="sda8" ino=23 scontext=u:r:bpfloader:s0 tcontext=u:object_r:gsi_metadata_file:s0 tclass=dir permissive=0 Bug: 347309609 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ic8c56a096a89a89950585b939379634accb78e56
This commit is contained in:
parent
f8b1d2a1ed
commit
4a0838c2ce
1 changed files with 1 additions and 6 deletions
|
@ -224,11 +224,6 @@ static int logTetheringApexVersion(void) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
static bool isGSI() {
|
||||
// From //system/gsid/libgsi.cpp IsGsiRunning()
|
||||
return !access("/metadata/gsi/dsu/booted", F_OK);
|
||||
}
|
||||
|
||||
static bool hasGSM() {
|
||||
static string ph = base::GetProperty("gsm.current.phone-type", "");
|
||||
static bool gsm = (ph != "");
|
||||
|
@ -351,7 +346,7 @@ static int doLoad(char** argv, char * const envp[]) {
|
|||
|
||||
#undef REQUIRE
|
||||
|
||||
if (bad && !isGSI()) {
|
||||
if (bad) {
|
||||
ALOGE("Unsupported kernel version (%07x).", kernelVersion());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue