Maybe fix MacOS X build.
s6_addr32 is not portable; use s6_addr instead. Change-Id: I21c237588d3e7200cefa3af96065f657dae4b1e7 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
This commit is contained in:
parent
ee7bea53d7
commit
00beeba1fc
1 changed files with 2 additions and 2 deletions
|
@ -2806,8 +2806,8 @@ int cil_nodecon_to_policydb(policydb_t *pdb, struct cil_sort *nodecons)
|
|||
new_ocon->u.node.mask = cil_nodecon->mask->ip.v4.s_addr;
|
||||
} else if (cil_nodecon->addr->family == AF_INET6) {
|
||||
new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NODE6], &tail6);
|
||||
memcpy(new_ocon->u.node6.addr, &cil_nodecon->addr->ip.v6.s6_addr32[0], 16);
|
||||
memcpy(new_ocon->u.node6.mask, &cil_nodecon->mask->ip.v6.s6_addr32[0], 16);
|
||||
memcpy(new_ocon->u.node6.addr, &cil_nodecon->addr->ip.v6.s6_addr[0], 16);
|
||||
memcpy(new_ocon->u.node6.mask, &cil_nodecon->mask->ip.v6.s6_addr[0], 16);
|
||||
} else {
|
||||
/* should not get here */
|
||||
rc = SEPOL_ERR;
|
||||
|
|
Loading…
Reference in a new issue