Yu Watanabe
6e222ac9d9
gitignore: add nspawn image lock and mkosi temporary files
2018-09-07 20:00:22 +02:00
Yu Watanabe
e8596ca5c4
backlight: do not unref parent device
...
Fixes double-free introduced by 9aadd28149 .
2018-09-07 20:00:01 +02:00
Yu Watanabe
3457a7a939
Merge pull request #10009 from evverx/rework-journald-fuzzers
...
Add a fuzzer for server_process_native_message
2018-09-05 11:46:17 +09:00
Yu Watanabe
53253d9c54
sd-dhcp6: set requested time for DUID-LLT
...
Follow-up for 7e90a499ab .
2018-09-04 13:07:37 -07:00
Yu Watanabe
339697f081
sd-dhcp: drop meaningless checking
...
mac_addr is not dynamically allocated.
Fixes CID 1395162 and 1395164.
2018-09-04 13:07:37 -07:00
Yu Watanabe
e03b9f2a3b
Merge pull request #9919 from keszybz/more-sd-bus-doc
...
Some more sd-bus docs
2018-09-03 21:44:30 +09:00
Yu Watanabe
7dd05e9472
network: drop an unused variable
...
Follow-up for 53cb501a13 .
2018-09-03 14:08:30 +02:00
Yu Watanabe
0de4876496
core/socket: fix memleak in the error paths in usbffs_dispatch_eps()
2018-09-03 14:25:08 +09:00
Yu Watanabe
f069ebfadd
TODO: drop duplicated entry
2018-09-03 14:21:13 +09:00
Yu Watanabe
645461f0cf
cryptsetup: do not define arg_sector_size if libgcrypt is v1.x ( #9990 )
...
Follow-up for #9936 .
2018-09-01 23:47:46 +09:00
Yu Watanabe
0c09cb0e78
Merge pull request #9977 from sourcejedi/no-remount-superblock3
...
Namespace fixes
2018-09-01 23:18:01 +09:00
Yu Watanabe
7a3c343cb8
tree-wide: use '#pragma once' for header guard
...
Follow-up for a2b635eb39 (#9959 ).
2018-08-30 06:10:43 +03:00
Yu Watanabe
efa1463693
test: fix a memleak
...
Follow-up for #9901 .
Fixes #9968 .
2018-08-29 17:45:37 +02:00
Yu Watanabe
a2b635eb39
sd-boot: fix header guard
...
Follow-up for a42d7cf165 .
2018-08-29 23:05:15 +09:00
Yu Watanabe
3343021755
dynamic-user: drop unnecessary initialization
2018-08-29 23:04:26 +09:00
Yu Watanabe
22ac37aa00
string-table: do not ignore 'scope' argument
2018-08-28 12:40:25 +09:00
Yu Watanabe
e094eb1188
Merge pull request #9950 from yuwata/macro-ref-unref
...
tree-wide: introduce macros to define *_ref() and *_unref() functions
2018-08-28 10:43:25 +09:00
Yu Watanabe
4005d3215e
sd-device: sd_device_enumerator_get_subsystem_next() requests the device list is uptodate
2018-08-28 05:09:40 +09:00
Yu Watanabe
6116d2b275
sd-device: use structured initializers
2018-08-28 05:09:40 +09:00
Yu Watanabe
1c71f7f329
libsystemd: use DEFINE_ATOMIC_REF_UNREF_FUNC or frineds where applicable
2018-08-28 05:09:40 +09:00
Yu Watanabe
1d3044e275
refcnt: introduce DEFINE_ATOMIC_REF_UNREF_FUNC() macro and friends
2018-08-28 05:09:40 +09:00
Yu Watanabe
6b6e07415c
sd-netlink: fix indentation
2018-08-28 05:09:40 +09:00
Yu Watanabe
61e21d4ca1
sd-hwdb: drop unused variable
2018-08-28 05:09:40 +09:00
Yu Watanabe
288ca7af8c
dynamic-user: fix potential segfault
2018-08-28 05:09:00 +09:00
Yu Watanabe
8301aa0bf1
tree-wide: use DEFINE_TRIVIAL_REF_UNREF_FUNC() macro or friends where applicable
2018-08-27 14:01:46 +09:00
Yu Watanabe
a6a08596ef
macro: introduce DEFINE_TRIVIAL_REF_UNREF_FUNC() macro and friends
2018-08-27 14:01:27 +09:00
Yu Watanabe
cf4b2f9906
tree-wide: use unsigned for refcount
2018-08-27 13:48:04 +09:00
Yu Watanabe
56663345df
po: update Japanese translation
2018-08-24 16:53:50 +02:00
Yu Watanabe
7ecc4799a9
dissect: rescan devices before creating partition list ( #9930 )
...
Fixes #9924 which is caused by 3c1f2cee0a .
2018-08-24 22:34:13 +09:00
Yu Watanabe
593a5213ce
Merge pull request #9917 from keszybz/cleanups
...
Some unrelated fixups for recent PRs
2018-08-24 10:43:41 +09:00
Yu Watanabe
152d0efa2b
udev: move udev cleanup functions from udev-util.h to udev.h
2018-08-23 04:57:39 +09:00
Yu Watanabe
05becb11e8
udev-util: drop unused function udev_device_new_from_stat_rdev()
2018-08-23 04:57:39 +09:00
Yu Watanabe
e156d24b0a
login/sysfs-show: replace udev_device by sd_device
2018-08-23 04:57:39 +09:00
Yu Watanabe
4f209af7da
logind: replace udev_device by sd_device
2018-08-23 04:57:39 +09:00
Yu Watanabe
4366e598ae
core: replace udev_device by sd_device
2018-08-23 04:57:39 +09:00
Yu Watanabe
6bcf00eda3
core/umount: replace udev_device by sd_device
2018-08-23 04:57:39 +09:00
Yu Watanabe
21384b8129
rfkill: replace udev_device by sd_device
2018-08-23 04:57:39 +09:00
Yu Watanabe
51517f9e09
network: replace udev_device by sd_device
2018-08-23 04:57:39 +09:00
Yu Watanabe
f55b0d3fd6
nspawn: replace udev_device by sd_device
2018-08-23 04:57:39 +09:00
Yu Watanabe
8bebb09ce7
journal: replace udev_device by sd_device
2018-08-23 04:57:39 +09:00
Yu Watanabe
ad5944d71c
sd-device: introduce device_new_from_stat_rdev()
2018-08-23 04:57:39 +09:00
Yu Watanabe
3c1f2cee0a
dissect: replace udev_device by sd_device
2018-08-23 04:57:39 +09:00
Yu Watanabe
85624f018d
gpt-auto-generator: replace udev_device by sd_device
2018-08-23 04:57:39 +09:00
Yu Watanabe
dcd265239b
mount-tool: replace udev_device by sd_device
2018-08-23 04:57:39 +09:00
Yu Watanabe
9aadd28149
backlight: replace udev_device by sd_device
2018-08-23 04:57:39 +09:00
Yu Watanabe
3782454c41
libudev: introduce udev_monitor_receive_sd_device()
2018-08-23 04:57:39 +09:00
Yu Watanabe
7c7be5515f
libudev: move cleanup functions from udev-util.h to libudev-private.h
2018-08-23 04:57:39 +09:00
Yu Watanabe
3938f568a2
libudev: accept NULL as the argument 'struct udev*' for udev_monitor_new() or friends
...
As udev_monitor struct or friends are now almost independent of udev
struct. So, generating these objects without udev struct is reasonable.
2018-08-23 04:57:39 +09:00
Yu Watanabe
71d1700afa
selinux-util: drop unused variables
...
Follow-up for 7e531a5265 .
2018-08-22 16:32:35 +02:00
Yu Watanabe
d4ba369289
Merge pull request #9903 from yuwata/fuzzer-10007
...
Fixes issue 10007 by oss-fuzz
2018-08-22 22:25:38 +09:00
Yu Watanabe
a1a605f144
test: add testcase for issue 10007 by oss-fuzz
2018-08-22 15:46:47 +09:00
Yu Watanabe
8d30fcb9b5
util: do not use stack frame for parsing arbitrary inputs
...
This replaces strndupa() by strndup() in socket_address_parse(),
as input string may be too long.
Fixes issue 10007 by ClusterFuzz-External:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10007
2018-08-22 15:46:32 +09:00
Yu Watanabe
52e4d62550
Merge pull request #9852 from poettering/namespace-errno
...
namespace: be more careful when handling namespacing failures
2018-08-22 11:16:29 +09:00
Yu Watanabe
53c442ef63
util: improve comments why we ignore EACCES and EPERM
...
Follow-up for ef454fd193 (#9848 ).
2018-08-20 10:16:09 +02:00
Yu Watanabe
cb63114880
Merge pull request #9879 from evverx/get-rid-of-workaround
...
oss-fuzz.sh: just install the shared library
2018-08-18 00:11:58 +09:00
Yu Watanabe
9e5f34a639
Merge pull request #9863 from evverx/issues-found-by-journald-fuzzer
...
A few fixes for several issues uncovered with a home-brew fuzzer for journald
2018-08-13 20:57:25 +09:00
Yu Watanabe
7169cdc8b9
network: prohibit to set MTUBytes= and UseMTU= simultaneously
2018-08-13 16:14:56 +09:00
Yu Watanabe
55dc8c4a82
network: call link_acquire_conf() and link_enter_join_netdev() after MTU is set
...
Fixes #9831 .
2018-08-13 16:12:08 +09:00
Yu Watanabe
ee4931068e
network: do not re-set MTU when current and requested MTU are same
2018-08-13 15:23:31 +09:00
Yu Watanabe
72c2500b2a
network: drop redundant lines
...
Follow-up for 44b598a1c9 .
2018-08-13 15:23:31 +09:00
Yu Watanabe
3740146a4c
resolve: do not hit CNAME or DNAME entry in NODATA cache ( #9836 )
...
Fixes #9833 .
2018-08-13 14:32:33 +09:00
Yu Watanabe
4c3a2b84d8
core/execute: fix dump format for Limit*=
...
Fixes #9846 .
2018-08-10 11:59:16 +02:00
Yu Watanabe
8595102d3d
journal: do not remove multiple spaces after identifier in syslog message
...
Single space is used as separator.
C.f. discussions in #156 .
Fixes #9839 introduced by a6aadf4ae0 .
2018-08-10 10:31:29 +03:00
Yu Watanabe
ef454fd193
util: bind_remount_recursive_with_mountinfo(): ignore submounts which cannot be accessed
...
Fixes #9844 .
2018-08-10 14:30:55 +09:00
Yu Watanabe
763a260ae7
core/namespace: add more log messages
...
Suggested by #9835 .
2018-08-10 14:30:35 +09:00
Yu Watanabe
cf3872bd28
timedate: emit property changed signal after all jobs are completed
...
Follow-up for 3af0a96c0f (#9684 ).
2018-08-08 14:32:28 +02:00
Yu Watanabe
b2776a60f3
resolve: do not compress target names in SRV records
...
Fixes #9793 .
2018-08-08 12:24:32 +02:00
Yu Watanabe
a5ee33b951
syslog: fix segfault in syslog_parse_priority()
2018-08-08 18:27:15 +09:00
Yu Watanabe
b9b8874f8f
journal: fix size of buffer
2018-08-08 17:17:23 +09:00
Yu Watanabe
1f66559ca2
resolve: use memcmp_safe() and memcpy_safe()
...
As the length of salt in NSEC3 may be zero.
Fixes #9757 .
2018-08-08 17:11:56 +09:00
Yu Watanabe
f30faf854b
util: introduce memcmp_safe()
2018-08-08 17:11:50 +09:00
Yu Watanabe
7e8d494b33
core: use memcpy_safe()
...
Fixes #9738 .
2018-08-08 17:11:43 +09:00
Yu Watanabe
a6aadf4ae0
journal: fix syslog_parse_identifier()
...
Fixes #9829 .
2018-08-08 17:10:56 +09:00
Yu Watanabe
75f8d86eea
journal: do not use newa() or strjoina() for message
...
Fixes another issue reported in #9795 .
2018-08-08 17:10:21 +09:00
Yu Watanabe
7289c769fb
journal: do not hide options in help message
...
Even if built without gcrypt, show the relevant options in help message.
Otherwise, the help message diverges from the man page or suggestions
by the shell completion.
2018-08-08 15:29:18 +09:00
Yu Watanabe
652e39a378
bash-completion: journalctl: add --grep and --case-sensitive
2018-08-08 15:26:38 +09:00
Yu Watanabe
57019d5f75
journal: do not pass a negative value to memcpy()
...
The message may contains only whitespaces.
Fixes #9795 .
2018-08-08 12:40:47 +09:00
Yu Watanabe
8fa266c2a4
man: mention that DUIDType=link-layer-time or link-layer uses MAC address
2018-08-08 10:15:00 +09:00
Yu Watanabe
0cf7c3fd21
network: accept additional time-value after ':' when DUIDType=link-layer-time
2018-08-08 10:15:00 +09:00
Yu Watanabe
7e90a499ab
sd-dhcp: make time value for DUID-LLT configurable
2018-08-08 10:15:00 +09:00
Yu Watanabe
335f80a612
sd-dhcp: use MAC address when DUIDType=link-layer-time or link-layer but DUIDRawData= is not set
2018-08-08 10:15:00 +09:00
Yu Watanabe
f7708f3ffd
sd-dhcp: adjust log message
2018-08-08 10:15:00 +09:00
Yu Watanabe
9d7b8c66f5
sd-dhcp: adjust type of elements in duid
...
These values should be stored in network byte order.
2018-08-08 10:15:00 +09:00
Yu Watanabe
319b94bca7
man: mention that DUIDType=uuid uses the product UUID or machine-ID
2018-08-08 10:15:00 +09:00
Yu Watanabe
27dfc98275
network: request product UUID when DUIDType=uuid but DUIDRawData= is not set
...
Closes #9228 .
2018-08-08 10:15:00 +09:00
Yu Watanabe
fff1f40c9b
network: introduce dhcp4_set_client_identifier() to unify duplicated codes
2018-08-08 10:15:00 +09:00
Yu Watanabe
f24648a66c
network: move and rename link_duid()
2018-08-08 10:15:00 +09:00
Yu Watanabe
27eba50e76
sd-dhcp: use application specific machine ID when DUIDType=uuid but DUIDRawData= is not set
2018-08-08 10:15:00 +09:00
Yu Watanabe
21e627daa5
hostname: expose product UUID on bus
2018-08-08 10:15:00 +09:00
Yu Watanabe
ef6e83f02b
test: cast values in proper type to suppress warnings
...
Follow-up for #9789 .
2018-08-07 15:40:16 +02:00
Yu Watanabe
fc95c359f6
tree-wide: use returned value from log_*_errno()
2018-08-07 15:48:37 +09:00
Yu Watanabe
4ae25393f3
tree-wide: shorten error logging a bit
...
Continuation of 4027f96aa0 .
2018-08-07 10:14:33 +09:00
Yu Watanabe
906119c046
resolve: use _cleanup_ attribute
2018-08-07 10:13:44 +09:00
Yu Watanabe
354f62cf3c
machine: use free_and_replace() and TAKE_PTR()
2018-08-07 10:11:56 +09:00
Yu Watanabe
fb2367edd9
login: use free_and_replace() and TAKE_PTR()
2018-08-07 10:10:12 +09:00
Yu Watanabe
73e47c42ab
initctl: do not ignore errors in function
2018-08-07 10:06:49 +09:00
Yu Watanabe
eddb5037f1
analyze: set reverse_offset for containerized system
2018-08-06 22:21:05 +09:00
Yu Watanabe
79ecaae47d
analyze-plot: do not show the legend for security when --user is specified
...
systemd of user instance always does not have valid value of
TIMESTAMP_SECURITY_*.
2018-08-06 22:21:05 +09:00
Yu Watanabe
7bc740f480
core: add comments about timestamps stored in manager
2018-08-06 22:21:05 +09:00
Yu Watanabe
cc0eb780bd
analyze: use bus_map_all_properties()
2018-08-06 22:21:05 +09:00