Home
last modified time | relevance | path

Searched refs:DAC_WRITE (Results 1 – 6 of 6) sorted by relevance

/base/startup/init/test/unittest/param/
Ddac_unittest.cpp76 ret = initParamSecurityOps.securityCheckFilePermission(&label, fileName, DAC_WRITE); in TestDacCheckFilePermission()
154 ret = test.TestDacCheckParaPermission("test.permission.read.aaa", &dacData, DAC_WRITE);
165 ret = test.TestDacCheckParaPermission("test.permission.write.aaa", &dacData, DAC_WRITE);
176 ret = test.TestDacCheckParaPermission("test.permission.watch.aaa", &dacData, DAC_WRITE);
195 ret = test.TestDacCheckParaPermission("test.permission.read.aaa", &dacData, DAC_WRITE);
206 ret = test.TestDacCheckParaPermission("test.permission.write.aaa", &dacData, DAC_WRITE);
217 ret = test.TestDacCheckParaPermission("test.permission.watch.aaa", &dacData, DAC_WRITE);
236 ret = test.TestDacCheckParaPermission("test.permission.read.aaa", &dacData, DAC_WRITE);
247 ret = test.TestDacCheckParaPermission("test.permission.write.aaa", &dacData, DAC_WRITE);
258 ret = test.TestDacCheckParaPermission("test.permission.watch.aaa", &dacData, DAC_WRITE);
Dselinux_unittest.cpp68 ret = initParamSercurityOps.securityCheckFilePermission(&label, fileName, DAC_WRITE); in TestSelinuxCheckFilePermission()
87 TestGetParamLabelIndex(name), &srclabel, name, DAC_WRITE); in TestSelinuxCheckParaPermission()
124 TestGetParamLabelIndex(name), &srclabel, name, DAC_WRITE); in TestClientSelinuxCheckParaPermissionWrite()
/base/startup/init/services/param/base/
Dparam_base.c70 op = DAC_WRITE; in RegisterSecurityOps()
382 uint32_t localMode = (mode & (DAC_READ | DAC_WRITE | DAC_WATCH)) >> DAC_GROUP_START; in DacCheckGroupPermission()
388 if (mode != DAC_WRITE || g_paramWorkSpace.ops.getServiceGroupIdByPid == NULL) { in DacCheckGroupPermission()
423 uint32_t localMode = (mode & (DAC_READ | DAC_WRITE | DAC_WATCH)) >> DAC_OTHER_START; in DacCheckParamPermission()
430 localMode = mode & (DAC_READ | DAC_WRITE | DAC_WATCH); in DacCheckParamPermission()
441 localMode = (mode & (DAC_READ | DAC_WRITE | DAC_WATCH)) >> DAC_GROUP_START; in DacCheckParamPermission()
475 if (mode == DAC_WRITE) { in SelinuxCheckParamPermission()
531 if (srcLabel->cred.uid == 0 && srcLabel->cred.pid == 1 && mode == DAC_WRITE) { in CheckParamPermission_()
/base/startup/init/services/param/include/
Dparam_security.h38 #define DAC_WRITE 0x0080 // 2 macro
/base/startup/init/services/begetctl/
Dparam_cmd.c156 if (mode & (DAC_WRITE >> shift)) { in GetPermissionString()
/base/startup/init/services/param/manager/
Dparam_manager.c366 …t = CheckParamPermission(srcLabel, (serviceInfo == NULL) ? name : serviceInfo->realKey, DAC_WRITE); in CheckParameterSet()