Home
last modified time | relevance | path

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

12345678910>>...22

/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.c19 #define SIDTAB_HASH(sid) \ argument
20 (sid & SIDTAB_HASH_MASK)
42 int sepol_sidtab_insert(sidtab_t * s, sepol_security_id_t sid, in sepol_sidtab_insert() argument
51 hvalue = SIDTAB_HASH(sid); in sepol_sidtab_insert()
54 while (cur != NULL && sid > cur->sid) { in sepol_sidtab_insert()
59 if (cur && sid == cur->sid) { in sepol_sidtab_insert()
67 newnode->sid = sid; in sepol_sidtab_insert()
82 if (sid >= s->next_sid) in sepol_sidtab_insert()
83 s->next_sid = sid + 1; in sepol_sidtab_insert()
87 context_struct_t *sepol_sidtab_search(sidtab_t * s, sepol_security_id_t sid) in sepol_sidtab_search() argument
[all …]
Dservices.c1243 int sepol_sid_to_context(sepol_security_id_t sid, in sepol_sid_to_context() argument
1250 context = sepol_sidtab_search(sidtab, sid); in sepol_sid_to_context()
1252 ERR(NULL, "unrecognized SID %d", sid); in sepol_sid_to_context()
1267 size_t scontext_len, sepol_security_id_t * sid) in sepol_context_to_sid() argument
1278 if (sid && (sepol_sidtab_context_to_sid(sidtab, context, sid) < 0)) in sepol_context_to_sid()
1569 static int clone_sid(sepol_security_id_t sid, in clone_sid() argument
1574 return sepol_sidtab_insert(s, sid, context); in clone_sid()
1867 if (!c->sid[0] || !c->sid[1]) { in sepol_fs_sid()
1870 &c->sid[0]); in sepol_fs_sid()
1875 &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/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/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/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/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_shaderio.cpp112 ShaderInputVarying::ShaderInputVarying(tgsi_semantic _name, int sid, unsigned driver_location, in ShaderInputVarying() argument
119 m_sid(sid), in ShaderInputVarying()
137 ShaderInputVarying::ShaderInputVarying(tgsi_semantic _name, int sid, nir_variable *input): in ShaderInputVarying() argument
141 m_sid(sid), in ShaderInputVarying()
148 << " sid: " << sid in ShaderInputVarying()
282 io.sid = m_sid; in set_specific_ioinfo()
292 ShaderInputColor::ShaderInputColor(tgsi_semantic name, int sid, nir_variable *input): in ShaderInputColor() argument
293 ShaderInputVarying(name, sid, input), in ShaderInputColor()
296 sfn_log << SfnLog::io << __func__ << "name << " << name << " sid << " << sid << "\n"; in ShaderInputColor()
299 ShaderInputColor::ShaderInputColor(tgsi_semantic _name, int sid, unsigned driver_location, in ShaderInputColor() argument
[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/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/flutter/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/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/node/deps/icu-small/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/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/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/porting/liteos_a/user/src/unistd/
Dsetxid.c8 int id, eid, sid; member
16 int ret = -__syscall(c->nr, c->id, c->eid, c->sid); in do_setxid()
28 int __setxid(int nr, int id, int eid, int sid) in __setxid() argument
32 struct ctx c = { .nr = nr, .id = id, .eid = eid, .sid = sid, .err = -1 }; in __setxid()
/third_party/musl/src/unistd/
Dsetxid.c8 int id, eid, sid; member
16 int ret = -__syscall(c->nr, c->id, c->eid, c->sid); in do_setxid()
28 int __setxid(int nr, int id, int eid, int sid) in __setxid() argument
32 struct ctx c = { .nr = nr, .id = id, .eid = eid, .sid = sid, .err = -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/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/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/flutter/skia/third_party/externals/harfbuzz/src/
Dhb-ot-cff1-table.hh149 void get_codes (hb_codepoint_t sid, hb_vector_t<hb_codepoint_t> &codes) const in get_codes()
152 if (sid == supps[i].glyph) in get_codes()
281 void get_supplement_codes (hb_codepoint_t sid, hb_vector_t<hb_codepoint_t> &codes) const in get_supplement_codes()
285 suppEncData().get_codes (sid, codes); in get_supplement_codes()
325 hb_codepoint_t get_glyph (hb_codepoint_t sid, unsigned int num_glyphs) const in get_glyph()
327 if (sid == 0) in get_glyph()
332 if (sids[glyph-1] == sid) in get_glyph()
394 hb_codepoint_t get_glyph (hb_codepoint_t sid, unsigned int num_glyphs) const in get_glyph()
396 if (sid == 0) return 0; in get_glyph()
402 if ((ranges[i].first <= sid) && (sid <= ranges[i].first + ranges[i].nLeft)) in get_glyph()
[all …]

12345678910>>...22