Searched refs:DAC_WRITE (Results 1 – 6 of 6) sorted by relevance
/base/startup/init/test/unittest/param/ |
D | dac_unittest.cpp | 76 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);
|
D | selinux_unittest.cpp | 68 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/ |
D | param_base.c | 70 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/ |
D | param_security.h | 38 #define DAC_WRITE 0x0080 // 2 macro
|
/base/startup/init/services/begetctl/ |
D | param_cmd.c | 156 if (mode & (DAC_WRITE >> shift)) { in GetPermissionString()
|
/base/startup/init/services/param/manager/ |
D | param_manager.c | 366 …t = CheckParamPermission(srcLabel, (serviceInfo == NULL) ? name : serviceInfo->realKey, DAC_WRITE); in CheckParameterSet()
|