summaryrefslogtreecommitdiff
path: root/src/basic/missing_network.h
Commit message (Collapse)AuthorAgeFilesLines
* sd-netlink: add NetLabel supportTopi Miettinen2022-08-291-0/+32
|
* Revert "networkd: NetLabel integration"Yu Watanabe2022-06-221-32/+0
| | | | | | | | | | | | | | This reverts PR #23269 and its follow-up commit. Especially, 2299b1cae32c1fb8911da0ce26efced68032f4f8 (partially), and 3cf63830acdef9d8afdc9ef1cf25aa7e85a5e4d5. The PR was merged without final approval, and has several issues: - The NetLabel for static addresses are not assigned, as labels are stored in the Address objects managed by Network, instead of Link. - If NetLabel is specified for a static address, then the address section will be invalid and the address will not be configured, - It should be implemented with Request object, - There is no test about the feature.
* networkd: NetLabel integrationTopi Miettinen2022-06-061-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New directive `NetLabel=` provides a method for integrating dynamic network configuration into Linux NetLabel subsystem rules, used by Linux security modules (LSMs) for network access control. The option expects a whitespace separated list of NetLabel labels. The labels must conform to lexical restrictions of LSM labels. When an interface is configured with IP addresses, the addresses and subnetwork masks will be appended to the NetLabel Fallback Peer Labeling rules. They will be removed when the interface is deconfigured. Failures to manage the labels will be ignored. Example: ``` [DHCP] NetLabel=system_u:object_r:localnet_peer_t:s0 ``` With the above rules for interface `eth0`, when the interface is configured with an IPv4 address of 10.0.0.0/8, `systemd-networkd` performs the equivalent of `netlabelctl` operation ``` $ sudo netlabelctl unlbl add interface eth0 address:10.0.0.0/8 label:system_u:object_r:localnet_peer_t:s0 ``` Result: ``` $ sudo netlabelctl -p unlbl list ... interface: eth0 address: 10.0.0.0/8 label: "system_u:object_r:localnet_peer_t:s0" ... ```
* sd-netlink, wifi-util: fix attribute type of NL80211_ATTR_SSIDYu Watanabe2021-09-291-0/+5
|
* sd-netlink: support more rtnl attributesYu Watanabe2021-08-311-0/+10
|
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* tree-wide: add helper for IPv4/IPv6 sockoptsLennart Poettering2020-09-111-0/+5
| | | | | | | | | | A variety of sockopts exist both for IPv4 and IPv6 but require a different pair of sockopt level/option number. Let's add helpers for these that internally determine the right sockopt to call. This should shorten code that generically wants to support both ipv4 + ipv6 and for the first time adds correct support for some cases where we only called the ipv4 versions, and not the ipv6 options.
* tree-wide: drop several missing_*.h and import relevant headers from kernel-5.0Yu Watanabe2019-04-111-140/+4
|
* basic/missing: add more addr_assign_type valuesZbigniew Jędrzejewski-Szmek2019-01-211-0/+12
|
* missing: add ARPHRD_IP6GREYu Watanabe2018-12-071-0/+5
| | | | This fixes TYPE field of networkctl's output for ip6gre devices.
* missing: move one more network related definition to missing_network.hYu Watanabe2018-12-061-0/+6
|
* missing: move several network related entries to missing_network.hYu Watanabe2018-12-061-0/+14
|
* missing: split network related entriesYu Watanabe2018-12-031-0/+130
Also adds comments which kernel version added the entries. Closes #10553.