Systemd/src
Franck Bui 03b8cfede9 core: make sure to init mount params before calling mount_is_extrinsic() (#5087)
When a new entry appears in /proc/self/mountinfo, mount_setup_unit()
allocated a new mount unit for it and starts initializing it.

mount_setup_unit() is also used to update a mount unit when a change happens in
/proc/self/mountinfo, for example a mountpoint can be remounted with additional
mount options.

This patch introduces 2 separate functions to deal with those 2 cases instead
of mount_setup_unit() dealing with both of them. The common code is small and
doing the split makes the code easier to read and less error prone if extended
later.

It also makes sure to initialize in both functions the mount parameters of the
mount unit before calling mount_is_extrinsic() since this function relies on
them.

Fixes: #4902
2017-01-16 15:19:13 -05:00
..
ac-power
activate tree-wide: set SA_RESTART for signal handlers we install 2016-12-01 12:41:17 +01:00
analyze analyze: fix build without seccomp 2016-11-10 10:12:31 +01:00
ask-password
backlight tree-wide: drop NULL sentinel from strjoin 2016-10-23 11:43:27 -04:00
basic process-util: rename char *r to ans and add comment 2017-01-15 12:41:34 -05:00
binfmt
boot bootctl: fix typo (#4897) 2016-12-16 15:41:31 +01:00
cgls tree-wide: drop NULL sentinel from strjoin 2016-10-23 11:43:27 -04:00
cgroups-agent
cgtop tree-wide: drop NULL sentinel from strjoin 2016-10-23 11:43:27 -04:00
core core: make sure to init mount params before calling mount_is_extrinsic() (#5087) 2017-01-16 15:19:13 -05:00
coredump coredumpctl: let gdb handle the SIGINT signal (#4901) 2016-12-17 09:49:17 -05:00
cryptsetup cryptsetup: fix unitialized variable 2017-01-15 11:52:53 -05:00
dbus1-generator
debug-generator util-lib: various improvements to kernel command line parsing 2016-12-21 19:09:08 +01:00
delta tree-wide: replace all readdir cycles with FOREACH_DIRENT{,_ALL} (#4853) 2016-12-09 10:04:30 +01:00
detect-virt detect-virt: add --private-users switch to check if a userns is active 2016-10-26 20:12:51 -04:00
dissect dissect: make using a generic partition as root partition optional 2016-12-21 19:09:30 +01:00
escape tree-wide: drop NULL sentinel from strjoin 2016-10-23 11:43:27 -04:00
firstboot util-lib: various improvements to kernel command line parsing 2016-12-21 19:09:08 +01:00
fsck util-lib: various improvements to kernel command line parsing 2016-12-21 19:09:08 +01:00
fstab-generator verity: add support for setting up verity-protected root disks in the initrd 2016-12-21 19:09:30 +01:00
getty-generator
gpt-auto-generator Merge pull request #4879 from poettering/systemd 2017-01-14 21:29:27 -05:00
hibernate-resume util-lib: various improvements to kernel command line parsing 2016-12-21 19:09:08 +01:00
hostname networkd: allow networkd to set the timezone in timedated 2016-11-23 16:32:06 +01:00
hwdb hwdb: emit warning when matches are specified at the very end of file 2016-12-11 18:01:26 -05:00
import importd: automatically download .roothash in addition to .nspawn for raw downloads 2016-12-21 19:09:31 +01:00
initctl Rename formats-util.h to format-util.h 2016-11-07 10:15:08 -05:00
journal journalctl: fix memleak 2017-01-15 12:39:15 -05:00
journal-remote journal-gatewayd: align closing braces (#5060) 2017-01-11 10:50:58 +01:00
kernel-install kernel-install: avoid process substitution 2017-01-11 15:34:54 -05:00
libsystemd Add sd_is_socket_sockaddr (#4885) 2016-12-14 11:51:26 +01:00
libsystemd-network ndisc: ignore invalid SLAAC prefix lengths (#4923) 2016-12-20 20:27:06 +01:00
libudev libudev-util: change util_replace_whitespace to return number of chars in dest 2017-01-03 17:09:46 -05:00
locale tree-wide: drop NULL sentinel from strjoin 2016-10-23 11:43:27 -04:00
login build-sys: add check for gperf lookup function signature (#5055) 2017-01-10 08:39:05 +01:00
machine Merge pull request #4879 from poettering/systemd 2017-01-14 21:29:27 -05:00
machine-id-setup machine-id-setup: --print --commit respects the --root option 2016-12-13 13:03:13 +00:00
modules-load util-lib: various improvements to kernel command line parsing 2016-12-21 19:09:08 +01:00
mount tree-wide: drop NULL sentinel from strjoin 2016-10-23 11:43:27 -04:00
network ndisc: honor IPv6AcceptRA.UseDNS when parsing RA options (#5071) 2017-01-16 12:23:26 -05:00
notify Rename formats-util.h to format-util.h 2016-11-07 10:15:08 -05:00
nspawn nspawn: fix memleak 2017-01-15 16:57:57 -05:00
nss-myhostname treewide: fix typos and remove accidental repetition of words 2016-07-11 16:18:43 +02:00
nss-mymachines nss: when we encounter an invalid user/group name or UID/GID, don't return EINVAL 2016-12-27 18:09:58 +01:00
nss-resolve nss-resolve: be a bit more careful with returning NSS_STATUS_NOTFOUND 2016-10-24 19:04:43 +02:00
nss-systemd nss: when we encounter an invalid user/group name or UID/GID, don't return EINVAL 2016-12-27 18:09:58 +01:00
path
quotacheck qutoacheck,gpt-auto-generator: trivial coding style improvements 2016-12-21 19:09:28 +01:00
random-seed
rc-local-generator tree-wide: drop NULL sentinel from strjoin 2016-10-23 11:43:27 -04:00
remount-fs tree-wide: always invoke setmntent() with "re" mode 2016-12-20 20:00:09 +01:00
reply-password
resolve build-sys: add check for gperf lookup function signature (#5055) 2017-01-10 08:39:05 +01:00
rfkill tree-wide: drop NULL sentinel from strjoin 2016-10-23 11:43:27 -04:00
run Rename formats-util.h to format-util.h 2016-11-07 10:15:08 -05:00
shared shared/install-printf: fix memleak 2017-01-15 13:42:53 -05:00
sleep
socket-proxy socket-proxyd: fix --connections-max help message and docs (#5044) 2017-01-10 08:55:50 +01:00
stdio-bridge
sysctl sysctl: minor simplification 2016-11-02 11:39:48 -06:00
system-update-generator Use SPECIAL_DEFAULT_TARGET consistently 2016-12-17 17:26:59 -05:00
systemctl systemctl: fix alignment with units in not-found state 2017-01-15 13:38:43 -05:00
systemd Add sd_is_socket_sockaddr (#4885) 2016-12-14 11:51:26 +01:00
sysusers Rename formats-util.h to format-util.h 2016-11-07 10:15:08 -05:00
sysv-generator sysv-generator: properly translate sysv facilities 2016-12-14 18:29:30 +01:00
test Merge pull request #4879 from poettering/systemd 2017-01-14 21:29:27 -05:00
timedate Add enable_disable() helper 2016-07-31 22:48:22 -04:00
timesync build-sys: add check for gperf lookup function signature (#5055) 2017-01-10 08:39:05 +01:00
tmpfiles tmpfiles: improve error message for chown()/chmod() failures (#4969) 2016-12-29 11:00:55 +01:00
tty-ask-password-agent core: when determining whether a process exit status is clean, consider whether it is a command or a daemon 2016-10-10 22:57:01 +02:00
udev udev: fix variable assignment 2017-01-15 11:52:53 -05:00
update-done update-done: minor clean-ups 2016-10-24 17:29:51 +02:00
update-utmp Rename formats-util.h to format-util.h 2016-11-07 10:15:08 -05:00
user-sessions
vconsole Merge pull request #4448 from msoltyspl/vcfix 2016-10-26 20:55:18 -04:00
veritysetup verity: add support for setting up verity-protected root disks in the initrd 2016-12-21 19:09:30 +01:00
volatile-root fstab-generator: add support for volatile boots 2016-12-21 19:09:29 +01:00
.gitignore
Makefile