chiark / gitweb /
David Herrmann [Tue, 7 Apr 2015 11:11:18 +0000 (13:11 +0200)]
device: fix sysattr newline cutter
Right now, we always drop the last character of all values we write to
sysfs. Fix this!
Lennart Poettering [Mon, 6 Apr 2015 18:25:56 +0000 (20:25 +0200)]
polkit: rename bus_verify_polkit() to bus_test_polkit() and make it strictly non-interactive
Interactive authorization should only happen asynchronously, hence
disallow it in synchronous bus_verify_polkit(), and rename it to
bus_test_polkit(). This way even if the bus message header asks for
interactive authorization, we'll ask for non-interactive authorization
which is actually the desired behaviour if CanSuspend, CanHibernate and
friends, which call this function.
Lennart Poettering [Mon, 6 Apr 2015 18:11:41 +0000 (20:11 +0200)]
util: rework cunescape(), improve error handling
Change cunescape() to return a normal error code, so that we can
distuingish OOM errors from parse errors.
This also adds a flags parameter to control whether "relaxed" or normal
parsing shall be done. If set no parse failures are generated, and the
only reason why cunescape() can fail is OOM.
Lennart Poettering [Mon, 6 Apr 2015 13:26:59 +0000 (15:26 +0200)]
btrfs: add support for recursive btrfs snapshotting
Lennart Poettering [Mon, 6 Apr 2015 12:55:45 +0000 (14:55 +0200)]
btrfs: missing endian conversion fix
Lennart Poettering [Mon, 6 Apr 2015 09:47:25 +0000 (11:47 +0200)]
btrfs: make btrfs_subvol_snapshot() parameters a flags field
Lennart Poettering [Mon, 6 Apr 2015 08:57:17 +0000 (10:57 +0200)]
btrfs: support recursively removing btrfs snapshots
Tom Gundersen [Sun, 5 Apr 2015 10:17:29 +0000 (12:17 +0200)]
sd-device: don't use alloca() within loops
I shall not use alloca() within loops
I shall not use alloca() within loops
I shall not use alloca() within loops
I shall not use alloca() within loops
...
Lennart Poettering [Sun, 5 Apr 2015 09:28:04 +0000 (11:28 +0200)]
machined: drop btrfs subvolumes when removing container images
Lennart Poettering [Sun, 5 Apr 2015 09:26:58 +0000 (11:26 +0200)]
path-util: don't eat up ENOENT in path_is_mount_point()
There's no reason to eat up ENOENT, it should be OK to simply report the
error back.
Lennart Poettering [Sun, 5 Apr 2015 09:12:16 +0000 (11:12 +0200)]
path-util: make sure fd_is_mount_point() returns true for root directory
Lennart Poettering [Sat, 4 Apr 2015 17:20:56 +0000 (19:20 +0200)]
path-util: if parent can do name_to_handle() but relevant dir not, it's a mount point
Lennart Poettering [Sat, 4 Apr 2015 12:42:39 +0000 (14:42 +0200)]
rm-rf: never cross mount points
Lennart Poettering [Sat, 4 Apr 2015 09:52:57 +0000 (11:52 +0200)]
util: rework rm_rf() logic
- Move to its own file rm-rf.c
- Change parameters into a single flags parameter
- Remove "honour sticky" logic, it's unused these days
Tom Gundersen [Fri, 3 Apr 2015 20:51:09 +0000 (22:51 +0200)]
sd-device,udevd: fix spelling /ammend/amend/
Tom Gundersen [Fri, 3 Apr 2015 19:05:42 +0000 (21:05 +0200)]
sd-device: get_properties_{nulstr,strv} - don't recreate the buffer unnecessarily
Tom Gundersen [Fri, 3 Apr 2015 19:04:48 +0000 (21:04 +0200)]
sd-device: fix deserialization from netlink
Use the standard FOREACH_WORD* macros.
The current code was broken in the devlink case so the last one received
was being dropped, causing https://bugs.freedesktop.org/show_bug.cgi?id=89894
Jan Janssen [Fri, 3 Apr 2015 16:03:06 +0000 (18:03 +0200)]
logind,systemctl: add reboot to EFI firmware support
Hans de Goede [Fri, 3 Apr 2015 10:07:32 +0000 (12:07 +0200)]
udev: input_id: tag accelerometers as ID_INPUT_ACCELEROMETER
input_id already (tries to) tag accelerometers as such, but this only works
for absolute accelerometers. Recent kernels mark accelerometers through an
input prop. Trust that prop and always tag devices with it with
ID_INPUT_ACCELEROMETER.
Note that detection by the prop bit works the same as the existing detection
and will ensure that no other tags get set on the device.
Pablo Lezaeta Reyes [pˈaβ̞lo lˌe̞θaˈeta rˈejɛ] [Tue, 31 Mar 2015 05:47:39 +0000 (02:47 -0300)]
Separate the % sign from the number
In spanish the % sign is supposed to be separated from the number [1 and 2 both in spanish] so I separated the %% that draw the percentage sign from the number.
[1] http://www.fundeu.es/recomendacion/el-se-escribe-separado-de-la-cifra-a-la-que-acompana-802/
[2] http://aplica.rae.es/orweb/cgi-bin/v.cgi?i=QGkHLBzKcEgZrQyD
PD: I know that probably this is not the propper place but I don't know where submit the fix or if I do it right
Peter Hutterer [Thu, 26 Mar 2015 04:08:35 +0000 (14:08 +1000)]
udev: input_id: tag pointing sticks as ID_INPUT_POINTINGSTICK
Also referred to as trackpoint, trackstick. These are marked by recent kernels
through an input prop. Forward that prop as udev property so userspace can
easily determine whether there is a pointing stick present.
These devices were previously marked as ID_INPUT_MOUSE, for backwards
compatibility we keep that in place, the new property is an addition.
Peter Hutterer [Thu, 19 Mar 2015 04:19:58 +0000 (14:19 +1000)]
udev: builtin-keyboard: add support for EVDEV_ABS_*
Parse properties in the form
EVDEV_ABS_00="<min>:<max>:<res>:<fuzz>:<flat>"
and apply them to the kernel device. Future processes that open that device
will see the updated EV_ABS range.
This is particularly useful for touchpads that don't provide a resolution in
the kernel driver but can be fixed up through hwdb entries (e.g. bcm5974).
All values in the property are optional, e.g. a string of "::45" is valid to
set the resolution to 45.
The order intentionally orders resolution before fuzz and flat despite it
being the last element in the absinfo struct. The use-case for setting
fuzz/flat is almost non-existent, resolution is probably the most common case
we'll need.
To avoid multiple hwdb invocations for the same device, replace the
hwdb "keyboard:" prefix with "evdev:" and drop the separate 60-keyboard.rules
file. The new 60-evdev.rules is called for all event nodes
anyway, we don't need a separate rules file and second callout to the hwdb
builtin.
Zbigniew Jędrzejewski-Szmek [Wed, 18 Mar 2015 02:29:31 +0000 (22:29 -0400)]
bootctl: modernization
Use strjoina to avoid error handling, and openat to simplify things.
Some fixes on the way:
- ferror does not set errno, so the return value was wrong in some cases
- errors are propagated in more cases
- EFI/systemd was created, but EFI/systemd-boot was deleted
- something is always printed on error
- when checking the version, comparison was done against "systemd-bo" for some reason
- return value was converted from negative to EXIT_SUCCESS/EXIT_FAILURE twice,
resulting in EXIT_SUCCESS all the time
Zbigniew Jędrzejewski-Szmek [Mon, 16 Mar 2015 17:14:18 +0000 (13:14 -0400)]
journal: add int↔audit type name mapping
Susant Sahani [Mon, 9 Mar 2015 09:58:29 +0000 (15:28 +0530)]
networkd: Add support for bond option.
This patch adds configurational support for bond option.
Test conf:
bond.netdev
---
[NetDev]
Name=bond1
Kind=bond
[Bond]
ArpAllTargets=all
PrimaryReselect=better
ArpIntervalSec=10s
ArpIpTargets= 192.168.8.102 192.168.8.101 192.168.8.102
---
$cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
ARP Polling Interval (ms): 10000
ARP IP target/s (n.n.n.n form): 192.168.8.100, 192.168.8.101, 192.168.8.102
Susant Sahani [Thu, 5 Mar 2015 16:32:47 +0000 (22:02 +0530)]
networkd vxlan: Add support for enabling UDP checksums
Add UDPCheckSum option to enable transmitting UDP checksums when doing
VXLAN/IPv4. Add UDP6ZeroChecksumRx, and UDP6ZeroChecksumTx
options to enable sending zero checksums and receiving zero
checksums in VXLAN/IPv6
[tomegun: rebase manpage due to whitespace changes]
Daniel Mack [Fri, 20 Feb 2015 14:16:02 +0000 (15:16 +0100)]
sd-bus: teach bus_print_property() how to print SD_BUS_TYPE_INT64
Andy Wingo [Wed, 16 Mar 2016 21:47:59 +0000 (22:47 +0100)]
Release version 219.14.
Andy Wingo [Thu, 17 Mar 2016 08:21:53 +0000 (09:21 +0100)]
Clear pending action after resume from delayed sleep.
Andy Wingo [Wed, 16 Mar 2016 21:47:37 +0000 (22:47 +0100)]
Emit PrepareForSleep when resuming.
Andy Wingo [Sun, 6 Mar 2016 15:03:03 +0000 (16:03 +0100)]
v219.13
Andy Wingo [Sun, 6 Mar 2016 15:56:33 +0000 (16:56 +0100)]
Fixes to user and session saving
* src/login/logind-dbus.c (method_create_session): No need to save
session here, as session_send_create_reply will do it.
* src/login/logind-session-dbus.c (session_send_create_reply): On the
other hand we do need to save the user here, so the file marks them as
being active.
Andy Wingo [Sun, 6 Mar 2016 15:02:31 +0000 (16:02 +0100)]
Classify processes from sessions into cgroups
Create a private cgroup tree associated with no controllers, and use it
to map PIDs to sessions. Since we use our own path structure, remove
internal cgroup-related helpers that interpret the cgroup path structure
to pull out users, slices, and scopes.
Andy Wingo [Wed, 2 Mar 2016 19:50:35 +0000 (20:50 +0100)]
Set up cgroups when logind starts
This code is from systemd.
Andy Wingo [Wed, 2 Mar 2016 19:44:29 +0000 (20:44 +0100)]
Re-add cgroups agent to the build
The helper is now named logind-cgroups-agent.
Andy Wingo [Wed, 2 Mar 2016 19:36:32 +0000 (20:36 +0100)]
Revert "Remove src/cgroups-agent"
This reverts commit
024e2f0da33fa05f4d5aa696e9f715264e9cd41f.
Andy Wingo [Sun, 6 Mar 2016 11:47:17 +0000 (12:47 +0100)]
Fix check for libcap to re-set LIBS; add -lrt for mq_unlink
Andy Wingo [Wed, 2 Sep 2015 10:45:47 +0000 (12:45 +0200)]
Update README
Andy Wingo [Tue, 1 Sep 2015 11:15:56 +0000 (13:15 +0200)]
v219.12
Andy Wingo [Tue, 1 Sep 2015 11:13:49 +0000 (13:13 +0200)]
Fix argument order when checking inhibitors
Andy Wingo [Tue, 1 Sep 2015 10:30:17 +0000 (12:30 +0200)]
Stop sessions on ReleaseSession
Andy Wingo [Tue, 1 Sep 2015 09:54:25 +0000 (11:54 +0200)]
Fix the login monitor
* src/login/logind.c (main): Create /run/systemd/machines, so that the
login monitor works.
* configure.ac: v219.10.
Andy Wingo [Tue, 1 Sep 2015 09:32:07 +0000 (11:32 +0200)]
v219.9
Andy Wingo [Tue, 1 Sep 2015 09:30:38 +0000 (11:30 +0200)]
PKTTYAGENT make variable
* Makefile.am (PKTTYAGENT): Define as a variable so that users can make
PKTTYAGENT=/whatever to select a specific pkttyagent path.
Andy Wingo [Sat, 29 Aug 2015 10:19:20 +0000 (12:19 +0200)]
v219.8
Andy Wingo [Sat, 29 Aug 2015 10:17:50 +0000 (12:17 +0200)]
Add poweroff, suspend etc. loginctl commands
* src/login/loginctl.c: Add poweroff, reboot, suspend, hibernate, and
hybrid-sleep commands. Normally these are handled by systemctl but
since elogind is targeted at the no-systemd use case, we incorporate
them here.
Andy Wingo [Sat, 29 Aug 2015 09:20:59 +0000 (11:20 +0200)]
Incorporate sleep.conf into logind.conf
* src/login/logind-action.c (shutdown_or_sleep, do_sleep): Take modes
from the manager instead of parsing them ourselves.
* src/login/logind-dbus.c (execute_shutdown_or_sleep): Adapt to
shutdown_or_sleep prototype change.
* src/login/logind-gperf.gperf: Add config items from sleep.conf.
* src/login/logind.c (manager_new): Wire up defaults for new config
items.
(manager_free): Free new config items.
(manager_parse_config_file): Arrange to parse a single
elogind/logind.conf file, not grovelling all over the filesystem.
Take the file from the ELOGIND_CONF_FILE environment variable if
present.
Andy Wingo [Wed, 26 Aug 2015 21:21:55 +0000 (23:21 +0200)]
v219.7
Andy Wingo [Wed, 26 Aug 2015 21:19:06 +0000 (23:19 +0200)]
Add --with-libcap option
* configure.ac: Add --with-libcap option.
* Makefile.am (libelogind_shared_la_LDFLAGS): Add CAP_LDFLAGS.
Andy Wingo [Sun, 23 Aug 2015 13:00:21 +0000 (15:00 +0200)]
v219.6
Andy Wingo [Sun, 23 Aug 2015 12:54:39 +0000 (14:54 +0200)]
Handle suspend/hibernate/hybrid-suspend/shutdown/reboot directly
* configure.ac: Get paths of halt and reboot.
* Makefile.am (systemsleepdir, systemshutdowndir): New variables. Look
in them for hooks to run.
* src/login/logind-action.c: Inline the salient bits from systemd's
system-sleep.c here.
* src/login/logind-dbus.c (execute_shutdown_or_sleep): Call our own
shutdown_or_sleep helper instead of invoking a systemd method.
* src/login/logind.h: Declare shutdown_or_sleep.
Andy Wingo [Sun, 23 Aug 2015 10:28:10 +0000 (12:28 +0200)]
Beginnings of handling suspend/etc within logind
Since we are catching the keys, we might as well just do
suspend/reboot/etc handling here.
Andy Wingo [Sun, 23 Aug 2015 10:00:33 +0000 (12:00 +0200)]
Remove unused manager routines
Remove routines to call into systemd to manage jobs and units.
Andy Wingo [Sun, 23 Aug 2015 09:59:34 +0000 (11:59 +0200)]
logind.c cleanup
* src/login/logind.c: Remove unused vcsa dispatch function. Add
mkdir_label header. Don't mkdir /run/systemd; we require that it be
mounted over ramfs or tmpfs.
Andy Wingo [Sun, 23 Aug 2015 09:50:26 +0000 (11:50 +0200)]
Remove systemd subscription and user/session units
This removes attempts by logind to listen to systemd messages over the
bus, and to start and/or manage units associated with sessions and
users.
Andy Wingo [Sun, 23 Aug 2015 09:17:14 +0000 (11:17 +0200)]
Remove support for auto-spawning VTs
Auto-spawning VTs requires systemd in practice. If you're using systemd
you can just use its logind :)
Andy Wingo [Thu, 20 Aug 2015 08:53:41 +0000 (10:53 +0200)]
Actually working with pam
* src/login/logind-user.c (user_start): Don't start slices and
systemd-user services.
* src/login/logind-dbus.c (method_create_session): Send a reply directly
instead of waiting on systemd that isn't there.
* configure.ac: Bump version.
Andy Wingo [Thu, 20 Aug 2015 07:55:37 +0000 (09:55 +0200)]
Don't try to set up cgroups for new users
* src/login/logind-session.c (session_start): Punt on setting up a
scope.
Andy Wingo [Thu, 20 Aug 2015 07:21:04 +0000 (09:21 +0200)]
Create /run/systemd as needed
* src/login/logind.c (main): Also create /run/systemd at startup.
* configure.ac: Bump to 219.3.
Andy Wingo [Wed, 19 Aug 2015 20:27:38 +0000 (22:27 +0200)]
Play better with non-FHS distros
* Makefile.am: Remove rootprefix, rootbindir, and rootlibexecdir.
udevrulesdir is substed from configure.ac. Adapt distcheck.
* autogen.sh: Make more normal.
* configure.ac: Add --with-udevrulesdir. Remove --with-rootprefix.
Detect bin dir for udev.
Andy Wingo [Wed, 19 Aug 2015 20:05:08 +0000 (22:05 +0200)]
Remove sd-path interface
* src/libelogind/sd-path/sd-path.c:
* src/systemd/sd-path.h: Remove files. These interfaces are not
compatible with Guix.
* Makefile.am: Adapt.
Andy Wingo [Tue, 18 Aug 2015 09:02:48 +0000 (11:02 +0200)]
v219.1
* configure.ac: Bump version.
Andy Wingo [Tue, 18 Aug 2015 09:02:16 +0000 (11:02 +0200)]
Add rules to build and install the public libelogind library
* Makefile.am: Actually build and install libelogind.
Andy Wingo [Tue, 18 Aug 2015 07:20:28 +0000 (09:20 +0200)]
Fix distcheck
Andy Wingo [Tue, 18 Aug 2015 06:42:11 +0000 (08:42 +0200)]
Fix logind startup
* src/login/logind.c (manager_connect_bus): Warn instead of error if we
can't subscribe to updates from systemd. Perhaps we should remove
this entirely.
Andy Wingo [Sun, 16 Aug 2015 09:46:50 +0000 (11:46 +0200)]
configure.ac actually defines OUR_CFLAGS
* configure.ac (OUR_CFLAGS): Actually define. This was preventing test
executables from linking as they weren't getting the -fPIE flag.
Andy Wingo [Sun, 16 Aug 2015 09:20:51 +0000 (11:20 +0200)]
Remove sd_is_mq
* src/systemd/sd-daemon.h:
* src/libelogind/sd-daemon/sd-daemon.c (sd_is_mq): Remove unused
function that depended on librt. Ultimately we should remove this
header at some point.
Ricardo Wurmus [Sun, 3 May 2015 20:26:52 +0000 (22:26 +0200)]
Rename systemd-logind to logind.
Ricardo Wurmus [Sat, 2 May 2015 06:54:52 +0000 (08:54 +0200)]
Rename PAM configuration file.
Ricardo Wurmus [Sat, 2 May 2015 06:53:21 +0000 (08:53 +0200)]
Remove reference to non-existing file.
Ricardo Wurmus [Sat, 2 May 2015 06:51:39 +0000 (08:51 +0200)]
Do not install aliases for units.
Ricardo Wurmus [Sun, 26 Apr 2015 13:04:56 +0000 (15:04 +0200)]
Ignore generated libelogind files.
Ricardo Wurmus [Sun, 26 Apr 2015 13:03:53 +0000 (15:03 +0200)]
rename libsystemd*.pc.in to libelogind*.pc.in
Ricardo Wurmus [Sun, 26 Apr 2015 13:01:31 +0000 (15:01 +0200)]
restore libsystemd-pkgconfig.xml as libelogind-pkgconfig.xml
Ricardo Wurmus [Fri, 24 Apr 2015 20:23:06 +0000 (22:23 +0200)]
Replace systemd.version with elogind.version.
Ricardo Wurmus [Fri, 24 Apr 2015 10:36:12 +0000 (12:36 +0200)]
Restore shared XML files.
* man/less-variables.xml,
man/standard-conf.xml,
man/standard-options.xml,
man/user-system-options.xml: Restore files from upstream (removed in
commit
d3ad6bf3).
Andy Wingo [Mon, 20 Apr 2015 20:08:33 +0000 (22:08 +0200)]
Disable -flto
With binutils 2.25, the following error occurred:
/tmp/ccx3cAlA.ltrans10.ltrans.o: In function `bus_error_name_to_errno.5271':
/home/wingo/src/elogind/src/libelogind/sd-bus/bus-error.c:113: undefined reference to `__stop_BUS_ERROR_MAP'
/home/wingo/src/elogind/src/libelogind/sd-bus/bus-error.c:113: undefined reference to `__start_BUS_ERROR_MAP'
collect2: error: ld returned 1 exit status
Andy Wingo [Mon, 20 Apr 2015 19:10:49 +0000 (21:10 +0200)]
Remove unused and invalid udev definitions
These definitions were not valid when compiling against eudev.
Andy Wingo [Mon, 20 Apr 2015 19:05:18 +0000 (21:05 +0200)]
Remove more extraneous Makefile.am bits
Andy Wingo [Sun, 19 Apr 2015 15:46:51 +0000 (17:46 +0200)]
Re-add logind man pages from upstream systemd
Andy Wingo [Sun, 19 Apr 2015 15:02:47 +0000 (17:02 +0200)]
Get rid of some more unused defines and dirs
Andy Wingo [Sun, 19 Apr 2015 14:49:02 +0000 (16:49 +0200)]
Remove more vestigial configureac printouts
Andy Wingo [Sun, 19 Apr 2015 14:44:58 +0000 (16:44 +0200)]
Remove some vestigial Python things
Andy Wingo [Sun, 19 Apr 2015 14:43:40 +0000 (16:43 +0200)]
Remove certificate root checks
Andy Wingo [Sun, 19 Apr 2015 14:41:56 +0000 (16:41 +0200)]
Remove qemu bios checks
Andy Wingo [Sun, 19 Apr 2015 14:40:55 +0000 (16:40 +0200)]
Remove DKR index dir checks
Andy Wingo [Sun, 19 Apr 2015 14:37:26 +0000 (16:37 +0200)]
Remove TTY_GID checks
Andy Wingo [Sun, 19 Apr 2015 14:36:15 +0000 (16:36 +0200)]
Remove ldconfig support
Andy Wingo [Sun, 19 Apr 2015 14:35:27 +0000 (16:35 +0200)]
Remove hibernate checks
Andy Wingo [Sun, 19 Apr 2015 14:34:28 +0000 (16:34 +0200)]
Remove hwdb check
Andy Wingo [Sun, 19 Apr 2015 14:33:42 +0000 (16:33 +0200)]
Remove gudev check
Andy Wingo [Sun, 19 Apr 2015 14:18:47 +0000 (16:18 +0200)]
Remove myhostname checks/support
Andy Wingo [Sun, 19 Apr 2015 14:17:03 +0000 (16:17 +0200)]
Remove telinit checks
Andy Wingo [Sun, 19 Apr 2015 14:16:32 +0000 (16:16 +0200)]
Remove loadkeys/setfont checks
Andy Wingo [Sun, 19 Apr 2015 14:14:20 +0000 (16:14 +0200)]
Remove rc.local checks
Andy Wingo [Sun, 19 Apr 2015 14:13:11 +0000 (16:13 +0200)]
Remove resolved check and default DNS servers
Andy Wingo [Sun, 19 Apr 2015 14:11:35 +0000 (16:11 +0200)]
Remove coredump check
Andy Wingo [Sun, 19 Apr 2015 14:11:09 +0000 (16:11 +0200)]
Remove gnuefi support
Andy Wingo [Sun, 19 Apr 2015 14:06:58 +0000 (16:06 +0200)]
Remove EFI support
Andy Wingo [Sun, 19 Apr 2015 14:03:05 +0000 (16:03 +0200)]
Remove networkd checks