Lennart Poettering
e4631b48e1
sysusers: move various user credential validity checks to src/basic/
...
This way we can reuse them for validating User=/Group= settings in unit files
(to be added in a later commit).
Also, add some tests for them.
2016-07-22 15:53:45 +02:00
Lennart Poettering
ccabee0d64
nspawn: make -U a tiny bit smarter
...
With this change -U will turn on user namespacing only if the kernel actually
supports it and otherwise gracefully degrade to non-userns mode.
2016-04-25 12:16:02 +02:00
Daniel Mack
b26fa1a2fb
tree-wide: remove Emacs lines from all files
...
This should be handled fine now by .dir-locals.el, so need to carry that
stuff in every file.
2016-02-10 13:41:57 +01:00
Thomas Hindoe Paaboel Andersen
71d35b6b55
tree-wide: sort includes in *.h
...
This is a continuation of the previous include sort patch, which
only sorted for .c files.
2015-11-18 23:09:02 +01:00
Lennart Poettering
ee104e11e3
user-util: move UID/GID related macros from macro.h to user-util.h
2015-10-27 13:25:57 +01:00
Lennart Poettering
e929bee09a
util-lib: move take_password_lock() to user-util.[ch]
...
Also, rename it take_etc_passwd_lock(), in order to make it more
expressive.
2015-10-27 13:25:55 +01:00
Lennart Poettering
d02608170e
util: remove lookup_uid(), replace by uid_to_name()
...
So far we had two pretty much identical calls in user-util.[ch]:
lookup_uid() and uid_to_name(). Get rid of the former, in favour of the
latter, and while we are at it, rewrite it, to use getpwuid_r()
correctly, inside an allocation loop, as POSIX intended.
2015-10-26 01:24:38 +01:00
Lennart Poettering
b1d4f8e154
util-lib: split out user/group/uid/gid calls into user-util.[ch]
2015-10-26 01:24:38 +01:00