Merge "Avoid leaking property values into logs on error"
am: 21aa749ec7
Change-Id: Icded1f49f819b4df4c47e088ed6f40f43e79e02d
This commit is contained in:
commit
8b1ddf4144
1 changed files with 4 additions and 6 deletions
|
|
@ -557,9 +557,8 @@ static void handle_property_set_fd() {
|
|||
uint32_t result =
|
||||
HandlePropertySet(prop_name, prop_value, socket.source_context(), cr, &error);
|
||||
if (result != PROP_SUCCESS) {
|
||||
LOG(ERROR) << "Unable to set property '" << prop_name << "' to '" << prop_value
|
||||
<< "' from uid:" << cr.uid << " gid:" << cr.gid << " pid:" << cr.pid << ": "
|
||||
<< error;
|
||||
LOG(ERROR) << "Unable to set property '" << prop_name << "' from uid:" << cr.uid
|
||||
<< " gid:" << cr.gid << " pid:" << cr.pid << ": " << error;
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
@ -579,9 +578,8 @@ static void handle_property_set_fd() {
|
|||
std::string error;
|
||||
uint32_t result = HandlePropertySet(name, value, socket.source_context(), cr, &error);
|
||||
if (result != PROP_SUCCESS) {
|
||||
LOG(ERROR) << "Unable to set property '" << name << "' to '" << value
|
||||
<< "' from uid:" << cr.uid << " gid:" << cr.gid << " pid:" << cr.pid << ": "
|
||||
<< error;
|
||||
LOG(ERROR) << "Unable to set property '" << name << "' from uid:" << cr.uid
|
||||
<< " gid:" << cr.gid << " pid:" << cr.pid << ": " << error;
|
||||
}
|
||||
socket.SendUint32(result);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue