Attempt to set the proper uid/gid/contexts on new files and dirs
Files and folders that we create during backups, copy log, or MTP operations often do not have the proper uid/gid/contexts assigned. We will attempt to read the proper contexts from the settings storage path and assign those same contexts to any files or dirs that we create. Change-Id: I769f9479854122b49b499de2175e6e2d026f8afd
This commit is contained in:
2
data.cpp
2
data.cpp
@@ -46,6 +46,7 @@
|
||||
#include "gui/blanktimer.hpp"
|
||||
#endif
|
||||
#include "find_file.hpp"
|
||||
#include "set_metadata.h"
|
||||
|
||||
#ifdef TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID
|
||||
#include "cutils/properties.h"
|
||||
@@ -333,6 +334,7 @@ int DataManager::SaveValues()
|
||||
}
|
||||
}
|
||||
fclose(out);
|
||||
tw_set_default_metadata(mBackingFile.c_str());
|
||||
#endif // ifdef TW_OEM_BUILD
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user