* Relabel "to" to "from" only if "from" is a valid label (contains at least * a single), as for a relabel operation which may or may not involve a * relevant label. */
| 585 | * relevant label. |
| 586 | */ |
| 587 | static void |
| 588 | try_relabel(struct mac_lomac *from, struct mac_lomac *to) |
| 589 | { |
| 590 | |
| 591 | if (from->ml_flags & MAC_LOMAC_FLAG_SINGLE) { |
| 592 | bzero(to, sizeof(*to)); |
| 593 | lomac_copy(from, to); |
| 594 | } |
| 595 | } |
| 596 | |
| 597 | /* |
| 598 | * Policy module operations. |
no test coverage detected