next up previous
Next: Netlink Up: Network Hooks Previous: Network Layer (IPv4)

Network Devices

Within the Linux network stack, hardware and software network devices are encapsulated by a net_device structure. LSM adds an security field to this structure so that security state information can be maintained on a per-device basis.

The security field for the net_device structure may be allocated during first-use initialization. A security field management hook is called when the device is being destroyed, allowing any allocated resources associated with the associated security field to be freed.

James Morris