fix: add capability and amend smoke testcase

add setrlimit,gethostname,gethostid and capability

Change-Id: I0d5f23cb87ec2731fb79e7c5cfbe1ce109ac158a
This commit is contained in:
wcc0
2021-07-01 16:44:26 +08:00
parent abbeca1cb2
commit c9d69e2d1b
10 changed files with 144 additions and 6 deletions

View File

@@ -45,6 +45,7 @@
#ifdef LOSCFG_SECURITY_VID
#include "vid_type.h"
#endif
#include "sys/resource.h"
#ifdef __cplusplus
#if __cplusplus
@@ -126,6 +127,7 @@ typedef struct ProcessCB {
#ifdef LOSCFG_KERNEL_CPUP
OsCpupBase processCpup; /**< Process cpu usage */
#endif
struct rlimit pl_rlimit[RLIM_NLIMITS];
} LosProcessCB;
#define CLONE_VM 0x00000100