]> git.ipfire.org Git - thirdparty/systemd.git/commit
machined: validate machine names at more places
authorLennart Poettering <lennart@poettering.net>
Sun, 23 Aug 2015 12:33:50 +0000 (14:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Aug 2015 20:46:45 +0000 (22:46 +0200)
commitb9a8d250810d4803bc9bf6b36932b528cb991d1e
tree6843e538235d3c6c79a951984ff8d3f4bb5e1930
parent25300b5a1fcf54674a69d0f4ab08925be00b0227
machined: validate machine names at more places

When enumerating machines from /run, and when accepting machine names
for operations, be more strict and always validate.

Note that these checks are strictly speaking unnecessary, since
enumeration happens only on the trusted /run...
src/basic/util.c
src/libsystemd/sd-login/sd-login.c
src/machine/machined.c