Lines Matching defs:sid
957 ERR(NULL, "unrecognized SID %d", oldsid);
963 ERR(NULL, "unrecognized SID %d", newsid);
969 ERR(NULL, "unrecognized SID %d", tasksid);
997 ERR(NULL, "unrecognized SID %d", ssid);
1003 ERR(NULL, "unrecognized SID %d", tsid);
1033 ERR(NULL, "unrecognized SID %d", ssid);
1039 ERR(NULL, "unrecognized SID %d", tsid);
1139 * the context associated with `sid' into a dynamically
1144 int hidden sepol_sid_to_context(sepol_security_id_t sid,
1151 context = sepol_sidtab_search(sidtab, sid);
1153 ERR(NULL, "unrecognized SID %d", sid);
1164 * Return a SID associated with the security context that
1168 size_t scontext_len, sepol_security_id_t * sid)
1178 /* Obtain the new sid */
1179 if (sid && (sepol_sidtab_context_to_sid(sidtab, context, sid) < 0))
1191 ERR(NULL, "could not convert %s to sid", scontext);
1237 ERR(NULL, "unrecognized SID %d", ssid);
1243 ERR(NULL, "unrecognized SID %d", tsid);
1336 /* Obtain the sid for the context. */
1344 * Compute a SID to use for labeling a new object in the
1345 * class `tclass' based on a SID pair.
1356 * Compute a SID to use when selecting a member of a
1358 * a SID pair.
1369 * Compute a SID to use for relabeling an object in the
1370 * class `tclass' based on a SID pair.
1452 /* Clone the SID into the new SID table. */
1453 static int clone_sid(sepol_security_id_t sid,
1458 return sepol_sidtab_insert(s, sid, context);
1617 * Convert the context structures in the SID table to the
1619 * in the SID table are valid under the new policy.
1658 /* Clone the SID table. */
1666 in the new SID table and remove invalid SIDs. */
1671 /* Save the old policydb and SID table to free later. */
1675 /* Install the new policydb and SID table. */
1679 /* Free the old policydb and SID table. */
1695 * the kdevname `name'. The `fs_sid' SID is returned for
1696 * the file system and the `file_sid' SID is returned
1714 if (!c->sid[0] || !c->sid[1]) {
1717 &c->sid[0]);
1722 &c->sid[1]);
1726 *fs_sid = c->sid[0];
1727 *file_sid = c->sid[1];
1738 * Return the SID of the port specified by
1758 if (!c->sid[0]) {
1761 &c->sid[0]);
1765 *out_sid = c->sid[0];
1776 * with the name `name'. The `if_sid' SID is returned for
1777 * the interface and the `msg_sid' SID is returned as
1778 * the default SID for messages received on the
1796 if (!c->sid[0] || !c->sid[1]) {
1799 &c->sid[0]);
1804 &c->sid[1]);
1808 *if_sid = c->sid[0];
1809 *msg_sid = c->sid[1];
1834 * Return the SID of the node specified by the address
1887 if (!c->sid[0]) {
1890 &c->sid[0]);
1894 *out_sid = c->sid[0];
1917 sepol_security_id_t *mysids, *mysids2, sid;
1970 &sid);
1976 mysids[mynel++] = sid;
1994 mysids[mynel++] = sid;
2007 * Return the SID to use for a file in a filesystem
2014 sepol_security_id_t * sid)
2028 *sid = SECINITSID_UNLABELED;
2041 *sid = SECINITSID_UNLABELED;
2046 if (!c->sid[0]) {
2048 &c->context[0], &c->sid[0]);
2053 *sid = c->sid[0];
2059 unsigned int *behavior, sepol_security_id_t * sid)
2073 if (!c->sid[0]) {
2076 &c->sid[0]);
2080 *sid = c->sid[0];
2082 rc = sepol_genfs_sid(fstype, "/", SECCLASS_DIR, sid);