summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* tmpfiles: fix memory leak of exclude_prefixesZbigniew Jędrzejewski-Szmek2014-01-30
| | | | Missed in 5c795114.
* shared: net - use u32ctz to compute prefixlenTom Gundersen2014-01-30
|
* util: add u32ctz() call for determining ctz of uint32_tLennart Poettering2014-01-30
|
* networkd: netdev - reduce chance of race when receiving netdev's ifindexTom Gundersen2014-01-30
| | | | | | | | | | | | | When creating a new link, the kernel will not inform us about the new ifindex in its ack. We have to listen for newly created devices and deduce the new ifindex by matching on the ifname. We used to do this by waiting for a new device from libudev, but that is asking for trouble, as udev will happily rename the device before handing it to us. Listen on rtnl instead, the chance of the name being changed before reaching us is much smaller (if not nil). Kernel patch in the works to make this unneccessary.
* sd-rtnl: beef up rtnl-util a bitTom Gundersen2014-01-30
|
* sd-dhcp-client/net-util: make netmask_to_prefixlen genericTom Gundersen2014-01-30
| | | | | This was originally included in the dhcp-client at my request, but it is not really dhcp-specific and useful outside of it, so let's pull it out.
* networkd: address - add support for broadcastTom Gundersen2014-01-30
|
* net-util: verify the address familyTom Gundersen2014-01-30
| | | | | Error out if the address family is already set to something incompatible with the address being parsed.
* networkd: dhcpv4 - add notion of 'CriticalConnection'Tom Gundersen2014-01-30
| | | | | | | | | | These connections are never torn down, even when the DHCP specifications say that they should be. This is useful/necessary when the rootfs (or another critical fs) is mounted over this network connection, and dataloss would result if the connection is lost. This option defaults to off, but our initrd generator (TBD) will enable it when applicable.
* utmp: make sure we don't write the utmp reboot record twice on each bootLennart Poettering2014-01-30
| | | | (Also, only send the audit msg once, too)
* update-utmp: code modernizationsLennart Poettering2014-01-30
|
* bus: when proxying messages from the bus driver patch the driver's ↵Lennart Poettering2014-01-29
| | | | well-known name into the sender
* bus: the owner of the bus driver name as reported by the driver'sLennart Poettering2014-01-29
| | | | | GetNameOwner() bus call is the bus driver name itself, for compatibility with dbus1
* nspawn: fix reboot event fd reuseLennart Poettering2014-01-29
|
* core: in containers, don't wait for cgroup empty notifications which will ↵Lennart Poettering2014-01-29
| | | | never come
* core: use a bit more PID_FMTLennart Poettering2014-01-29
|
* core: make sure to always go through both SIGTERM and SIGKILL states of unitsLennart Poettering2014-01-29
| | | | | | Given that we now have KillMode=mixed where SIGTERM might kill a smaller set than SIGKILL we need to make sure to always go explicitly throught the SIGKILL state to get the right end result.
* service: allow KillMode=mixed in conjunction with PAMName=Lennart Poettering2014-01-29
|
* core: introduce new KillMode=mixed which sends SIGTERM only to the main ↵Lennart Poettering2014-01-29
| | | | | | | | process, but SIGKILL to all daemon processes This should fix some race with terminating systemd --user, where the system systemd instance might race against the user systemd instance when sending SIGTERM.
* bus: fake security labels againLennart Poettering2014-01-29
| | | | (The kernel module got fixed, so let's reenable this again)
* manager: remove "debugging" "feature"Zbigniew Jędrzejewski-Szmek2014-01-28
|
* manager: requeue the cylon eye for 5s later when a job finishesZbigniew Jędrzejewski-Szmek2014-01-28
| | | | | We'd reqeue the next status update very soon after. Change it so that we wait for full 5s without any job status changes until we print anything.
* manager: print ephemeral information about running jobs' timeouts (v2)Zbigniew Jędrzejewski-Szmek2014-01-28
| | | | | | | | | | | | | | This reverts commit 28c758de94bc8ba97b89d9dab3f517cf466978d0 but makes job_coldplug smarter. In (v1) I changed the job start timestamp to be always set, so the start time can be reported in the cylon eye message. The bug was that when deserializing jobs, they would be ignored if their start timestamp was unset which was synonymous with no timeout. But after the change, jobs would have a start timestamp set despite having no timeout. After deserialization they would be considered immediately expired. Fix this by checking if the timeout is not zero when considering jobs for expiration.
* Base mkostemp_safe on mkostempZbigniew Jędrzejewski-Szmek2014-01-28
| | | | | It is nice to wrap umask handling and return convention, but glibc's mkostemp is async-signal-safe already.
* Get rid of write_safeZbigniew Jędrzejewski-Szmek2014-01-28
| | | | | | Current glibc implementation is safe. Kernel does this atomically, and write is actually implemented through writev. So if write is async-signal-safe, than writev pretty much must be too.
* always use the same code for creating temporary filesLennart Poettering2014-01-28
| | | | Let's unify our code here, and also always specifiy O_CLOEXEC.
* util: pick slightly safer open() flags when creating temporary filesLennart Poettering2014-01-28
|
* util: define O_TMPFILE on x86/x86-64, where the generic value is usedLennart Poettering2014-01-28
| | | | | On other archs we'll not define it so that open_tmpfile() falls back to unguessable name + unlink.
* util: pass original flags value to mkostemp(), in open_tmpfile()Lennart Poettering2014-01-28
|
* util: simplify mkostemp_safe()Lennart Poettering2014-01-28
| | | | Make it use dev_urandom() and endswith().
* util: introduce new dev_urandom() call that is like random_bytes() but ↵Lennart Poettering2014-01-28
| | | | doesn't fall back to PRNG
* util: modernize loop_read() and loop_write() a bitLennart Poettering2014-01-28
| | | | Let's make use of fd_wait_for_event() here, instead of rolling our own.
* bus: reorder a few thingsLennart Poettering2014-01-28
|
* bus: update kdbus.h (ABI break)Kay Sievers2014-01-28
|
* Revert "manager: print ephemeral information about running jobs' timeouts"Kay Sievers2014-01-28
| | | | | | This reverts commit 2cba2e03524ec0922ddc70f933e8a89b7d23b4ec. It breaks bootup with dracut, the transition to the real rootfs fails.
* manager: also turn on output on unit failureZbigniew Jędrzejewski-Szmek2014-01-27
|
* manager: add systemd.show_status=auto modeZbigniew Jędrzejewski-Szmek2014-01-27
| | | | | | | | | | | | | When set to auto, status will shown when the first ephemeral message is shown (a job has been running for five seconds). Then until the boot or shutdown ends, status messages will be shown. No indication about the switch is done: I think it should be clear for the user that first the cylon eye and the ephemeral messages appear, and afterwards messages are displayed. The initial arming of the event source was still wrong, but now should really be fixed.
* journal: guarantee async-signal-safety in sd_journald_sendvZbigniew Jędrzejewski-Szmek2014-01-27
| | | | | | | | | | | | | | | | | | signal(7) provides a list of functions which may be called from a signal handler. Other functions, which only call those functions and don't access global memory and are reentrant are also safe. sd_j_sendv was mostly OK, but would call mkostemp and writev in a fallback path, which are unsafe. Being able to call sd_j_sendv in a async-signal-safe way is important because it allows it be used in signal handlers. Safety is achieved by replacing mkostemp with open(O_TMPFILE) and an open-coded writev replacement which uses write. Unfortunately, O_TMPFILE is only available on kernels >= 3.11. When O_TMPFILE is unavailable, an open-coded mkostemp is used. https://bugzilla.gnome.org/show_bug.cgi?id=722889
* Replace mkostemp+unlink with open(O_TMPFILE)Zbigniew Jędrzejewski-Szmek2014-01-27
| | | | | This will only work on Linux >= 3.11, and probably not on all filesystems. Fallback code is provided.
* bus: update bloom filter description a bitLennart Poettering2014-01-28
|
* bus: rework bloom filter logic to operate with variable bloom filterLennart Poettering2014-01-28
| | | | | | | | sizes and numbers of hash functions In order to make the bloom filter logic more future proof communicate bloom filter parameters from the original bus creator to the clients, and allow them to be variable within certain ranges.
* bus: add API calls for connecting to starter busLennart Poettering2014-01-27
| | | | | | | Add new calls sd_bus_open() and sd_bus_default() for connecting to the starter bus a service was invoked for, or -- if the process is not a bus-activated service -- the appropriate bus for the scope the process has been started in.
* resolve: update sd-resolve to match the other APIs in style and functionalityLennart Poettering2014-01-27
|
* bus: when we cannot bus activate a service because we go down, drop oneLennart Poettering2014-01-27
| | | | message from the queue
* core: require mounts for the root and working directoriesZbigniew Jędrzejewski-Szmek2014-01-27
| | | | | | We know that launching a unit will fail if some required directories haven't been mounted yet. There's no point in starting it just to have it fail even before it gets a chance to run.
* core: simplify check for path absolutenessZbigniew Jędrzejewski-Szmek2014-01-27
| | | | Just a microopt.
* manager: rearm jobs timerZbigniew Jędrzejewski-Szmek2014-01-27
| | | | | | | | | | | | It would fire just once. Also fix units from sec to usec as appropriate. Decrease the switching interval to 1/3 s, so that when the time remaining is displayed with 1s precision, it doesn't jump by 2s every once in a while. Also, the system is feels noticably faster when the status changes couple of times per second instead of every few seconds.
* manager: print ephemeral information about running jobs' timeoutsZbigniew Jędrzejewski-Szmek2014-01-27
| | | | | | | Produces output like: [ *** ] (1 of 2) A start job is running for slow.service (33s / 1min 30s) The first nubmer is the time since job start, the second is the job timeout.
* core: add function to tell when job will time outZbigniew Jędrzejewski-Szmek2014-01-27
| | | | | | Things will continue when either the job timeout or the unit timeout is reached. Add functionality to access that info.
* pam_systemd: Ignore vtnr when seat != seat0Matthew Monaco2014-01-26
| | | | | logind considers it an error for a seat other than seat0 to have a non-zero vtnr for CreateSession