Yu Watanabe
3249bf3125
man: logind: update reference
...
Fixes #7858 .
2018-01-16 00:03:33 +09:00
Yu Watanabe
bb6b922f9f
journal: coding style fix
...
This is originally pointed out by @cpsw.
2018-01-15 23:53:10 +09:00
Yu Watanabe
9c3b99feb8
network: fix indentation
...
Follow-up for 56a23cb40a .
2018-01-15 23:49:55 +09:00
Yu Watanabe
55a7c78b9d
networkd: remove unnecessary parentheses
...
Follow-up for 56a23cb40a .
2018-01-15 23:48:00 +09:00
Yu Watanabe
3e7e587d32
systemctl: comment that the verb 'check' is deprecated
2018-01-15 23:44:31 +09:00
Yu Watanabe
444c1915f9
timesync: use current uid when started as non-root user
...
Fixes #7883 .
2018-01-15 23:40:29 +09:00
Yu Watanabe
5a45fde547
test: free memory
...
Fixes #7882 .
2018-01-15 23:37:02 +09:00
Yu Watanabe
68c7139a4b
bash-completion: timedatectl: suggests hostname and machine name
2018-01-10 23:21:26 +09:00
Yu Watanabe
e352389a02
bash-completion: run: add missing options
2018-01-10 23:21:22 +09:00
Yu Watanabe
a953b31a8b
man: run: add missing option
2018-01-10 23:21:17 +09:00
Yu Watanabe
14aeb7ce7f
bash-completion: resolve: add missing options
2018-01-10 23:20:52 +09:00
Yu Watanabe
86b4188d5e
bash-completion: nspawn: add missing options
2018-01-10 23:20:45 +09:00
Yu Watanabe
4deb55036b
man: nspawn: add missing option
2018-01-10 23:20:20 +09:00
Yu Watanabe
51bcbb6030
bash-completion: detect-virt: add missing option
2018-01-10 23:19:20 +09:00
Yu Watanabe
82ebb6ba1f
bash-completion: cgls: suggests units
2018-01-10 23:19:00 +09:00
Yu Watanabe
7c3940f6ce
bash-completion: analyze: add missing options and verbs
2018-01-10 23:18:49 +09:00
Yu Watanabe
035dd8c0a3
bash-completion: systemctl: add missing options and verbs
2018-01-10 23:18:16 +09:00
Yu Watanabe
f568dcd101
bash-completion: networkctl: 'list' and 'lldp' can take links
2018-01-10 23:17:41 +09:00
Yu Watanabe
6d92077e39
bash-completion: machinectl: add missing options and verbs
2018-01-10 23:17:32 +09:00
Yu Watanabe
ee156e8d88
man: machinectl: fix typo
2018-01-10 23:17:00 +09:00
Yu Watanabe
fe56e4ba47
bash-completion: loginctl: add missing options and verbs
2018-01-10 23:16:41 +09:00
Yu Watanabe
f822279e62
bash-completion: localectl: add a missing option and verbs
2018-01-10 23:16:36 +09:00
Yu Watanabe
29e08b9e9e
bash-completion: kernel-install: update default path to kernel image
2018-01-10 23:16:29 +09:00
Yu Watanabe
41053e9bdf
bash-completion: journalctl add missing options
...
Also, this deprecates '--this-boot' option.
2018-01-10 23:16:14 +09:00
Yu Watanabe
afcb2246be
bash-completion: hostnamectl: add a missing option
2018-01-10 23:15:45 +09:00
Yu Watanabe
245c1e6802
bash-completion: coredumpctl: support more options
2018-01-10 23:15:21 +09:00
Yu Watanabe
cdb8ec2d37
bash-completion: busctl: support more options and verbs
2018-01-10 23:11:00 +09:00
Yu Watanabe
92360836a0
bash-completion: bootctl: support more options and verbs
2018-01-10 23:10:19 +09:00
Yu Watanabe
f011fcfdec
timesync: fix typo
2018-01-10 20:52:59 +09:00
Yu Watanabe
0a664f1b15
exec-util: cast to void when return value is ignored
...
CID 1384262.
2018-01-10 20:52:55 +09:00
Yu Watanabe
78e2f089fd
test: free after use
...
CID 1384238.
2018-01-10 20:52:51 +09:00
Yu Watanabe
a41f6217ba
process-util: initialize block_signals
...
CID 1384240.
2018-01-10 20:52:46 +09:00
Yu Watanabe
2e1ec12ec3
sd-device: support the case that /sys is a symlink
...
When /sys is a symlink to the sysfs mountpoint, e.g. /path/to/sysfs.
Then, device->syspath was set to like /path/to/sysfs/devices/foo/baz.
This converts the path to /sys/devices/foo/baz.
Fixes #7676 .
2018-01-08 01:36:08 +09:00
Yu Watanabe
5bbe8eab34
sd-device: use chase_symlinks()
2018-01-08 01:35:44 +09:00
Yu Watanabe
4657abb5d4
execute: make "runtime" argument const in exec_needs_mount_namespace()
...
The argument can be const, then let's make so.
2018-01-04 00:48:18 +09:00
Yu Watanabe
b43ee82fc1
core: RuntimeDirectory= does not request new mount namespace
...
Now RuntimeDirectory= does not create 'private' directory.
Thus, it is not neccessary to request new mount namespace.
Follow-up for 8092a48cc1 .
2018-01-04 00:26:35 +09:00
Yu Watanabe
42b1d8e0f5
Revert "core/execute: RuntimeDirectory= or friends requires mount namespace"
...
This reverts commit 652bb2637a .
Fixes #7761 .
2018-01-04 00:26:11 +09:00
Yu Watanabe
681ae88e06
dbus-cgroup: simplify bus_cgroup_set_property()
2018-01-03 02:33:16 +09:00
Yu Watanabe
fffbc1dc7f
dbus-cgroup: add missing space
2018-01-03 02:33:06 +09:00
Yu Watanabe
c0d64e0e3d
doc: update TRANSIENT-SETTINGS.md
2018-01-03 02:32:54 +09:00
Yu Watanabe
3d63c7495a
bus-unit-util: support more options set to transient unit
2018-01-03 02:32:46 +09:00
Yu Watanabe
0cf6628e54
bus-unit-util: use struct __useless_struct_to_allow_trailing_semicolon__ in DEFINE_BUS_APPEND_PARSE{,_PTR} macro
2018-01-03 02:32:36 +09:00
Yu Watanabe
f76e92af1c
dbus-path: add Paths= option to set path specs in transient path unit
2018-01-03 02:32:30 +09:00
Yu Watanabe
dea700bffd
dbus-service: expose *ExitStatus= settings on bus
2018-01-03 02:32:10 +09:00
Yu Watanabe
d2f056176c
dbus-service: support more options in transient service unit
2018-01-02 02:25:13 +09:00
Yu Watanabe
8c3fd5ebdd
dbus-socket: simplify bus_socket_set_transient_property()
2018-01-02 02:25:04 +09:00
Yu Watanabe
7e2a3fcc8b
dbus-execute: simplify bus_exec_context_set_transient_property()
2018-01-02 02:24:00 +09:00
Yu Watanabe
237f7bcbb7
core: rename bus_exec_command_set_transient_property() to bus_set_transient_exec_command()
2018-01-02 02:23:56 +09:00
Yu Watanabe
faa781cfcb
dbus-unit: support more options in transient units
2018-01-02 02:23:52 +09:00
Yu Watanabe
c075f5fcf8
core: rename dbus property StartLimitIntervalSec= to StartLimitIntervalUSec=
...
StartLimitIntervalSec= and DefaultStartLimitIntervalSec= are the
last options whose suffix is 'Sec' instead of 'USec'.
All the other option has suffix 'USec'. So, let's rename them.
2018-01-02 02:23:49 +09:00
Yu Watanabe
83606b73f6
nsflags: add namespace_flag_to_string_many_with_check()
...
The function will be used in later commits.
2018-01-02 02:23:43 +09:00
Yu Watanabe
3e3c5a4571
dbus-timer: add TimersMonotonic= and TimersCalendar= to set timer in transient timer unit
...
This also obsoletes OnActiveSec= or their friends
2018-01-02 02:23:41 +09:00
Yu Watanabe
0fb0fffa09
dbus-scope: simplify bus_scope_set_transient_property()
2018-01-02 02:23:38 +09:00
Yu Watanabe
886295990b
dbus-kill: simplify bus_kill_context_set_transient_property()
2018-01-02 02:23:36 +09:00
Yu Watanabe
b3f1d5400b
dbus-mount: support more options in transient mount unit
2018-01-02 02:23:32 +09:00
Yu Watanabe
8700fb854d
dbus-automount: support more options in transient automount unit
2018-01-02 02:23:30 +09:00
Yu Watanabe
d8f37c89a2
condition: introduce condition_takes_path()
...
The function will be used in later commits.
2018-01-02 02:23:26 +09:00
Yu Watanabe
33d12153da
basic: introduce *_to_string_with_check() functions
...
They are used in later commits.
2018-01-02 02:23:24 +09:00
Yu Watanabe
6f90844fe2
socket-util: introduce parse_socket_address_bind_ipv6_only_or_bool()
2018-01-02 02:23:21 +09:00
Yu Watanabe
8ab3934766
load-fragment: obsolete OnFailureIsolate=
2018-01-02 02:23:17 +09:00
Yu Watanabe
03c791aa24
namespace: introduce parse_protect_system()_or_bool
2018-01-02 02:23:13 +09:00
Yu Watanabe
5e1c61544c
namespace: introduce parse_protect_home_or_bool()
2018-01-02 02:23:05 +09:00
Yu Watanabe
77019691cf
core: add dbus-util.[ch] to simplify creating transient units
...
The functions and macros introduced by them will be used in later commits.
2018-01-02 02:22:36 +09:00
Yu Watanabe
5543b2b2c9
Merge pull request #7745 from poettering/sockaddr-size
...
mostly systemd-analyze fixes
2017-12-29 23:13:53 +09:00
Yu Watanabe
e73b1eb2fa
man: remove empty paragraph
2017-12-29 16:55:31 +09:00
Yu Watanabe
95f7f85d39
Merge pull request #7728 from poettering/fork-rework
...
some fork() reworking
2017-12-27 01:32:46 +09:00
Yu Watanabe
3529295d2b
Merge pull request #7735 from poettering/rc-local-fix
...
rc-local documentation
2017-12-27 01:31:22 +09:00
Yu Watanabe
263195c6dd
bootspec: drop ".conf" from BootEntry.filename
...
The boot loader systemd-boot removes ".conf" from file name of entry
configs, and determine which entry is the default entry.
However, bootspec, which is used by systemctl and bootctl did not
remove ".conf", then sometimes bootctl marks wrong entry as default.
This fixes the logic to choose the default entry in bootspec, to
match the logic used in systemd-boot boot loader.
Fixes #7727 .
2017-12-26 12:12:36 +01:00
Yu Watanabe
977f65f01d
sd-boot, udev: trivial condition simplifications
...
Reported and proposed by @dcb314.
Fixes #7656 and #7657 .
2017-12-25 19:45:40 +01:00
Yu Watanabe
0e50bfaefd
meson: define _GNU_SOURCE to detect copy_file_range() ( #7734 )
...
Follow-up for bad7a0c81f501fbbcc79af9eaa4b8254441c4a1f of git
repository for glibc.
Recently glibc added `copy_file_range()`, but to use it,
`_GNU_SOURCE` needs to be defined. This adds the flag in
meson.build to detect the function by meson correctly.
2017-12-25 11:42:42 +01:00
Yu Watanabe
533f8a6771
load-fragment: simplify list insertion logic
...
LIST_FIND_TAIL and LIST_INSERT_AFTER can work for empty list.
2017-12-23 19:32:46 +09:00
Yu Watanabe
32048f5414
cgroup: IODeviceWeight= or friends can take device node files in /run/systemd/inaccessible/
...
systemd creates several device nodes in /run/systemd/inaccessible/.
This makes CGroup's settings related to IO can take device node
files in the directory.
2017-12-23 19:32:42 +09:00
Yu Watanabe
845001221d
core/socket: shorten socket_fdname()
2017-12-23 19:32:40 +09:00
Yu Watanabe
827d9bf297
core/socket: dump more settings
2017-12-23 19:32:38 +09:00
Yu Watanabe
13ec20d42a
dbus-cgroup: merge several blocks which operate almost same tasks
2017-12-23 19:32:36 +09:00
Yu Watanabe
d6ff82d37c
dbus-execute: use empty_to_null() where it can be applicable
2017-12-23 19:32:34 +09:00
Yu Watanabe
f50ab33faf
doc: add {Condition,Assert}ControlGroupController= to TRANSIENT-SETTINGS.md
...
Follow-up for e16647c39d .
2017-12-23 19:32:31 +09:00
Yu Watanabe
d9f7305fd7
cgroup: move path checking logic to dbus-cgroup.c
2017-12-23 19:32:29 +09:00
Yu Watanabe
62b749a981
bus-unit-util: simplify bus_append_cgroup_property()
2017-12-23 19:32:27 +09:00
Yu Watanabe
eae194a51b
bus-unit-util: make dependency settings can take multiple units
...
This allows people to specify multiple units in dependency settings
e.g. `Requires=foo.service baz.service`.
2017-12-23 19:32:25 +09:00
Yu Watanabe
b48e508db3
dbus-socket: move truncation check to bus_socket_set_transient_property()
2017-12-23 19:32:23 +09:00
Yu Watanabe
e045e325df
basic: introduce socket_protocol_{from,to}_name()
...
And use them where they can be applicable.
2017-12-23 19:32:04 +09:00
Yu Watanabe
8a211c8edb
doc: update TRANSIENT-SETTINGS.md
2017-12-23 18:48:35 +09:00
Yu Watanabe
624dd00973
man: add explanation about transient path or socket units in systemd-run
2017-12-23 18:48:31 +09:00
Yu Watanabe
d59ef3e243
run: add support to create transient path and socket unit
2017-12-23 18:48:27 +09:00
Yu Watanabe
89ada3ba08
bus-unit-util: add socket unit related options
...
Also, split bus_append_unit_property_assignment().
2017-12-23 18:48:16 +09:00
Yu Watanabe
9c0320e7ab
core: implement transient socket unit
2017-12-23 18:47:33 +09:00
Yu Watanabe
398ce0bc5a
socket-util: add socket_address_type_{from,to}_string()
2017-12-23 18:46:43 +09:00
Yu Watanabe
038ed5a4b6
core/socket: add socket_port_type_from_string()
2017-12-23 18:46:16 +09:00
Yu Watanabe
836bb1cd42
core:socket: fix string in socket_exec_command_table
2017-12-23 18:45:59 +09:00
Yu Watanabe
9ee896d5dd
core,seccomp: fix logic to parse RestrictAddressFamilies= in dbus-execute.c
...
If multiple RestrictAddressFamilies= settings, some of them are
whitelist and the others are blacklist, are sent to bus, then parsing
result was corrupted.
This fixes the parse logic, now it is the same as one used in
load-fragment.c
2017-12-23 18:45:52 +09:00
Yu Watanabe
898748d8b9
core,seccomp: fix logic to parse syscall filter in dbus-execute.c
...
If multiple SystemCallFilter= settings, some of them are whitelist
and the others are blacklist, are sent to bus, then the parse
result was corrupted.
This fixes the parse logic, now it is the same as one used in
load-fragment.c
2017-12-23 18:45:32 +09:00
Yu Watanabe
e1694a752f
networkd: show warning on error or cast to void when error is ignored ( #7716 )
2017-12-21 19:07:23 +01:00
Yu Watanabe
a51986154f
timedatectl: fix status output ( #7696 )
...
Follow-up for 3ec530a189 .
Fixes #7693 .
2017-12-19 11:15:50 +01:00
Yu Watanabe
5af1644314
man: note that systemctl show does not overridden value
...
Fixes #7694 .
2017-12-19 16:07:04 +09:00
Yu Watanabe
69b528832a
man: LockPersonality= implies NoNewPrivileges=
2017-12-19 12:48:54 +09:00
Yu Watanabe
e7bcff4ec4
core: move path_kill_slashes() to manager
2017-12-19 10:44:20 +09:00
Yu Watanabe
5976f1ca76
core: fix wrong validity check
2017-12-19 10:44:04 +09:00
Yu Watanabe
586290017d
tree-wide: use !strv_isempty() instead of strv_length() > 0
2017-12-19 10:43:57 +09:00
Yu Watanabe
69ec5decf0
TODO: update
2017-12-15 09:11:54 +09:00