Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
85d86bd3
S
Startup Init Lite
项目概览
OpenHarmony
/
Startup Init Lite
大约 1 年 前同步成功
通知
3
Star
37
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Startup Init Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
85d86bd3
编写于
9月 29, 2022
作者:
O
openharmony_ci
提交者:
Gitee
9月 29, 2022
浏览文件
操作
浏览文件
下载
差异文件
!1335 iccarm工具链支持同步至OpenHarmony-3.2-Beta3分支
Merge pull request !1335 from wish/cherry-pick-1664436235
上级
e66cc719
77a9fe46
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
15 addition
and
13 deletion
+15
-13
services/log/BUILD.gn
services/log/BUILD.gn
+0
-1
services/log/init_log.c
services/log/init_log.c
+1
-1
services/param/base/param_base.c
services/param/base/param_base.c
+2
-2
services/param/include/param_security.h
services/param/include/param_security.h
+2
-0
services/param/liteos/BUILD.gn
services/param/liteos/BUILD.gn
+0
-1
services/param/liteos/param_client.c
services/param/liteos/param_client.c
+1
-1
services/param/liteos/param_hal.c
services/param/liteos/param_hal.c
+1
-1
services/param/liteos/param_litedac.c
services/param/liteos/param_litedac.c
+2
-1
services/param/liteos/param_osadp.c
services/param/liteos/param_osadp.c
+2
-1
services/param/manager/param_persist.c
services/param/manager/param_persist.c
+2
-2
services/utils/init_utils.c
services/utils/init_utils.c
+2
-2
未找到文件。
services/log/BUILD.gn
浏览文件 @
85d86bd3
...
...
@@ -27,7 +27,6 @@ if (defined(ohos_lite)) {
"_GNU_SOURCE",
"OHOS_LITE",
]
cflags = [ "-fPIC" ]
public_configs = [ ":exported_header_files" ]
if (ohos_kernel_type == "linux") {
...
...
services/log/init_log.c
浏览文件 @
85d86bd3
...
...
@@ -128,7 +128,7 @@ INIT_LOCAL_API void InitLog(int logLevel, unsigned int domain, const char *tag,
tmpFmt
[
sizeof
(
tmpFmt
)
-
2
]
=
'\n'
;
// 2 add \n to tail
tmpFmt
[
sizeof
(
tmpFmt
)
-
1
]
=
'\0'
;
}
PrintLog
(
logLevel
,
domain
,
tag
,
tmpFmt
);
PrintLog
(
(
InitLogLevel
)
logLevel
,
domain
,
tag
,
tmpFmt
);
}
INIT_PUBLIC_API
void
EnableInitLog
(
InitLogLevel
level
)
...
...
services/param/base/param_base.c
浏览文件 @
85d86bd3
...
...
@@ -20,7 +20,7 @@
#include "param_manager.h"
#include "param_trie.h"
static
ParamWorkSpace
g_paramWorkSpace
=
{};
static
ParamWorkSpace
g_paramWorkSpace
=
{
0
};
PARAM_STATIC
int
WorkSpaceNodeCompare
(
const
HashNode
*
node1
,
const
HashNode
*
node2
)
{
WorkSpace
*
workSpace1
=
HASHMAP_ENTRY
(
node1
,
WorkSpace
,
hashNode
);
...
...
@@ -169,7 +169,7 @@ INIT_INNER_API int InitParamWorkSpace(int onlyRead, const PARAM_WORKSPACE_OPS *o
// load user info for dac
LoadGroupUser
();
// add default dac policy
ParamAuditData
auditData
=
{};
ParamAuditData
auditData
=
{
0
};
auditData
.
name
=
"#"
;
auditData
.
dacData
.
gid
=
DAC_DEFAULT_GROUP
;
// 2000 for shell
auditData
.
dacData
.
uid
=
DAC_DEFAULT_USER
;
// for root
...
...
services/param/include/param_security.h
浏览文件 @
85d86bd3
...
...
@@ -24,9 +24,11 @@
#include "selinux_parameter.h"
#else
typedef
struct
ParamContextsList_
{
char
unused
;
}
ParamContextsList
;
typedef
struct
SrcInfo
{
char
unused
;
}
SrcInfo
;
#endif
...
...
services/param/liteos/BUILD.gn
浏览文件 @
85d86bd3
...
...
@@ -108,7 +108,6 @@ static_library("param_init_lite") {
static_library("param_client_lite") {
sources = base_sources
include_dirs = param_include_dirs
cflags = [ "-fPIC" ]
defines = param_build_defines
public_configs = [ ":exported_header_files" ]
...
...
services/param/liteos/param_client.c
浏览文件 @
85d86bd3
...
...
@@ -19,7 +19,7 @@
static
int
g_flags
=
0
;
__attribute__
((
constructor
))
static
void
ClientInit
(
void
);
__attribute__
((
destructor
))
static
void
ClientDeinit
(
void
);
static
void
ClientDeinit
(
void
);
static
int
InitParamClient
(
void
)
{
...
...
services/param/liteos/param_hal.c
浏览文件 @
85d86bd3
...
...
@@ -27,7 +27,7 @@
#include "utils_file.h"
// for linux, no mutex
static
ParamMutex
g_saveMutex
=
{};
static
ParamMutex
g_saveMutex
=
{
0
};
#ifdef PARAM_SUPPORT_POSIX
#define MODE_READ O_RDONLY
#define MODE_APPEND (O_RDWR | O_CREAT | O_APPEND)
...
...
services/param/liteos/param_litedac.c
浏览文件 @
85d86bd3
...
...
@@ -14,6 +14,7 @@
*/
#include "param_osadp.h"
#include "param_security.h"
#include "securec.h"
static
int
InitLocalSecurityLabel
(
ParamSecurityLabel
*
security
,
int
isInit
)
{
...
...
@@ -81,4 +82,4 @@ INIT_LOCAL_API int RegisterSecurityDacOps(ParamSecurityOps *ops, int isInit)
INIT_LOCAL_API
void
LoadGroupUser
(
void
)
{
}
\ No newline at end of file
}
services/param/liteos/param_osadp.c
浏览文件 @
85d86bd3
...
...
@@ -24,6 +24,7 @@
#include <sys/shm.h>
#else
#include "los_task.h"
#include "los_mux.h"
#endif
#include <sys/stat.h>
#include <sys/time.h>
...
...
@@ -318,4 +319,4 @@ INIT_LOCAL_API uint32_t Difftime(time_t curr, time_t base)
(
void
)
base
;
return
0
;
#endif
}
\ No newline at end of file
}
services/param/manager/param_persist.c
浏览文件 @
85d86bd3
...
...
@@ -23,7 +23,7 @@
#include "param_osadp.h"
#include "securec.h"
static
ParamPersistWorkSpace
g_persistWorkSpace
=
{
0
,
0
,
NULL
,
0
,
{}};
static
ParamPersistWorkSpace
g_persistWorkSpace
=
{
0
,
0
,
NULL
,
0
,
{
0
}};
static
int
IsNeedToSave
(
const
char
*
name
)
{
#if defined(__LITEOS_M__) || defined(__LITEOS_A__)
...
...
@@ -242,4 +242,4 @@ int LoadPersistParams(void)
}
#endif
return
0
;
}
\ No newline at end of file
}
services/utils/init_utils.c
浏览文件 @
85d86bd3
...
...
@@ -322,7 +322,7 @@ char **SplitStringExt(char *buffer, const char *del, int *returnCount, int maxIt
void
WaitForFile
(
const
char
*
source
,
unsigned
int
maxSecond
)
{
INIT_ERROR_CHECK
(
maxSecond
<=
WAIT_MAX_SECOND
,
maxSecond
=
WAIT_MAX_SECOND
,
"WaitForFile max time is 5s"
);
struct
stat
sourceInfo
=
{};
struct
stat
sourceInfo
=
{
0
};
unsigned
int
waitTime
=
500000
;
/* 500ms interval, check maxSecond*2 times total */
unsigned
int
maxCount
=
maxSecond
*
2
;
...
...
@@ -382,7 +382,7 @@ int MakeDir(const char *dir, mode_t mode)
int
MakeDirRecursive
(
const
char
*
dir
,
mode_t
mode
)
{
int
rc
=
-
1
;
char
buffer
[
PATH_MAX
]
=
{};
char
buffer
[
PATH_MAX
]
=
{
0
};
const
char
*
p
=
NULL
;
if
(
dir
==
NULL
||
*
dir
==
'\0'
)
{
errno
=
EINVAL
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录