summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use strlen even for constant stringsJosh Triplett2014-03-1613-40/+40
| | | | | | | | | | | GCC optimizes strlen("string constant") to a constant, even with -O0. Thus, replace patterns like sizeof("string constant")-1 with strlen("string constant") where possible, for clarity. In particular, for expressions intended to add up the lengths of components going into a string, this often makes it clearer that the expression counts the trailing '\0' exactly once, by putting the +1 for the '\0' at the end of the expression, rather than hidden in a sizeof in the middle of the expression.
* nspawn: UP the host side of the veth pair after adding it to a bridgeTom Gundersen2014-03-161-0/+6
|
* sd-rtnl: never treat broadcasts as repliesTom Gundersen2014-03-163-0/+10
| | | | | Otherwise the sequence number of a broadcast may match the sequence number of a pending unicast message and cause confusion.
* networkd: netdev - support joining already existing netdevsTom Gundersen2014-03-152-0/+76
|
* sd-rtnl: make RTM_NEWLINK report EEXIST by defaultTom Gundersen2014-03-151-3/+2
| | | | Use RTM_SETLINK to update an existing link.
* timedated: print delay and jitter in debug outputKay Sievers2014-03-151-13/+14
|
* _sd_machines: Use machinectl --no-legendWieland Hoffmann2014-03-151-1/+1
| | | | | Otherwise bogus entries from the header and footer would show up in the completion list.
* zsh completion: Install _sd_machines with _machinectlWieland Hoffmann2014-03-151-1/+2
| | | | | _machinectl uses _sd_machines to provide a list of all available machines.
* timedated: use builtins for integer log and expZbigniew Jędrzejewski-Szmek2014-03-153-22/+21
|
* journald: add support for wall forwardingSebastian Thorarensen2014-03-1413-18/+151
| | | | | | | | | | | | | | This will let journald forward logs as messages sent to all logged in users (like wall). Two options are added: * ForwardToWall (default yes) * MaxLevelWall (default emerg) 'ForwardToWall' is overridable by kernel command line option 'systemd.journald.forward_to_wall'. This is used to emulate the traditional syslogd behaviour of sending emergency messages to all logged in users.
* utmp-wtmp: allow overriding username on wallSebastian Thorarensen2014-03-145-9/+13
| | | | | | | utmp_wall() now takes an optional argument 'username_override' which allows the caller to override the username shown on wall messages. journald will use this to inform users that its wall messages comes from 'systemd-journald'.
* sd-bus: don't choke if somebody sends us a message with a unix fd count of 0Lennart Poettering2014-03-141-4/+3
| | | | | It's kinda pointless to include a unix fd header field in messages if it carries the value 0, but let's do this anyway...
* sd-bus: don't access invalid memory if a signal matcher was freed from its ↵Lennart Poettering2014-03-141-0/+3
| | | | own callback
* util: add hexdump() call to create pretty hexdumps of dataLennart Poettering2014-03-143-0/+65
| | | | This is very useful when debugging sd-bus to look at messages.
* update TODOLennart Poettering2014-03-141-0/+2
|
* networkd: fix typoMichael Olbrich2014-03-141-1/+1
| | | | It's HAVE_SPLIT_USR not HAVE_SPLIT_USER
* gpt: introduce root partition type GUIDs for ARM 32bit + ARM 64bitLennart Poettering2014-03-141-3/+12
|
* tmpfiles: add --root option to operate on an alternate fs treeMichael Marineau2014-03-142-5/+34
| | | | | This makes it possible to initialize or cleanup an arbitrary filesystem hierarchy in the same way that it would be during system boot.
* shared: add root argument to search_and_fopenMichael Marineau2014-03-146-12/+12
| | | | | | | This adds the same root argument to search_and_fopen that conf_files_list already has. Tools that use those two functions as a pair can now be easily modified to load configuration files from an alternate root filesystem tree.
* Do not return -1 (EINVAL) on allocation errorZbigniew Jędrzejewski-Szmek2014-03-142-11/+9
|
* machine-id-setup: use path_kill_slashes and modernizationsZbigniew Jędrzejewski-Szmek2014-03-143-11/+12
|
* man: network - clarify which options may be specified more than once.Tom Gundersen2014-03-141-5/+8
|
* machine-id: add --root option to operate on an alternate fs treeGreg KH2014-03-145-21/+50
| | | | | | | | | This makes it possible to initialize the /etc/machine-id file on an arbitrary filesystem hierarchy. This helps systems that wish to run this at image creation time in a subdirectory, or from initramfs before pivot-root is called. [tomegun: converted to using _cleanup_free_ macros]
* networkd: allow more than one static DNS serverTom Gundersen2014-03-145-10/+27
|
* networkd: fix creation of runtime dirs at startupTom Gundersen2014-03-144-14/+14
| | | | This allows us to drop the repeated attempted creations of the runtime dirs during runtime.
* networkd: lease - store (up to) one dhcp lease file per interfaceTom Gundersen2014-03-141-1/+6
| | | | This removes an accidentally left-over test fragment.
* nspawn: remove unused variableDave Reisner2014-03-141-2/+0
|
* nspawn: allow -EEXIST on mkdir_safe /home/${uid}Brandon Philips2014-03-141-1/+1
| | | | | | With systemd 211 nspawn attempts to create the home directory for the given uid. However, if the home directory already exists then it will fail. Don't error out on -EEXIST.
* update TODOLennart Poettering2014-03-141-3/+0
|
* logind: automatically remove SysV + POSIX IPC objects when the users owning ↵Lennart Poettering2014-03-1411-2/+464
| | | | them fully log out
* timedated: add SNTP client/query hookup (unused for now)Kay Sievers2014-03-145-3/+817
|
* sd-bus: don't look for a 64bit value when we only have 32bit value on reply ↵Lennart Poettering2014-03-135-16/+22
| | | | | | | | | | | | | | cookie hash table access This broke hashtable lookups for the message cookies on s390x, which is a 64bit BE machine where accessing 32bit values as 64bit and vice versa will explode. Also, while we are at it, be a bit more careful when dealing with the 64bit cookies we expose and the 32bit serial numbers dbus uses in its payload. Problem identified by Fridrich Strba.
* bus: fix memory leak when kdbus is not enabledLennart Poettering2014-03-131-1/+2
|
* nspawn: make host0's MAC address persistentTom Gundersen2014-03-131-1/+50
| | | | | | We still need to make sure that no two MAC addresses are the same, so we use a logic similar to what is used in udev to generate MAC addresses, and base it on a hash of the host's machine ID and thecontainer's name.
* getty: Start getty on 3270 terminals available on Linux on System zHendrik Brueckner2014-03-133-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the first 3270 terminal device that is associated with the Linux preferred console to the list of virtualization consoles. This is required to automatically start a getty if the conmode=3270 kernel parameter is specified for Linux on z/VM instances. Note that a queued upstream patch also enable the 3270 terminal device if it is associated with the Linux preferred console. How To successfully start agetty on a 3270 terminal, a change in the agetty parameter order is required. Previously, agetty would started like this: /sbin/agetty --keep-baud 3270/tty1 115200,38400,9600 TERM The agetty program interprets the "3270/tty1" as baud rate and fails to start with the "bad speed: 3270/tty1" error message. Fixing this in agetty is more complex rather than reordering the command line parameters like this: /sbin/agetty --keep-baud 115200,38400,9600 3270/tty1 TERM According to agetty sources and "agetty --help", agetty accepts the "tty", "baudrate tty", and "tty baudrate" specifications. P.S. The "tty: Set correct tty name in 'active' sysfs attribute" introduces a change to display the terminal device which is associated with the Linux preferred console. This change helps to let systemd handle this particular case only. Without the changes of this commit, no additional 3270 terminal device can be managed by systemd. https://git.kernel.org/cgit/linux/kernel/git/gregkh/tty.git/commit/?id=723abd87f6e536f1353c8f64f621520bc29523a3
* systemctl: autopage always if systemctl status is invoked without argsLennart Poettering2014-03-131-3/+1
|
* systemctl: suppress duplicate newline if there's not log output in ↵Lennart Poettering2014-03-133-4/+22
| | | | "systemctl status"
* systemctl: reorder verbsLennart Poettering2014-03-131-94/+94
|
* systemctl: make sure status -a doesn't terminate too soonLennart Poettering2014-03-131-1/+1
|
* systemctl: show a colored red dot in "status" output indicating the state of ↵Lennart Poettering2014-03-131-16/+15
| | | | a unit
* build-sys: make sure we rebuild manpages when doing releasesZbigniew Jędrzejewski-Szmek2014-03-131-1/+1
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=76056
* update TODOLennart Poettering2014-03-131-10/+3
|
* nspawn: honour GPT partition flags when mounting file systems following the ↵Lennart Poettering2014-03-131-11/+45
| | | | discoverable partitions spec
* gpt-auto-generator: there's no point in looking for a superblock on raw ↵Lennart Poettering2014-03-131-2/+0
| | | | disk, we only care for a partition table
* gpt-auto-generator: print debug messages when we ignore a block deviceLennart Poettering2014-03-131-5/+15
|
* gpt-auto-generator: honour read-only and no-auto flag from GPT dataLennart Poettering2014-03-132-11/+34
| | | | | | Similar to the read-only and no-automount flags of Microsoft Basic Data Partitions, introduce our own flags. We map them to the same flag bits as Microsoft's, to keep things simple.
* cryptsetup: call static variables parsed from command line arg_XYZ like in ↵Lennart Poettering2014-03-131-82/+79
| | | | all other tools
* gpt-auto-generator: don't return OOM on parentless devicesTomasz Torcz2014-03-121-1/+1
|
* socket.c: make use of union sockaddr_unionDaniel Buch2014-03-121-7/+1
|
* systemctl: when "systemctl status" is called without arguments show a short ↵Lennart Poettering2014-03-122-21/+100
| | | | | | | overall system state Previously "systemctl status" without argument would print the status of all loaded units. This has now been moved to "systemctl status -a".