MCPcopy Create free account
hub / github.com/F-Stack/f-stack / biba_set_effective

Function biba_set_effective

freebsd/security/mac_biba/mac_biba.c:448–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448static void
449biba_set_effective(struct mac_biba *mb, u_short type, u_short grade,
450 u_char *compartments)
451{
452
453 mb->mb_effective.mbe_type = type;
454 mb->mb_effective.mbe_grade = grade;
455 if (compartments != NULL)
456 memcpy(mb->mb_effective.mbe_compartments, compartments,
457 sizeof(mb->mb_effective.mbe_compartments));
458 mb->mb_flags |= MAC_BIBA_FLAG_EFFECTIVE;
459}
460
461static void
462biba_copy_range(struct mac_biba *labelfrom, struct mac_biba *labelto)

Callers 10

biba_cred_associate_nfsdFunction · 0.85
biba_cred_create_initFunction · 0.85
biba_cred_create_swapperFunction · 0.85
biba_devfs_create_deviceFunction · 0.85
biba_ifnet_createFunction · 0.85
biba_netinet_arp_sendFunction · 0.85
biba_netinet_igmp_sendFunction · 0.85
biba_netinet6_nd6_sendFunction · 0.85

Calls 1

memcpyFunction · 0.50

Tested by

no test coverage detected