services.c (0e55a004b58847c53e48d846b9a4570b1587c382) | services.c (3e11217263d0521e212cb8a017fbc2a1514db78f) |
---|---|
1/* 2 * Implementation of the security services. 3 * 4 * Authors : Stephen Smalley, <sds@epoch.ncsc.mil> 5 * James Morris <jmorris@redhat.com> 6 * 7 * Updated: Trusted Computer Solutions, Inc. <dgoeddel@trustedcs.com> 8 * --- 1458 unchanged lines hidden (view full) --- 1467 sidtab_destroy(&newsidtab); 1468 policydb_destroy(&newpolicydb); 1469 return rc; 1470 1471} 1472 1473/** 1474 * security_port_sid - Obtain the SID for a port. | 1/* 2 * Implementation of the security services. 3 * 4 * Authors : Stephen Smalley, <sds@epoch.ncsc.mil> 5 * James Morris <jmorris@redhat.com> 6 * 7 * Updated: Trusted Computer Solutions, Inc. <dgoeddel@trustedcs.com> 8 * --- 1458 unchanged lines hidden (view full) --- 1467 sidtab_destroy(&newsidtab); 1468 policydb_destroy(&newpolicydb); 1469 return rc; 1470 1471} 1472 1473/** 1474 * security_port_sid - Obtain the SID for a port. |
1475 * @domain: communication domain aka address family 1476 * @type: socket type | |
1477 * @protocol: protocol number 1478 * @port: port number 1479 * @out_sid: security identifier 1480 */ | 1475 * @protocol: protocol number 1476 * @port: port number 1477 * @out_sid: security identifier 1478 */ |
1481int security_port_sid(u16 domain, 1482 u16 type, 1483 u8 protocol, 1484 u16 port, 1485 u32 *out_sid) | 1479int security_port_sid(u8 protocol, u16 port, u32 *out_sid) |
1486{ 1487 struct ocontext *c; 1488 int rc = 0; 1489 1490 POLICY_RDLOCK; 1491 1492 c = policydb.ocontexts[OCON_PORT]; 1493 while (c) { --- 1203 unchanged lines hidden --- | 1480{ 1481 struct ocontext *c; 1482 int rc = 0; 1483 1484 POLICY_RDLOCK; 1485 1486 c = policydb.ocontexts[OCON_PORT]; 1487 while (c) { --- 1203 unchanged lines hidden --- |