Allowing read access to the NRP logs under /var/log (#715)
This commit is contained in:
Родитель
a42a795a6e
Коммит
bc9bcc74c5
|
@ -72,6 +72,10 @@ void __attribute__((destructor)) Destroy()
|
|||
OsConfigLogInfo(GetLog(), "[OsConfigResource] SO library unloaded by host process %d", getpid());
|
||||
|
||||
CloseLog(&g_log);
|
||||
|
||||
// When the NRP is done, allow others read-only (no write, search or execute) access to the NRP logs
|
||||
SetFileAccess(LOG_FILE, 0, 0, 6774, NULL);
|
||||
SetFileAccess(ROLLED_LOG_FILE, 0, 0, 6774, NULL);
|
||||
}
|
||||
|
||||
static void LogCurrentDistro(MI_Context* context)
|
||||
|
|
Загрузка…
Ссылка в новой задаче