summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: drop input.h when missing_input.h is includedYu Watanabe2019-11-043-3/+0
|
* tree-wide: drop stdio.h when stdio-util.h is includedYu Watanabe2019-11-0425-25/+0
|
* tree-wide: drop signal.h when signal-util.h is includedYu Watanabe2019-11-0417-17/+0
|
* tree-wide: drop mman.h when missing_mman.h is includedYu Watanabe2019-11-041-1/+0
|
* tree-wide: drop magic.h when missing_magic.h is includedYu Watanabe2019-11-042-2/+0
|
* tree-wide: drop stat.h or statfs.h when stat-util.h is includedYu Watanabe2019-11-0425-30/+0
|
* tree-wide: drop socket.h when socket-util.h is includedYu Watanabe2019-11-0428-28/+0
|
* tree-wide: drop mntent.h when fstab-util.h is includedYu Watanabe2019-11-042-2/+0
|
* tree-wide: drop libkmod.h when module-util.h is includedYu Watanabe2019-11-044-4/+0
|
* tree-wide: drop blkid.h when blkid-util.h is includedYu Watanabe2019-11-044-4/+0
|
* tree-wide: drop acl.h when acl-util.h is includedYu Watanabe2019-11-041-3/+0
|
* tree-wide: drop pwd.h and grp.h when user-util.h is includedYu Watanabe2019-11-0411-15/+0
|
* tree-wide: drop time.h when time-util.h is includedYu Watanabe2019-11-047-7/+0
|
* tree-wide: drop capability.h when capability-util.h is includedYu Watanabe2019-11-044-4/+0
|
* tree-wide: drop sched.h when missing_sched.h is includedYu Watanabe2019-11-043-3/+0
|
* tree-wide: drop gcrypt.h when gcrypt-util.h is includedYu Watanabe2019-11-043-6/+0
|
* tree-wide: drop locale.h when locale-util.h is includedYu Watanabe2019-11-047-7/+0
|
* tree-wide: drop glob.h when glob-util.h is includedYu Watanabe2019-11-045-5/+0
|
* tree-wide: drop dirent.h when dirent-util.h is includedYu Watanabe2019-11-0411-11/+0
|
* tree-wide: drop alloca.h when alloc-util.h is includedYu Watanabe2019-11-049-9/+0
|
* tree-wide: drop string.h when string-util.h or friends are includedYu Watanabe2019-11-04167-167/+0
|
* Merge pull request #13899 from poettering/in-gid-tweakYu Watanabe2019-11-032-16/+45
|\ | | | | user-util: tweak to in_gid()
| * test: add really basic in_gid() testLennart Poettering2019-10-311-0/+11
| |
| * user-util: tweak to in_gid()Lennart Poettering2019-10-311-16/+34
| | | | | | | | | | | | | | | | | | Let's make this robust towards parallel updates to group lists. This is not going to happen IRL, but it makes me sleep better at night: let's iterate a couple of times in case the list is updated while we are at it. Follow-up for: f5e0b942af1e86993c21f4e5c84342bb10403dac
* | Merge pull request #13909 from poettering/env-copy-pidYu Watanabe2019-11-034-16/+25
|\ \ | | | | | | Fixes for the "saved_env" copy logic
| * | static-destruct: add missing closing '(' in commentLennart Poettering2019-11-011-2/+2
| | |
| * | pid1: rework environment block copy logicLennart Poettering2019-11-013-14/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reworks the logic introduced in a5cede8c24fddda9b73f142e09b18b49adde1b9c (#13693). First of all, let's move this out of util.c, since only PID 1 really needs this, and there's no real need to have it in util.c. Then, fix freeing of the variable. It previously relied on STATIC_DESTRUCTOR_REGISTER() which however relies on static_destruct() to be called explicitly. Currently only the main-func.h macros do that, and PID 1 does not. (It might be worth investigating whether to do that, but it's not trivial.) Hence the freeing wasn't applied. Finally, an OOM check was missing, add it in.
* | | nspawn: respect quiet on capabilities warningJustin Trudell2019-11-031-1/+2
| | |
* | | fs-util: let's avoid unnecessary strerror()Lennart Poettering2019-11-031-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | strerror() is not thread safe. Let's avoid it where it is easy hence. (Ideally we'd not use it at all anymore, but that's sometimes a bit nasty, not in this case though, where it is very easy to avoid) Follow-up for: 27c3112dcbd1b5f171c36c32550d9c6331375b0b
* | | nspawn: mangle slice nameLennart Poettering2019-11-031-2/+7
| | | | | | | | | | | | | | | | | | It's user-facing, parsed from the command line and we typically mangle in these cases, let's do so here too. (In particular as the identical switch for systemd-run already does it.)
* | | cgroup: add missing OOM check, and shorten code a bitLennart Poettering2019-11-011-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cpu_set_to_range_string() can fail due to OOM. Handle that. unit_write_settingf() exists, use it instead of formatting a string beforehand. cpu_set_add_all() can fail due to OOM. Let's avoid it if we don't have to use it, just copy over the cpuset directly.
* | | cpuset: fix indentation and log about OOM we otherwise ignoreLennart Poettering2019-11-011-2/+4
| | |
* | | cgroup: add some basic OOM safety where it was missingLennart Poettering2019-11-011-5/+3
|/ /
* | Merge pull request #13888 from ssahani/qdiscYu Watanabe2019-11-014-12/+30
|\ \ | | | | | | tc qdisc: netem add support to duplicate packets.
| * | tc: qdisc remove some duplicate codeSusant Sahani2019-10-311-6/+13
| | |
| * | qdisc: netem add support to duplicate packets.Susant Sahani2019-10-313-6/+17
| | | | | | | | | | | | | | | using this option the chosen percent of packets is duplicated before queuing them
* | | network: DHCP server remove duplicate freeSusant Sahani2019-11-011-3/+1
| | |
* | | Fix CID 1406578: Resource leaks (RESOURCE_LEAK)Susant Sahani2019-10-311-2/+2
| |/ |/| | | | | | | ** CID 1406578: Resource leaks (RESOURCE_LEAK) /src/libsystemd-network/sd-dhcp-server.c: 155 in sd_dhcp_raw_option_new()
* | Merge pull request #13895 from jsynacek/masterAnita Zhang2019-10-311-1/+3
|\ \ | | | | | | sd-dhcp: fix resource leak
| * | sd-dhcp: fix resource leakJan Synacek2019-10-311-1/+3
| |/ | | | | | | CID#1406578
* | Merge pull request #13891 from yuwata/basic-drop-missingAnita Zhang2019-10-31109-152/+89
|\ \ | |/ |/| tree-wide: drop missing.h
| * tree-wide: drop missing.hYu Watanabe2019-10-31104-139/+74
| |
| * test: move {test,fuzz}-fido-id-desc.c into src/udev/fido_idYu Watanabe2019-10-315-13/+15
| |
* | Merge pull request #13510 from medhefgo/bootZbigniew Jędrzejewski-Szmek2019-10-313-31/+18
|\ \ | |/ |/| sd-boot: Be silent on regular boots
| * sd-boot: Silence compiler warning when building with -O2Jan Janssen2019-10-301-9/+5
| |
| * sd-boot: Don't loudly complain if RNG protocol isn't availableJan Janssen2019-10-301-21/+6
| | | | | | | | Fixes #13503
| * sd-boot: Only disable optimization on debug buildsJan Janssen2019-10-301-1/+7
| |
* | networkd: dhcp server Support Vendor specific 43Susant Sahani2019-10-319-8/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementes https://tools.ietf.org/html/rfc2132 ``` [DHCPServer] SendRawOption=26:uint32:1400 SendRawOption=23:uint8:10 ``` Frame 448: 350 bytes on wire (2800 bits), 350 bytes captured (2800 bits) on interface 0 Linux cooked capture Internet Protocol Version 4, Src: 192.168.5.1, Dst: 192.168.5.11 User Datagram Protocol, Src Port: 67, Dst Port: 68 Dynamic Host Configuration Protocol (ACK) Message type: Boot Reply (2) Hardware type: Ethernet (0x01) Hardware address length: 6 Hops: 0 Transaction ID: 0x71f8de9d Seconds elapsed: 0 Bootp flags: 0x0000 (Unicast) Client IP address: 0.0.0.0 Your (client) IP address: 192.168.5.11 Next server IP address: 0.0.0.0 Relay agent IP address: 0.0.0.0 Client MAC address: 1e:04:f8:b8:2f:d4 (1e:04:f8:b8:2f:d4) Client hardware address padding: 00000000000000000000 Server host name not given Boot file name not given Magic cookie: DHCP Option: (53) DHCP Message Type (ACK) Length: 1 DHCP: ACK (5) Option: (51) IP Address Lease Time Length: 4 IP Address Lease Time: (3600s) 1 hour Option: (1) Subnet Mask (255.255.255.0) Length: 4 Subnet Mask: 255.255.255.0 Option: (3) Router Length: 4 Router: 192.168.5.1 Option: (6) Domain Name Server Length: 4 Domain Name Server: 192.168.5.1 Option: (42) Network Time Protocol Servers Length: 4 Network Time Protocol Server: 192.168.5.1 Option: (101) TCode Length: 13 TZ TCode: Europe/Berlin Option: (43) Vendor-Specific Information Length: 9 Value: 1701311a0431343030 Option: (54) DHCP Server Identifier (192.168.5.1) Length: 4 DHCP Server Identifier: 192.168.5.1 Option: (255) End Option End: 255 ```
* | Merge pull request #13884 from poettering/event-fd-close-fixAnita Zhang2019-10-301-1/+3
|\ \ | | | | | | sd-event: don't invalidate source type on disconnect
| * | sd-event: don't invalidate source type on disconnectLennart Poettering2019-10-301-1/+3
| |/ | | | | | | This fixes fd closing if fd ownership is requested.