/system/core/init/ |
H A D | devices.h | 25 mode_t perm, unsigned int uid,
|
H A D | ueventd.c | 126 mode_t perm; local 173 perm = strtol(args[1], &endptr, 8); 196 add_dev_perms(name, attr, perm, uid, gid, prefix, wildcard);
|
H A D | util.h | 28 int create_socket(const char *name, int type, mode_t perm,
|
H A D | init.h | 61 int perm; member in struct:socketinfo
|
H A D | parser.c | 31 RAW(" socket %s %s 0%o\n", si->name, si->type, si->perm);
|
H A D | devices.c | 77 mode_t perm; member in struct:perms_ 101 mode_t perm, unsigned int uid, unsigned int gid, 118 node->dp.perm = perm; 158 INFO("fixup %s %d %d 0%o\n", buf, dp->uid, dp->gid, dp->perm); 160 chmod(buf, dp->perm); 194 mode_t perm; local 225 return dp->perm; 100 add_dev_perms(const char *name, const char *attr, mode_t perm, unsigned int uid, unsigned int gid, unsigned short prefix, unsigned short wildcard) argument
|
H A D | util.c | 88 int create_socket(const char *name, int type, mode_t perm, uid_t uid, argument 135 chmod(addr.sun_path, perm); 138 addr.sun_path, perm, uid, gid);
|
H A D | property_service.c | 102 const char *perm = "set"; local 114 if (selinux_check_access(sctx, tctx, class, perm, (void*) name) == 0)
|
H A D | init.c | 274 si->perm, si->uid, si->gid, si->socketcon ?: scon);
|
H A D | init_parser.c | 777 case K_socket: {/* name type perm [ uid gid context ] */ 780 parse_error(state, "socket option requires name, type, perm arguments\n"); 795 si->perm = strtoul(args[3], 0, 8);
|
/system/extras/librank/ |
H A D | librank.c | 174 static int parse_perm(const char *perm) argument 178 while (*perm) { 179 switch(*perm) { 190 fprintf(stderr, "Unknown permission '%c'\n", *perm); 193 perm++; 220 int perm; local 233 perm = 0; 253 {"perm", required_argument, 0, 'm'}, 281 perm = parse_perm(optarg); 352 if (perm [all...] |
/system/core/sdcard/ |
H A D | sdcard.c | 178 perm_t perm; member in struct:node 455 node->perm = PERM_INHERIT; 466 switch (parent->perm) { 472 node->perm = PERM_ROOT; 480 node->perm = PERM_ANDROID; 499 node->perm = PERM_ANDROID_DATA; 503 node->perm = PERM_ANDROID_OBB; 510 node->perm = PERM_ANDROID_MEDIA; 516 node->perm = PERM_ANDROID_USER; 532 node->perm [all...] |
/system/security/keystore/ |
H A D | keystore.cpp | 208 static const char *get_perm_label(perm_t perm) { argument 209 unsigned int index = ffs(perm); 234 static bool keystore_selinux_check_access(uid_t uid, perm_t perm, pid_t spid) { argument 241 const char *str_perm = get_perm_label(perm); 258 static bool has_permission(uid_t uid, perm_t perm, pid_t spid) { argument 267 return (user.perms & perm) && 268 keystore_selinux_check_access(uid, perm, spid); 272 return (DEFAULT_PERMS & perm) && 273 keystore_selinux_check_access(uid, perm, spid);
|
/system/keymaster/ |
H A D | ocb.c | 230 const vector unsigned char perm = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0}; local 236 t = vec_perm(t, t, perm);
|