Home
last modified time | relevance | path

Searched refs:sid (Results 1 – 25 of 498) sorted by relevance

12345678910>>...20

/third_party/ntfs-3g/ntfsprogs/
Dsd.c28 SID *sid; in init_system_file_sd() local
77 aa_ace->sid.revision = 1; in init_system_file_sd()
78 aa_ace->sid.sub_authority_count = 1; in init_system_file_sd()
79 aa_ace->sid.identifier_authority.value[0] = 0; in init_system_file_sd()
80 aa_ace->sid.identifier_authority.value[1] = 0; in init_system_file_sd()
81 aa_ace->sid.identifier_authority.value[2] = 0; in init_system_file_sd()
82 aa_ace->sid.identifier_authority.value[3] = 0; in init_system_file_sd()
83 aa_ace->sid.identifier_authority.value[4] = 0; in init_system_file_sd()
85 aa_ace->sid.identifier_authority.value[5] = 5; in init_system_file_sd()
86 aa_ace->sid.sub_authority[0] = in init_system_file_sd()
[all …]
Dntfsusermap.c187 const unsigned char *sid; member
340 static char *decodesid(const unsigned char *sid) in decodesid() argument
351 sprintf(&str[strlen(str)], "-%d", sid[0]); in decodesid()
353 auth = get6h(sid, 2); in decodesid()
359 for (i = 0; (i < 8) && (i < sid[1]); i++) { in decodesid()
361 subauth = get4l(sid, 8 + 4 * i); in decodesid()
372 static boolean isgenericgroup(const char *sid) in isgenericgroup() argument
376 yes = !strncmp(sid,"S-1-5-21-",9) in isgenericgroup()
377 && !strcmp(strrchr(sid,'-'),"-513"); in isgenericgroup()
381 static unsigned char *makegroupsid(const unsigned char *sid) in makegroupsid() argument
[all …]
/third_party/selinux/libsepol/src/
Dsidtab.c20 #define SIDTAB_HASH(sid) \ argument
21 (sid & SIDTAB_HASH_MASK)
39 int sepol_sidtab_insert(sidtab_t * s, sepol_security_id_t sid, in sepol_sidtab_insert() argument
48 hvalue = SIDTAB_HASH(sid); in sepol_sidtab_insert()
51 while (cur != NULL && sid > cur->sid) { in sepol_sidtab_insert()
56 if (cur && sid == cur->sid) { in sepol_sidtab_insert()
64 newnode->sid = sid; in sepol_sidtab_insert()
79 if (sid >= s->next_sid) in sepol_sidtab_insert()
80 s->next_sid = sid + 1; in sepol_sidtab_insert()
84 context_struct_t *sepol_sidtab_search(sidtab_t * s, sepol_security_id_t sid) in sepol_sidtab_search() argument
[all …]
Dservices.c1250 int sepol_sid_to_context(sepol_security_id_t sid, in sepol_sid_to_context() argument
1257 context = sepol_sidtab_search(sidtab, sid); in sepol_sid_to_context()
1259 ERR(NULL, "unrecognized SID %d", sid); in sepol_sid_to_context()
1274 size_t scontext_len, sepol_security_id_t * sid) in sepol_context_to_sid() argument
1285 if (sid && (sepol_sidtab_context_to_sid(sidtab, context, sid) < 0)) in sepol_context_to_sid()
1576 static int clone_sid(sepol_security_id_t sid, in clone_sid() argument
1581 return sepol_sidtab_insert(s, sid, context); in clone_sid()
1874 if (!c->sid[0] || !c->sid[1]) { in sepol_fs_sid()
1877 &c->sid[0]); in sepol_fs_sid()
1882 &c->sid[1]); in sepol_fs_sid()
[all …]
/third_party/selinux/secilc/docs/
Dcil_sid_statements.md4 sid section in SID Statements
12 (sid sid_id)
24 <td align="left"><p><code>sid</code></p></td>
25 <td align="left"><p>The <code>sid</code> keyword.</p></td>
29 <td align="left"><p>The <code>sid</code> identifier.</p></td>
36 These examples show three [`sid`](cil_sid_statements.md#sid) declarations:
39 (sid kernel)
40 (sid security)
41 (sid igmp_packet)
47 Defines the order of [sid](#sid)'s. This is a mandatory statement when SIDs are defined. Multiple […
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/manual/termios/
Dtcgetsid.c31 pid_t sid; in tcgetsid_0100() local
33 sid = tcgetsid(STDIN_FILENO); in tcgetsid_0100()
34 if (sid == -1) { in tcgetsid_0100()
50 pid_t sid; in tcgetsid_0200() local
51 sid = tcgetsid(-1); in tcgetsid_0200()
52 if (sid != -1) { in tcgetsid_0200()
53 t_error("%s tcgetsid should failed, sid is %d", __func__, sid); in tcgetsid_0200()
/third_party/selinux/libsepol/tests/policies/test-neverallow/
Dpolicy.conf10 sid kernel
11 sid security
12 sid unlabeled
13 sid file
14 sid port
15 sid netif
16 sid netmsg
17 sid node
18 sid devnull
288 sid kernel gen_context(sys_user:sys_role:sys_isid, s0)
[all …]
/third_party/ntfs-3g/libntfs-3g/
Dacls.c160 int ntfs_sid_size(const SID * sid) in ntfs_sid_size() argument
162 return (sid->sub_authority_count * 4 + 8); in ntfs_sid_size()
320 BOOL ntfs_valid_sid(const SID *sid) in ntfs_valid_sid() argument
322 return sid && sid->revision == SID_REVISION && in ntfs_valid_sid()
323 sid->sub_authority_count <= SID_MAX_SUB_AUTHORITIES; in ntfs_valid_sid()
336 BOOL ntfs_valid_pattern(const SID *sid) in ntfs_valid_pattern() argument
342 cnt = sid->sub_authority_count; in ntfs_valid_pattern()
343 leauth = sid->sub_authority[cnt-1]; in ntfs_valid_pattern()
413 const SID *sid; in ntfs_find_usid() local
419 sid = adminsid; in ntfs_find_usid()
[all …]
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-ot-cff1-table.hh154 void get_codes (hb_codepoint_t sid, hb_vector_t<hb_codepoint_t> &codes) const in get_codes()
157 if (sid == supps[i].glyph) in get_codes()
269 void get_supplement_codes (hb_codepoint_t sid, hb_vector_t<hb_codepoint_t> &codes) const in get_supplement_codes()
273 suppEncData().get_codes (sid, codes); in get_supplement_codes()
329 hb_codepoint_t get_glyph (hb_codepoint_t sid, unsigned int num_glyphs) const in get_glyph()
331 if (sid == 0) in get_glyph()
336 if (sids[glyph-1] == sid) in get_glyph()
398 hb_codepoint_t get_glyph (hb_codepoint_t sid, unsigned int num_glyphs) const in get_glyph()
400 if (sid == 0) return 0; in get_glyph()
406 if ((ranges[i].first <= sid) && (sid <= ranges[i].first + ranges[i].nLeft)) in get_glyph()
[all …]
Dhb-subset-cff1.cc44 unsigned int add (unsigned int sid) in add()
46 if ((sid != CFF_UNDEF_SID) && !is_std_std (sid)) in add()
47 return offset_sid (hb_inc_bimap_t::add (unoffset_sid (sid))); in add()
49 return sid; in add()
52 unsigned int operator[] (unsigned int sid) const in operator []()
54 if (is_std_std (sid) || (sid == CFF_UNDEF_SID)) in operator []()
55 return sid; in operator []()
57 return offset_sid (get (unoffset_sid (sid))); in operator []()
62 static bool is_std_std (unsigned int sid) { return sid < num_std_strings; } in is_std_std()
63 static unsigned int offset_sid (unsigned int sid) { return sid + num_std_strings; } in offset_sid()
[all …]
/third_party/libwebsockets/lib/roles/h2/
Dhttp2.c154 lws_h2_update_peer_txcredit(struct lws *wsi, unsigned int sid, int bump) in lws_h2_update_peer_txcredit() argument
164 if (sid == (unsigned int)-1) in lws_h2_update_peer_txcredit()
165 sid = wsi->mux.my_sid; in lws_h2_update_peer_txcredit()
167 lwsl_info("%s: sid %d: bump %d -> %d\n", __func__, sid, bump, in lws_h2_update_peer_txcredit()
174 pps->u.update_window.sid = (unsigned int)sid; in lws_h2_update_peer_txcredit()
186 pps->u.update_window.sid = 0; in lws_h2_update_peer_txcredit()
205 lws_h2_update_peer_txcredit_thresh(struct lws *wsi, unsigned int sid, int threshold, int bump) in lws_h2_update_peer_txcredit_thresh() argument
210 return lws_h2_update_peer_txcredit(wsi, sid, bump); in lws_h2_update_peer_txcredit_thresh()
217 unsigned int sid) in __lws_wsi_server_new() argument
237 if (sid <= h2n->highest_sid_opened) { in __lws_wsi_server_new()
[all …]
/third_party/node/deps/icu-small/source/tools/genrb/
Dwrtxml.cpp557 char *sid = nullptr; in printContainer() local
563 sid = getID(id, resname, sid); in printContainer()
565 sid = getID(id, nullptr, sid); in printContainer()
570 printAttribute("id", sid, (int32_t) uprv_strlen(sid)); in printContainer()
592 return sid; in printContainer()
625 char *sid = nullptr; in string_write_xml() local
633 sid = printContainer(res, trans_unit, nullptr, nullptr, id, status); in string_write_xml()
656 uprv_free(sid); in string_write_xml()
661 char *sid = nullptr; in alias_write_xml() local
665 sid = printContainer(res, trans_unit, alias_restype, nullptr, id, status); in alias_write_xml()
[all …]
/third_party/icu/icu4c/source/tools/genrb/
Dwrtxml.cpp557 char *sid = NULL; in printContainer() local
563 sid = getID(id, resname, sid); in printContainer()
565 sid = getID(id, NULL, sid); in printContainer()
570 printAttribute("id", sid, (int32_t) uprv_strlen(sid)); in printContainer()
592 return sid; in printContainer()
625 char *sid = NULL; in string_write_xml() local
633 sid = printContainer(res, trans_unit, NULL, NULL, id, status); in string_write_xml()
656 uprv_free(sid); in string_write_xml()
661 char *sid = NULL; in alias_write_xml() local
665 sid = printContainer(res, trans_unit, alias_restype, NULL, id, status); in alias_write_xml()
[all …]
/third_party/skia/third_party/externals/icu/source/tools/genrb/
Dwrtxml.cpp557 char *sid = NULL; in printContainer() local
563 sid = getID(id, resname, sid); in printContainer()
565 sid = getID(id, NULL, sid); in printContainer()
570 printAttribute("id", sid, (int32_t) uprv_strlen(sid)); in printContainer()
592 return sid; in printContainer()
625 char *sid = NULL; in string_write_xml() local
633 sid = printContainer(res, trans_unit, NULL, NULL, id, status); in string_write_xml()
656 uprv_free(sid); in string_write_xml()
661 char *sid = NULL; in alias_write_xml() local
665 sid = printContainer(res, trans_unit, alias_restype, NULL, id, status); in alias_write_xml()
[all …]
/third_party/alsa-lib/modules/mixer/simple/
Dsbase.c331 struct melem_sids *sid; in simple_event_add1() local
337 if (bsid->sids[ui].sid == sel->sid) { in simple_event_add1()
338 sid = &bsid->sids[ui]; in simple_event_add1()
391 snd_mixer_selem_id_set_name(id, sid->sname); in simple_event_add1()
392 snd_mixer_selem_id_set_index(id, sid->sindex); in simple_event_add1()
404 simple->sid = sel->sid; in simple_event_add1()
406 sid->weight, in simple_event_add1()
424 simple->dir[0].chanmap |= sid->chanmap[0]; in simple_event_add1()
425 simple->dir[1].chanmap |= sid->chanmap[1]; in simple_event_add1()
517 struct bclass_sid *sid; in sbasic_cpriv_free() local
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
Dsetsid.c42 pid_t sid = getsid(pid); in setsid_0100() local
43 if (sid < 0) { in setsid_0100()
44 t_error("%s failed: sid = %d\n", __func__, sid); in setsid_0100()
47 if (result != sid) { in setsid_0100()
48 t_error("%s failed: result = %d, sid = %d\n", __func__, result, sid); in setsid_0100()
/third_party/musl/src/unistd/
Dsetxid.c7 int id, eid, sid; member
15 int ret = __syscall(c->nr, c->id, c->eid, c->sid); in do_setxid()
27 int __setxid(int nr, int id, int eid, int sid) in __setxid() argument
31 struct ctx c = { .nr = nr, .id = id, .eid = eid, .sid = sid, .ret = 1 }; in __setxid()
/third_party/musl/porting/liteos_a/user/src/unistd/
Dsetxid.c7 int id, eid, sid; member
15 int ret = __syscall(c->nr, c->id, c->eid, c->sid); in do_setxid()
27 int __setxid(int nr, int id, int eid, int sid) in __setxid() argument
31 struct ctx c = { .nr = nr, .id = id, .eid = eid, .sid = sid, .ret = 1 }; in __setxid()
/third_party/ltp/testcases/kernel/containers/pidns/
Dpidns02.c67 pid_t pgid, sid; in child_fn1() local
72 sid = getsid(0); in child_fn1()
75 if (pgid == PGID && sid == SID) { in child_fn1()
77 pgid, sid); in child_fn1()
81 "%d\n", pgid, sid); in child_fn1()
/third_party/selinux/libselinux/include/selinux/
Davc.h40 extern int avc_sid_to_context(security_id_t sid, char ** ctx);
41 extern int avc_sid_to_context_raw(security_id_t sid, char ** ctx);
54 extern int avc_context_to_sid(const char * ctx, security_id_t * sid);
55 extern int avc_context_to_sid_raw(const char * ctx, security_id_t * sid);
67 extern int sidget(security_id_t sid)
83 extern int sidput(security_id_t sid)
98 extern int avc_get_initial_sid(const char *name, security_id_t * sid);
/third_party/selinux/libsepol/include/sepol/policydb/
Dsidtab.h20 sepol_security_id_t sid; /* security identifier */ member
43 sepol_security_id_t sid,
47 sepol_security_id_t sid);
50 int (*apply) (sepol_security_id_t sid,
63 sepol_security_id_t * sid); /* OUT */
/third_party/mesa3d/src/gallium/drivers/svga/include/
Dsvga3d_cmd.h386 uint32 sid; member
414 uint32 sid; member
444 uint32 sid; member
502 uint32 sid; member
907 uint32 sid; member
1211 uint32 sid; member
1220 uint32 sid; member
1228 uint32 sid; member
1498 uint32 sid; member
1711 uint32 sid; member
[all …]
Dsvga3d_dx.h229 SVGA3dSurfaceId sid; member
404 SVGA3dSurfaceId sid; member
423 SVGA3dSurfaceId sid; member
463 SVGA3dSurfaceId sid; member
473 SVGA3dSurfaceId sid; member
676 SVGA3dSurfaceId sid; member
926 SVGA3dSurfaceId sid; member
937 SVGA3dSurfaceId sid; member
947 SVGA3dSurfaceId sid; member
1061 SVGA3dSurfaceId sid; member
[all …]
/third_party/alsa-utils/amixer/
Damixer.c1045 snd_mixer_selem_id_t *sid; in selems() local
1047 snd_mixer_selem_id_alloca(&sid); in selems()
1070 snd_mixer_selem_get_id(elem, sid); in selems()
1073 …ple mixer control '%s',%i\n", snd_mixer_selem_id_get_name(sid), snd_mixer_selem_id_get_index(sid)); in selems()
1074 show_selem(handle, sid, " ", level); in selems()
1080 static int parse_simple_id(const char *str, snd_mixer_selem_id_t *sid) in parse_simple_id() argument
1112 snd_mixer_selem_id_set_index(sid, 0); in parse_simple_id()
1122 snd_mixer_selem_id_set_index(sid, atoi(str)); in parse_simple_id()
1124 snd_mixer_selem_id_set_name(sid, buf); in parse_simple_id()
1447 snd_mixer_selem_id_t *sid; in sset() local
[all …]
/third_party/musl/src/termios/
Dtcgetsid.c6 int sid; in tcgetsid() local
7 if (ioctl(fd, TIOCGSID, &sid) < 0) in tcgetsid()
9 return sid; in tcgetsid()

12345678910>>...20