/system/bt/stack/gatt/ |
D | gatt_db.cc | 44 tGATT_PERM perm); 87 tGATT_PERM perm = attr.permission; in gatts_check_attr_readability() local 89 min_key_size = (((perm & GATT_ENCRYPT_KEY_SIZE_MASK) >> 12)); in gatts_check_attr_readability() 94 if (!(perm & GATT_READ_ALLOWED)) { in gatts_check_attr_readability() 99 if ((perm & GATT_READ_AUTH_REQUIRED) && in gatts_check_attr_readability() 106 if ((perm & GATT_READ_MITM_REQUIRED) && in gatts_check_attr_readability() 112 if ((perm & GATT_READ_ENCRYPTED_REQUIRED) && in gatts_check_attr_readability() 118 if ((perm & GATT_READ_ENCRYPTED_REQUIRED) && in gatts_check_attr_readability() 366 uint16_t gatts_add_characteristic(tGATT_SVC_DB& db, tGATT_PERM perm, in gatts_add_characteristic() argument 371 VLOG(1) << StringPrintf("%s: perm=0x%0x property=0x%0x", __func__, perm, in gatts_add_characteristic() [all …]
|
D | gatt_int.h | 569 extern uint16_t gatts_add_characteristic(tGATT_SVC_DB& db, tGATT_PERM perm, 572 extern uint16_t gatts_add_char_descr(tGATT_SVC_DB& db, tGATT_PERM perm,
|
/system/sepolicy/tools/ |
D | sepolicy-check.c | 57 int check_perm(avtab_ptr_t current, perm_datum_t *perm) { in check_perm() argument 58 uint16_t perm_bitmask = 1U << (perm->s.value - 1); in check_perm() 66 perm_datum_t *perm, policydb_t *policy, avtab_t *avtab) { in expand_and_check() argument 89 match &= check_perm(cur, perm); in expand_and_check() 120 perm_datum_t *perm = NULL; in check_rule() local 152 perm = hashtab_search(cls->permissions.table, p); in check_rule() 153 if (perm == NULL) { in check_rule() 158 perm = hashtab_search(cls->comdatum->permissions.table, p); in check_rule() 159 if (perm == NULL) { in check_rule() 177 perm, policy, &policy->te_avtab); in check_rule() [all …]
|
/system/security/keystore/ |
D | permissions.cpp | 96 const char* get_perm_label(perm_t perm) { in get_perm_label() argument 97 unsigned int index = ffs(perm); in get_perm_label() 134 static bool keystore_selinux_check_access(uid_t uid, perm_t perm, pid_t spid, const char* ssid) { in keystore_selinux_check_access() argument 138 const char* str_perm = get_perm_label(perm); in keystore_selinux_check_access() 177 bool has_permission(uid_t uid, perm_t perm, pid_t spid, const char* sid) { in has_permission() argument 190 return (user.perms & perm) && keystore_selinux_check_access(uid, perm, spid, sid); in has_permission() 194 return (DEFAULT_PERMS & perm) && keystore_selinux_check_access(uid, perm, spid, sid); in has_permission()
|
D | permissions.h | 45 const char* get_perm_label(perm_t perm); 59 bool has_permission(uid_t uid, perm_t perm, pid_t spid, const char* sid);
|
/system/hwservicemanager/ |
D | AccessControl.cpp | 95 …sion(const CallingContext& source, const char *targetContext, const char *perm, const char *interf… in checkPermission() argument 108 perm, (void *) &ad) == 0); in checkPermission() 113 bool AccessControl::checkPermission(const CallingContext& source, const char *perm, const char *int… in checkPermission() argument 123 allowed = checkPermission(source, targetContext, perm, interface); in checkPermission()
|
D | AccessControl.h | 43 …bool checkPermission(const CallingContext& source, const char *targetContext, const char *perm, co… 44 bool checkPermission(const CallingContext& source, const char *perm, const char *interface);
|
/system/core/init/ |
D | devices_test.cpp | 228 EXPECT_EQ(0666U, permissions.perm()); in TEST() 241 EXPECT_EQ(0666U, permissions.perm()); in TEST() 255 EXPECT_EQ(0666U, permissions.perm()); in TEST() 271 EXPECT_EQ(0666U, permissions.perm()); in TEST() 281 EXPECT_EQ(0660U, permissions.perm()); in TEST() 295 EXPECT_EQ(0660U, permissions.perm()); in TEST() 307 EXPECT_EQ(0660U, permissions.perm()); in TEST()
|
D | devices.h | 41 Permissions(const std::string& name, mode_t perm, uid_t uid, gid_t gid); 45 mode_t perm() const { return perm_; } in perm() function 65 SysfsPermissions(const std::string& name, const std::string& attribute, mode_t perm, uid_t uid, in SysfsPermissions() argument 67 : Permissions(name, perm, uid, gid), attribute_(attribute) {} in SysfsPermissions()
|
D | devices.cpp | 126 Permissions::Permissions(const std::string& name, mode_t perm, uid_t uid, gid_t gid) in Permissions() argument 127 : name_(name), perm_(perm), uid_(uid), gid_(gid), prefix_(false), wildcard_(false) { in Permissions() 169 << perm(); in SetPermissions() 176 if (chmod(attribute_file.c_str(), perm()) != 0) { in SetPermissions() 177 PLOG(ERROR) << "chmod(" << attribute_file << ", " << perm() << ") failed"; in SetPermissions() 238 return {it->perm(), it->uid(), it->gid()}; in GetDevicePermissions()
|
D | ueventd_parser.cpp | 53 mode_t perm = strtol(perm_string.c_str(), &end_pointer, 8); in ParsePermissionsLine() local 73 out_sysfs_permissions->emplace_back(name, sysfs_attribute, perm, uid, gid); in ParsePermissionsLine() 75 out_dev_permissions->emplace_back(name, perm, uid, gid); in ParsePermissionsLine()
|
D | service_utils.h | 52 int perm = 0; member
|
D | util.h | 47 Result<int> CreateSocket(const std::string& name, int type, bool passcred, mode_t perm, uid_t uid,
|
D | util.cpp | 91 Result<int> CreateSocket(const std::string& name, int type, bool passcred, mode_t perm, uid_t uid, in CreateSocket() argument 144 if (fchmodat(AT_FDCWD, addr.sun_path, perm, AT_SYMLINK_NOFOLLOW)) { in CreateSocket() 149 << ", mode " << std::oct << perm << std::dec in CreateSocket()
|
D | service_utils.cpp | 170 auto result = CreateSocket(name, type | SOCK_CLOEXEC, passcred, perm, uid, gid, socket_context); in Create()
|
D | service_parser.cpp | 405 socket.perm = strtol(args[3].c_str(), &end, 8); in ParseSocket()
|
D | README.md | 312 `socket <name> <type> <perm> [ <user> [ <group> [ <seclabel> ] ] ]`
|
/system/sepolicy/tools/sepolicy-analyze/ |
D | Android.bp | 9 "perm.c",
|
D | neverallow.c | 189 perm_datum_t *perm = NULL; in read_classperms() local 336 perm = hashtab_search(cls->permissions.table, id); in read_classperms() 337 if (cls->comdatum && !perm) in read_classperms() 338 perm = hashtab_search(cls->comdatum->permissions.table, id); in read_classperms() 339 if (!perm) { in read_classperms() 344 node->data |= 1U << (perm->s.value - 1); in read_classperms()
|
/system/core/liblog/tests/ |
D | liblog_test.cpp | 1686 bool perm = (gid == AID_ROOT) || (uid == AID_ROOT); in TEST() local 1687 EXPECT_STREQ(perm ? "TRUE" : persist_hold, persist); in TEST() 1695 EXPECT_STREQ(perm ? "FALSE" : persist_hold, persist); in TEST() 1703 EXPECT_STREQ(perm ? "true" : persist_hold, persist); in TEST() 1711 EXPECT_STREQ(perm ? "false" : persist_hold, persist); in TEST() 1719 EXPECT_STREQ(perm ? "" : persist_hold, persist); in TEST()
|
/system/keymaster/key_blob_utils/ |
D | ocb.c | 231 const vector unsigned char perm = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0}; in double_block() local 237 t = vec_perm(t, t, perm); in double_block()
|