universal7885: Address various selinux denials

Also fix some mistakes
This commit is contained in:
roynatech2544 2022-04-30 13:13:05 +09:00
commit 1a96e0b036
No known key found for this signature in database
GPG key ID: 50ABF73F0D19445D
10 changed files with 24 additions and 10 deletions

View file

@ -65,13 +65,12 @@ class HealthImpl : public Health {
file.open(sysfs);
Result result = Result::SUCCESS;
if (file.is_open()){
std::string value;
getline(file, value);
getline(file, ret);
file.close();
} else {
result = Result::NOT_FOUND;
}
ALOGI ("%s: sysfs : %s, returns : %s", __func__, sysfs, ret.c_str());
ALOGI ("%s: sysfs : %s, returns : %s", __func__, sysfs.c_str(), ret.c_str());
struct callBack cb = { result, ret };
return cb;
}