Searched defs:perm (Results 1 - 9 of 9) sorted by relevance

/system/core/init/
H A Dueventd.c126 mode_t perm; local
173 perm = strtol(args[1], &endptr, 8);
196 add_dev_perms(name, attr, perm, uid, gid, prefix, wildcard);
H A Dinit.h61 int perm; member in struct:socketinfo
H A Dproperty_service.c102 const char *perm = "set"; local
114 if (selinux_check_access(sctx, tctx, class, perm, (void*) name) == 0)
H A Dutil.c88 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 Ddevices.c77 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
/system/extras/librank/
H A Dlibrank.c174 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/keymaster/
H A Docb.c230 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);
/system/core/sdcard/
H A Dsdcard.c178 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 Dkeystore.cpp208 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);

Completed in 145 milliseconds