Home
last modified time | relevance | path

Searched refs:ParamSecurityLabel (Results 1 – 12 of 12) sorted by relevance

/base/startup/init/services/param/include/
Dparam_security.h69 } ParamSecurityLabel; typedef
89 int (*securityInitLabel)(ParamSecurityLabel *label, int isInit);
91 …int (*securityCheckFilePermission)(const ParamSecurityLabel *label, const char *fileName, int flag…
92 …int (*securityCheckParamPermission)(const ParamSecurityLabel *srcLabel, const char *name, uint32_t…
93 int (*securityFreeLabel)(ParamSecurityLabel *srcLabel);
Dparam_manager.h56 ParamSecurityLabel securityLabel;
110 INIT_LOCAL_API ParamSecurityLabel *GetParamSecurityLabel(void);
122 const ParamSecurityLabel *srcLabel, int *ctrlService);
124 INIT_LOCAL_API int CheckParamPermission(const ParamSecurityLabel *srcLabel, const char *name, uint3…
/base/startup/init/services/param/liteos/
Dparam_litedac.c19 static int InitLocalSecurityLabel(ParamSecurityLabel *security, int isInit) in InitLocalSecurityLabel()
36 static int FreeLocalSecurityLabel(ParamSecurityLabel *srcLabel) in FreeLocalSecurityLabel()
48 static int CheckFilePermission(const ParamSecurityLabel *localLabel, const char *fileName, int flag… in CheckFilePermission()
55 static int DacCheckParamPermission(const ParamSecurityLabel *srcLabel, const char *name, uint32_t m… in DacCheckParamPermission()
/base/startup/init/test/unittest/param/
Dselinux_unittest.cpp47 ParamSecurityLabel label = {}; in TestSelinuxInitLocalLabel()
62 ParamSecurityLabel label = {}; in TestSelinuxCheckFilePermission()
79 ParamSecurityLabel srclabel = {}; in TestSelinuxCheckParaPermission()
98 ParamSecurityLabel label = {}; in TestClientSelinuxCheckFilePermission()
116 ParamSecurityLabel srclabel = {}; in TestClientSelinuxCheckParaPermissionWrite()
133 ParamSecurityLabel srclabel = {}; in TestClientSelinuxCheckParaPermissionRead()
Dparam_stub.h56 int TestCheckParamPermission(const ParamSecurityLabel *srcLabel, const char *name, uint32_t mode);
57 int TestFreeLocalSecurityLabel(ParamSecurityLabel *srcLabel);
Ddac_unittest.cpp44 ParamSecurityLabel label = {}; in TestDacInitLocalLabel()
59 ParamSecurityLabel label = {}; in TestDacCheckFilePermission()
82 ParamSecurityLabel srclabel = {}; in TestDacCheckParaPermission()
101 ParamSecurityLabel label = {}; in TestClientDacCheckFilePermission()
Dparam_stub.cpp435 int TestCheckParamPermission(const ParamSecurityLabel *srcLabel, const char *name, uint32_t mode) in TestCheckParamPermission()
441 int TestFreeLocalSecurityLabel(ParamSecurityLabel *srcLabel) in TestFreeLocalSecurityLabel()
/base/startup/init/services/param/adapter/
Dparam_selinux.c83 static int InitLocalSecurityLabel(ParamSecurityLabel *security, int isInit) in InitLocalSecurityLabel()
111 static int FreeLocalSecurityLabel(ParamSecurityLabel *srcLabel) in FreeLocalSecurityLabel()
216 static int CheckFilePermission(const ParamSecurityLabel *localLabel, const char *fileName, int flag… in CheckFilePermission()
261 static int SelinuxCheckParamPermission(const ParamSecurityLabel *srcLabel, const char *name, uint32… in SelinuxCheckParamPermission()
292 static int UpdaterCheckParamPermission(const ParamSecurityLabel *srcLabel, const char *name, uint32… in UpdaterCheckParamPermission()
Dparam_dac.c108 static int InitLocalSecurityLabel(ParamSecurityLabel *security, int isInit) in InitLocalSecurityLabel()
120 static int FreeLocalSecurityLabel(ParamSecurityLabel *srcLabel) in FreeLocalSecurityLabel()
215 static int CheckFilePermission(const ParamSecurityLabel *localLabel, const char *fileName, int flag… in CheckFilePermission()
238 static int DacCheckParamPermission(const ParamSecurityLabel *srcLabel, const char *name, uint32_t m… in DacCheckParamPermission()
/base/startup/init/services/param/linux/
Dparam_service.c141 static int SystemSetParam(const char *name, const char *value, const ParamSecurityLabel *srcLabel) in SystemSetParam()
164 ParamSecurityLabel srcLabel = {0}; in HandleParamSet()
/base/startup/init/services/param/base/
Dparam_comm.c396 INIT_LOCAL_API ParamSecurityLabel *GetParamSecurityLabel() in GetParamSecurityLabel()
503 INIT_LOCAL_API int CheckParamPermission(const ParamSecurityLabel *srcLabel, const char *name, uint3… in CheckParamPermission()
/base/startup/init/services/param/manager/
Dparam_manager.c344 const char *value, const ParamSecurityLabel *srcLabel, int *ctrlService) in CheckParameterSet()