Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2019-03-13 | util: split out some stuff into a new file limits-util.[ch] | Lennart Poettering | 12 | -154/+175 | |
2019-03-13 | util: split out namespace related stuff into a new namespace-util.[ch] pair | Lennart Poettering | 17 | -166/+193 | |
Just some minor reorganiztion. | |||||
2019-03-13 | test: don't overwrite TESTDIR if already set | Frantisek Sumsal | 1 | -2/+7 | |
2019-03-13 | cryptsetup: add same-cpu-crypt and submit-from-crypt-cpus options | Yu Watanabe | 3 | -0/+40 | |
Closes #11946. | |||||
2019-03-13 | wait-online: use log_link_debug() or friends | Yu Watanabe | 3 | -32/+24 | |
2019-03-13 | network: move log_link_debug() or friends to log-link.h | Yu Watanabe | 3 | -24/+39 | |
2019-03-13 | man: update wait-online and RequiredForOnline= setting | Yu Watanabe | 2 | -12/+50 | |
2019-03-13 | wait-online: support $REQUIRED_OPER_STATE_FOR_ONLINE= in state file | Yu Watanabe | 5 | -70/+216 | |
This also make wait-online optionally take operstate in -i option, and adds '--operstate' option to wait-online which also takes operstate. Also, this contains huge refactoring for wait-online. | |||||
2019-03-13 | sd-network: add sd_network_link_get_required_operstate_for_online() | Yu Watanabe | 2 | -0/+22 | |
It reads $REQUIRED_OPER_STATE_FOR_ONLINE in serialized link data. | |||||
2019-03-13 | network: make RequiredForOnline= also take operational state | Yu Watanabe | 4 | -1/+50 | |
This will be used by systemd-networkd-wait-online. | |||||
2019-03-13 | hashmap: add hashmap_free_free_keyp and friend | Yu Watanabe | 1 | -0/+2 | |
2019-03-13 | network: introduce 'degraded-carrier' operstate to order all states | Yu Watanabe | 6 | -18/+24 | |
Previously, 'degraded' state is ambiguous for bonding or bridge master: 1. one or more slave interfaces does not have carrier, 2. no link local address is assigned to the master, 3. combination of the above two. This makes the above case 1 and 3 are in the new 'degraded-carrier' state, and makes 'degraded' state as all slaves are active but no link local address on master. | |||||
2019-03-13 | network: move LinkOperationalState and relevant functions to network-util.[ch] | Yu Watanabe | 4 | -27/+31 | |
2019-03-13 | test-network: wait more and fix wrong operational state | Yu Watanabe | 1 | -2/+2 | |
Closes #11977. | |||||
2019-03-13 | test-network: add test for WireGuard.PrivateKeyFile= | Yu Watanabe | 4 | -2/+17 | |
2019-03-13 | wireguard: add PrivateKeyFile= option | Yu Watanabe | 5 | -2/+100 | |
Closes #11878. | |||||
2019-03-13 | wireguard: check whether PrivateKey= and PublicKey= are set | Yu Watanabe | 1 | -1/+21 | |
2019-03-13 | wireguard: drop unused arguments and rename parse_wireguard_key() | Yu Watanabe | 1 | -19/+19 | |
2019-03-13 | wireguard: do not log wireguard key | Yu Watanabe | 1 | -3/+4 | |
It may be PrivateKey=. | |||||
2019-03-13 | wireguard: reuse sd_event_source object | Yu Watanabe | 2 | -17/+9 | |
2019-03-13 | wireguard: use NetworkConfigSection to manage [WireGuardPeer] sections | Yu Watanabe | 2 | -164/+225 | |
This also contains huge refactoring of wireguard support. | |||||
2019-03-13 | test-network: add tests for invalid Address sections | Yu Watanabe | 2 | -0/+20 | |
2019-03-13 | test: make network_verify() public and use it in test-networkd-conf | Yu Watanabe | 3 | -4/+9 | |
2019-03-13 | network: drop sections contain invalid settings in network_verify() | Yu Watanabe | 18 | -73/+149 | |
If e.g., an [Address] section has an invalid setting, then previously assigned settings in the section is freed, and only later settings are stored. That may cause partially broken section stored in Network object. This makes if an invalid setting is found, then set 'invalid' flag instead of freeing it. And invalid sections are dropped later by network_verify(). | |||||
2019-03-13 | network: make all xxx_new_static() static | Yu Watanabe | 10 | -11/+6 | |
These functions are called from only config parsers, and the parsers are in the same files. So, let's make them static. | |||||
2019-03-13 | network: add IPv4LL route right after .network file is parsed | Yu Watanabe | 3 | -22/+34 | |
Previously, the route is added when the .network config is assigned to a Link. So, if multiple links match the .network file, the route entry becomes duplicated in the corresponding Network object. | |||||
2019-03-13 | network: move NetworkConfigSection and related functions to networkd-util.[ch] | Yu Watanabe | 4 | -46/+47 | |
2019-03-13 | network: use ltype to determine netdev kind in config_parse_stacked_netdev() | Yu Watanabe | 2 | -27/+10 | |
2019-03-13 | test: add a testcase for ProtectHome=tmpfs vs ProtectSystem=strict | Yu Watanabe | 3 | -0/+15 | |
2019-03-13 | core/namespace: logs mount mode when the entry is dropped | Yu Watanabe | 1 | -2/+23 | |
2019-03-13 | core/namespace: introduce new mount mode READWRITE_IMPLICIT | Yu Watanabe | 1 | -30/+32 | |
ProtectSystem=strict or ProtectKernelTunable=yes create implicit read-write mounts, but they are not overridable by TemporaryFileSystem=. This makes such implicit read-write mounts use the new mount mode. So, they can be override by TemproraryFileSystem= now. A typical usecase is that ProtectSystem=strict and ProtectHome=tmpfs. Fixes #11276. | |||||
2019-03-12 | update TODO | Lennart Poettering | 1 | -0/+3 | |
2019-03-12 | login: drop redundant newline | Lennart Poettering | 1 | -1/+0 | |
2019-03-12 | user-util: extra paranoia, make sure $SHELL can't be fucked with in suid ↵ | Lennart Poettering | 1 | -2/+2 | |
programs It's better to be safe than sorry, let's not allow overriding of the user shell in suid binaries. Similar for $USER. | |||||
2019-03-12 | execute: no need to synthesize $HOME for uid==0 again, get_home_dir() ↵ | Lennart Poettering | 1 | -6/+0 | |
already does that | |||||
2019-03-12 | execute: simplify paths we set as HOME/SHELL for invoked programs | Lennart Poettering | 1 | -0/+4 | |
2019-03-12 | user-util: simplify paths retrieved from $HOME and $SHELL | Lennart Poettering | 1 | -4/+4 | |
Let's add some extra paranoia, after #11910 | |||||
2019-03-12 | user-util: be more strict when reading $HOME and $SHELL | Lennart Poettering | 1 | -4/+6 | |
2019-03-12 | user-util: paranoia — add overflow check on ERANGE loop | Lennart Poettering | 1 | -0/+6 | |
2019-03-12 | user-util: use SYNTHETIC_ERRNO() where we can | Lennart Poettering | 1 | -28/+18 | |
2019-03-12 | path-util: minimize variable scope | Lennart Poettering | 1 | -1/+3 | |
2019-03-12 | path-util: check validity before normalization in path_simplify_and_warn() | Lennart Poettering | 1 | -6/+6 | |
As the normalization check includes a validation check the order matters. | |||||
2019-03-12 | user-util: filter out invalid user record data a bit more thorougly | Lennart Poettering | 1 | -3/+10 | |
2019-03-12 | logind: normalize home path when creating user object | Lennart Poettering | 1 | -0/+2 | |
Triggered by: #11910 | |||||
2019-03-12 | meson: scope more git invocations with current_source_dir() | Davide Cavalca | 3 | -19/+23 | |
2019-03-12 | po: update French translation | Sylvain Plantefève | 1 | -7/+30 | |
2019-03-12 | shared/bootspec: avoid going through -1 when calculating array index | Zbigniew Jędrzejewski-Szmek | 1 | -6/+8 | |
Coverity was complaining in CID#1399407 that config->entries might be used while NULL. Let's add an assert to make sure it's not. Also, let's quit early if we have no entries to loop through. The code was not incorrect, but it's cleaner to avoid any negative indices. | |||||
2019-03-12 | boot: avoid 32-bit calculation for a 64-bit lvalue | Zbigniew Jędrzejewski-Szmek | 2 | -1/+8 | |
Coverity CID#1399116: > Potentially overflowing expression > gpt_header_buffer.gpt_header.SizeOfPartitionEntry * gpt_header_buffer.gpt_header.NumberOfPartitionEntries > with type unsigned int (32 bits, unsigned) is evaluated using 32-bit > arithmetic, and then used in a context that expects an expression of type > UINTN (64 bits, unsigned). Let's import the ALIGN_TO macro to sd-boot and use it to avoid the issue. | |||||
2019-03-12 | fuzz: add a fuzzer for time utils | Frantisek Sumsal | 2 | -0/+32 | |
2019-03-12 | fuzz: add a fuzzer for calendarspec | Frantisek Sumsal | 2 | -0/+28 | |