Lines Matching refs:sid
1220 int hidden sepol_sid_to_context(sepol_security_id_t sid, in sepol_sid_to_context() argument
1227 context = sepol_sidtab_search(sidtab, sid); in sepol_sid_to_context()
1229 ERR(NULL, "unrecognized SID %d", sid); in sepol_sid_to_context()
1244 size_t scontext_len, sepol_security_id_t * sid) in sepol_context_to_sid() argument
1255 if (sid && (sepol_sidtab_context_to_sid(sidtab, context, sid) < 0)) in sepol_context_to_sid()
1529 static int clone_sid(sepol_security_id_t sid, in clone_sid() argument
1534 return sepol_sidtab_insert(s, sid, context); in clone_sid()
1790 if (!c->sid[0] || !c->sid[1]) { in sepol_fs_sid()
1793 &c->sid[0]); in sepol_fs_sid()
1798 &c->sid[1]); in sepol_fs_sid()
1802 *fs_sid = c->sid[0]; in sepol_fs_sid()
1803 *file_sid = c->sid[1]; in sepol_fs_sid()
1834 if (!c->sid[0]) { in sepol_port_sid()
1837 &c->sid[0]); in sepol_port_sid()
1841 *out_sid = c->sid[0]; in sepol_port_sid()
1872 if (!c->sid[0] || !c->sid[1]) { in sepol_netif_sid()
1875 &c->sid[0]); in sepol_netif_sid()
1880 &c->sid[1]); in sepol_netif_sid()
1884 *if_sid = c->sid[0]; in sepol_netif_sid()
1885 *msg_sid = c->sid[1]; in sepol_netif_sid()
1963 if (!c->sid[0]) { in sepol_node_sid()
1966 &c->sid[0]); in sepol_node_sid()
1970 *out_sid = c->sid[0]; in sepol_node_sid()
1993 sepol_security_id_t *mysids, *mysids2, sid; in sepol_get_user_sids() local
2046 &sid); in sepol_get_user_sids()
2052 mysids[mynel++] = sid; in sepol_get_user_sids()
2070 mysids[mynel++] = sid; in sepol_get_user_sids()
2090 sepol_security_id_t * sid) in sepol_genfs_sid() argument
2104 *sid = SECINITSID_UNLABELED; in sepol_genfs_sid()
2117 *sid = SECINITSID_UNLABELED; in sepol_genfs_sid()
2122 if (!c->sid[0]) { in sepol_genfs_sid()
2124 &c->context[0], &c->sid[0]); in sepol_genfs_sid()
2129 *sid = c->sid[0]; in sepol_genfs_sid()
2135 unsigned int *behavior, sepol_security_id_t * sid) in sepol_fs_use() argument
2149 if (!c->sid[0]) { in sepol_fs_use()
2152 &c->sid[0]); in sepol_fs_use()
2156 *sid = c->sid[0]; in sepol_fs_use()
2158 rc = sepol_genfs_sid(fstype, "/", SECCLASS_DIR, sid); in sepol_fs_use()