Systemd/src/basic
Lennart Poettering d3dcf4e3b9 fileio: beef up READ_FULL_FILE_CONNECT_SOCKET to allow setting sender socket name
This beefs up the READ_FULL_FILE_CONNECT_SOCKET logic of
read_full_file_full() a bit: when used a sender socket name may be
specified. If specified as NULL behaviour is as before: the client
socket name is picked by the kernel. But if specified as non-NULL the
client can pick a socket name to use when connecting. This is useful to
communicate a minimal amount of metainformation from client to server,
outside of the transport payload.

Specifically, these beefs up the service credential logic to pass an
abstract AF_UNIX socket name as client socket name when connecting via
READ_FULL_FILE_CONNECT_SOCKET, that includes the requesting unit name
and the eventual credential name. This allows servers implementing the
trivial credential socket logic to distinguish clients: via a simple
getpeername() it can be determined which unit is requesting a
credential, and which credential specifically.

Example: with this patch in place, in a unit file "waldo.service" a
configuration line like the following:

    LoadCredential=foo:/run/quux/creds.sock

will result in a connection to the AF_UNIX socket /run/quux/creds.sock,
originating from an abstract namespace AF_UNIX socket:

    @$RANDOM/unit/waldo.service/foo

(The $RANDOM is replaced by some randomized string. This is included in
the socket name order to avoid namespace squatting issues: the abstract
socket namespace is open to unprivileged users after all, and care needs
to be taken not to use guessable names)

The services listening on the /run/quux/creds.sock socket may thus
easily retrieve the name of the unit the credential is requested for
plus the credential name, via a simpler getpeername(), discarding the
random preifx and the /unit/ string.

This logic uses "/" as separator between the fields, since both unit
names and credential names appear in the file system, and thus are
designed to use "/" as outer separators. Given that it's a good safe
choice to use as separators here, too avoid any conflicts.

This is a minimal patch only: the new logic is used only for the unit
file credential logic. For other places where we use
READ_FULL_FILE_CONNECT_SOCKET it is probably a good idea to use this
scheme too, but this should be done carefully in later patches, since
the socket names become API that way, and we should determine the right
amount of info to pass over.
2020-11-03 09:48:04 +01:00
..
linux Merge pull request #15206 from anitazha/systoomd-v0 2020-10-15 14:16:52 +02:00
af-list.c util: cast smaller type to large type 2018-12-02 05:58:18 +01:00
af-list.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
af-to-name.awk
alloc-util.c tree-wide: various code-formatting improvements 2019-09-22 07:17:27 +02:00
alloc-util.h alloc-util: avoid allocating zero size memory blocks 2020-10-14 10:39:48 +02:00
architecture.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
architecture.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
arphrd-list.c basic: massively reduce the size of arphdr lookup functions 2019-09-25 12:17:22 +02:00
arphrd-list.h basic: massively reduce the size of arphdr lookup functions 2019-09-25 12:17:22 +02:00
arphrd-to-name.awk basic/arphrd: stop discriminating against NETROM and CISCO 2019-09-25 12:17:51 +02:00
async.c util: split out errno related stuff 2019-03-14 13:25:51 +01:00
async.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
audit-util.c codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
audit-util.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
blockdev-util.c blockdev-util: add correct API for detecting if block device has partition scanning enabled 2020-08-11 10:29:43 +02:00
blockdev-util.h blockdev-util: add correct API for detecting if block device has partition scanning enabled 2020-08-11 10:29:43 +02:00
btrfs-util.c tree-wide: drop if braces around single line expressions as well 2020-10-09 15:11:55 +02:00
btrfs-util.h btrfs: if BTRFS_IOC_DEV_INFO returns /dev/root generate a friendly error message 2020-09-08 18:10:26 +02:00
build.h meson: convert developer_mode boolean to an enum 2020-10-22 11:05:17 +02:00
bus-label.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
bus-label.h tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
cap-list.c basic/cap-list: reduce scope of variables 2020-07-10 16:55:24 +02:00
cap-list.h basic: make sure we include inttypes.h when we use its types 2020-08-28 18:14:35 +02:00
cap-to-name.awk
capability-util.c capability-util: add new function for raising setpcap 2020-09-01 10:53:26 +02:00
capability-util.h capability-util: add new function for raising setpcap 2020-09-01 10:53:26 +02:00
cgroup-util.c cgroup-util: add cg_get_attribute_as_bool() helper 2020-10-07 17:12:24 -07:00
cgroup-util.h cgroup-util: add cg_get_attribute_as_bool() helper 2020-10-07 17:12:24 -07:00
chattr-util.c chattr: optionally, return the old flags when updating them 2018-10-08 21:40:44 +02:00
chattr-util.h tmpfiles: move full chattr flag set to chattr-util.h 2019-03-28 18:43:05 +01:00
conf-files.c basic/set: let set_put_strdup() create the set with string hash ops 2020-05-06 16:54:06 +02:00
conf-files.h basic/conf-files: make conf_files_list() take just a single directory 2019-09-16 09:15:05 +02:00
copy.c Merge pull request #17055 from keszybz/two-coverity-fixes 2020-09-15 09:22:39 +09:00
copy.h basic: include stddef.h since we use NULL in header 2020-10-07 22:19:10 +02:00
def.h core: add varlink call to get cgroup paths of units using ManagedOOM*= 2020-10-07 16:17:23 -07:00
device-nodes.c tree-wide: avoid some loaded terms 2020-06-25 09:00:19 +02:00
device-nodes.h tree-wide: avoid some loaded terms 2020-06-25 09:00:19 +02:00
dirent-util.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
dirent-util.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
dlfcn-util.c dlfcn-util: add dlsym_many_and_warn() helper 2020-06-25 09:27:11 +02:00
dlfcn-util.h dlfcn-util: add dlsym_many_and_warn() helper 2020-06-25 09:27:11 +02:00
efivars.c tree-wide: avoid some loaded terms 2020-06-25 09:00:19 +02:00
efivars.h efi: use stub for cache_efi_options_variable if !ENABLE_EFI 2020-06-16 21:47:30 +02:00
env-file.c env-file: bring our decoding of double-quoted strings in env files in line with shell 2020-09-14 11:08:43 +02:00
env-file.h util-lib: split out env file parsing code into env-file.c 2018-12-02 13:22:29 +01:00
env-util.c Revert "basic/env-util: (mostly) follow POSIX for what variable names are allowed" 2020-10-23 15:07:07 +02:00
env-util.h Introduce sc_arg_max() helper 2019-05-21 10:57:23 +02:00
errno-list.c util: cast smaller type to large type 2018-12-02 05:58:18 +01:00
errno-list.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
errno-to-name.awk
errno-util.h errno-util: let's beef up ERRNO_IS_NOT_SUPPORTED() with socket not supported errors 2020-04-17 16:05:56 +02:00
escape.c basic/escape: use consistent location for "*" in function declarations 2020-08-31 21:34:01 +02:00
escape.h basic/escape: use consistent location for "*" in function declarations 2020-08-31 21:34:01 +02:00
ether-addr-util.c sd-netlink: introduce netlink_message_{read,append}_hw_addr 2020-10-28 14:44:43 +01:00
ether-addr-util.h sd-netlink: introduce netlink_message_{read,append}_hw_addr 2020-10-28 14:44:43 +01:00
extract-word.c Add string_contains_word_strv() 2020-09-04 12:59:26 +02:00
extract-word.h basic/extract-word: add EXTRACT_UNESCAPE_SEPARATORS mode 2020-08-05 21:29:13 +01:00
fd-util.c fd-util: port close_all_fds() to close_range() 2020-10-14 10:40:29 +02:00
fd-util.h Add CLOSE_AND_REPLACE helper 2020-09-18 15:28:48 +02:00
fileio.c fileio: beef up READ_FULL_FILE_CONNECT_SOCKET to allow setting sender socket name 2020-11-03 09:48:04 +01:00
fileio.h fileio: beef up READ_FULL_FILE_CONNECT_SOCKET to allow setting sender socket name 2020-11-03 09:48:04 +01:00
format-util.c tree-wide: drop double newline 2019-11-04 00:30:32 +09:00
format-util.h util: make size macros unsigned 2020-10-20 15:51:48 +09:00
fs-util.c fs-util: add new futimens_opath() helper 2020-09-28 18:45:54 +02:00
fs-util.h Merge pull request #17172 from keszybz/read-login-defs 2020-10-02 11:01:30 +02:00
gcrypt-util.c tree-wide: drop gcrypt.h when gcrypt-util.h is included 2019-11-04 00:30:32 +09:00
gcrypt-util.h Drop my copyright headers 2018-06-14 13:03:20 +02:00
generate-af-list.sh scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
generate-arphrd-list.sh scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
generate-cap-list.sh scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
generate-errno-list.sh scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
glob-util.c journalctl,elsewhere: make sure --file=foo fails with sane error msg if foo is not readable 2020-05-19 15:26:51 +02:00
glob-util.h journalctl,elsewhere: make sure --file=foo fails with sane error msg if foo is not readable 2020-05-19 15:26:51 +02:00
gunicode.c headers: add spdx tags to imported files with a known license 2020-10-29 11:32:24 +01:00
gunicode.h headers: add spdx tags to imported files with a known license 2020-10-29 11:32:24 +01:00
hash-funcs.c util: introduce two trivial hash_ops 2020-10-13 22:40:22 +09:00
hash-funcs.h util: introduce two trivial hash_ops 2020-10-13 22:40:22 +09:00
hashmap.c hashmap: introduce {hashmap,set}_put_strdup_full() 2020-10-13 22:39:06 +09:00
hashmap.h hashmap: introduce {hashmap,set}_put_strdup_full() 2020-10-13 22:39:06 +09:00
hexdecoct.c resolvectl: fix indentation of hexdump'ed packets 2020-04-17 18:29:42 +02:00
hexdecoct.h util: extend unhexmem() to accept secure flag 2019-04-12 10:10:24 +09:00
hostname-util.c Add %l as specifier for the hostname without any domain component 2020-05-07 17:36:44 +02:00
hostname-util.h Add %l as specifier for the hostname without any domain component 2020-05-07 17:36:44 +02:00
in-addr-util.c in-addr-util: introduce in4_addr_is_local_multicast() 2020-09-17 00:04:22 +09:00
in-addr-util.h in-addr-util: introduce in4_addr_is_local_multicast() 2020-09-17 00:04:22 +09:00
io-util.c basic: drop a redundant if statement 2020-09-14 16:16:18 +02:00
io-util.h io-util: introduce iovw_put_string_field() helper 2019-06-27 19:14:27 +02:00
ioprio.h Restore naming of IOPRIO_PRIO defines from linux/ioprio.h 2018-03-21 00:46:22 +01:00
kbd-util.c util: split out nulstr related stuff to nulstr-util.[ch] 2019-03-14 13:25:52 +01:00
kbd-util.h util: split out kbd related stuff 2019-03-14 13:25:51 +01:00
khash.c tree-wide: assorted coccinelle fixes 2020-10-09 15:02:23 +02:00
khash.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
label.c selinux: create unit invocation links with default SELinux context 2020-09-01 15:48:53 +02:00
label.h selinux: create unit invocation links with default SELinux context 2020-09-01 15:48:53 +02:00
limits-util.c limit-util: quieten a very common debug message that is misleading 2020-05-15 15:50:09 +02:00
limits-util.h util: split out some stuff into a new file limits-util.[ch] 2019-03-13 12:16:43 +01:00
list.h basic/list: add LIST_JOIN helper 2020-07-29 17:12:45 +01:00
locale-util.c locale-util: add support for touch emoji 2020-07-01 11:17:27 +02:00
locale-util.h locale-util: add support for touch emoji 2020-07-01 11:17:27 +02:00
log.c log: normalize log target condition check 2020-09-30 16:17:12 +02:00
log.h log: update comment 2020-09-30 16:06:55 +02:00
login-util.c tree-wide: drop double newline 2019-11-04 00:30:32 +09:00
login-util.h Drop my copyright headers 2018-06-14 13:03:20 +02:00
macro.h Merge pull request #17324 from keszybz/resolvectl-compat-output 2020-10-22 14:57:41 +02:00
memfd-util.c tree-wide: drop missing.h 2019-10-31 17:57:03 +09:00
memfd-util.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
memory-util.c tree-wide: use the usual SPDX header for our own files 2020-10-29 10:47:20 +01:00
memory-util.h bus-message: add macro for calculation of offset from the page 2020-06-22 17:18:35 +02:00
mempool.c util: split out memcmp()/memset() related calls into memory-util.[ch] 2019-03-13 12:16:43 +01:00
mempool.h mempool: only enable mempool use when linked to libsystemd-shared.so 2018-10-11 11:10:37 +02:00
meson.build meson: Fix missing libseccomp dependencies 2020-10-16 12:30:24 +09:00
missing_audit.h missing: move audit related definitions to missing_audit.h 2018-12-06 13:25:24 +01:00
missing_capability.h meson: convert developer_mode boolean to an enum 2020-10-22 11:05:17 +02:00
missing_drm.h missing: re-add drm related entries 2018-12-07 12:46:55 +01:00
missing_fcntl.h missing: move fcntl related definitions to missing_fcntl.h 2018-12-06 13:25:24 +01:00
missing_fs.h missing: add FS_PROJINHERIT_FL 2019-03-28 18:43:04 +01:00
missing_input.h missing: use integer types used by kernel 2018-12-06 13:24:00 +01:00
missing_keyctl.h missing: move missing entries in keyctl.h to missing_keyctl.h 2018-12-04 07:42:32 +01:00
missing_loop.h loop-util: use new LOOP_CONFIGURE ioctl 2020-08-11 15:24:18 +02:00
missing_magic.h missing: add XFS magic 2019-12-04 11:01:31 +01:00
missing_mman.h missing: add memfd related definitions to missing_mman.h 2018-12-06 13:25:24 +01:00
missing_network.h tree-wide: add helper for IPv4/IPv6 sockopts 2020-09-11 10:33:13 +02:00
missing_prctl.h missing: move prctl related entries to missing_prctl.h 2018-12-04 08:34:46 +01:00
missing_random.h random-util: make use of GRND_INSECURE when it is defined 2020-05-10 11:15:16 +02:00
missing_resource.h missing: move resource related definitions to missing_resource.h 2018-12-06 13:25:24 +01:00
missing_sched.h missing: move sched.h related definitions to missing_sched.h 2018-12-06 13:28:28 +01:00
missing_securebits.h missing: rename securebits.h to missing_securebits.h 2018-12-04 07:49:24 +01:00
missing_socket.h missing: add IPV6_FREEBIND 2020-09-04 23:53:18 +09:00
missing_stat.h stat-util: provide single fallback implementation of statx() 2020-09-03 15:02:34 +02:00
missing_stdlib.h missing: move definition of secure_getenv() to missing_stdlib.h 2018-12-06 13:26:55 +01:00
missing_syscall.h missing: add close_range() wrapper 2020-10-14 10:40:10 +02:00
missing_timerfd.h missing: move timer related definition to missing_timerfd.h 2018-12-06 13:25:24 +01:00
missing_type.h missing: move char{16,32}_t definitions to missing_type.h 2018-12-04 08:38:18 +01:00
missing_xfs.h missing: add XFS magic 2019-12-04 11:01:31 +01:00
mkdir-label.c basic/mkdir: introduce safe recursive variants 2020-06-23 12:57:05 +01:00
mkdir.c mkdir: add new mkdir_p_root() helper 2020-08-24 21:59:21 +02:00
mkdir.h mkdir: add new mkdir_p_root() helper 2020-08-24 21:59:21 +02:00
mountpoint-util.c stat-util: add new macros for declaring statx variable 2020-09-03 15:02:16 +02:00
mountpoint-util.h basic: New function fstype_is_blockdev_backed for fstypes that need a blockdev 2020-06-08 19:36:42 +02:00
MurmurHash2.c headers: use custom LicenseRef- spdx tag for various "public domain" files 2020-10-29 11:41:27 +01:00
MurmurHash2.h headers: use custom LicenseRef- spdx tag for various "public domain" files 2020-10-29 11:41:27 +01:00
namespace-util.c namespace-util: introduce helper for combining unshare() + MS_SLAVE remount 2020-07-07 11:20:42 +02:00
namespace-util.h namespace-util: introduce helper for combining unshare() + MS_SLAVE remount 2020-07-07 11:20:42 +02:00
nss-util.h nss-util: add macros for generating getpwent()/getgrent() prototypes 2020-01-15 15:25:32 +01:00
nulstr-util.c util: split out nulstr related stuff to nulstr-util.[ch] 2019-03-14 13:25:52 +01:00
nulstr-util.h util: split out nulstr related stuff to nulstr-util.[ch] 2019-03-14 13:25:52 +01:00
ordered-set.c tree-wide: define iterator inside of the macro 2020-09-08 12:14:05 +02:00
ordered-set.h tree-wide: define iterator inside of the macro 2020-09-08 12:14:05 +02:00
parse-util.c parse-util: add parse_loadavg_fixed_point 2020-10-07 16:17:24 -07:00
parse-util.h parse-util: add parse_loadavg_fixed_point 2020-10-07 16:17:24 -07:00
path-lookup.c path-lookup: Correct order of XDG_CONFIG_HOME and XDG_CONFIG_DIRS 2020-09-29 21:47:01 +02:00
path-lookup.h Replace gendered pronouns with gender neutral ones. (#16844) 2020-08-27 11:52:48 +09:00
path-util.c macro: introduce POINTER_MAX as define for (void*) -1 2020-10-22 08:33:20 +09:00
path-util.h macro: introduce POINTER_MAX as define for (void*) -1 2020-10-22 08:33:20 +09:00
prioq.c basic/prioq: add prioq_peek_item() 2019-01-26 12:42:46 +01:00
prioq.h basic/prioq: add prioq_peek_item() 2019-01-26 12:42:46 +01:00
proc-cmdline.c efi: Skip parsing SystemdOptions if there's an error getting it. 2020-06-14 10:51:01 +02:00
proc-cmdline.h proc-cmdline: make checking of EFI options variable optional 2020-05-20 19:22:09 +02:00
process-util.c all: fix minor typos 2020-07-07 18:52:49 +09:00
process-util.h process-util: make sure procfs_file_alloca() works for non-literal field names too 2020-07-14 17:06:23 +02:00
procfs-util.c Replace gendered pronouns with gender neutral ones. (#16844) 2020-08-27 11:52:48 +09:00
procfs-util.h procfs-util: expose functionality to query total memory 2019-01-22 17:43:13 +01:00
pthread-util.h basic: add _cleanup_ wrappers for pthread_mutex_{lock,unlock} 2020-03-28 13:29:39 +01:00
quota-util.c tree-wide: if get_block_device() returns zero devno, check for it in all cases 2020-09-08 18:10:26 +02:00
quota-util.h basic: add quota-util.[ch] with some helpers for the Linux quotactl() API 2019-12-17 20:03:40 +01:00
random-util.c random-util: Add an environment variable to disable RDRAND. 2020-09-24 09:22:45 +02:00
random-util.h random-util: add common helper random_write_entropy() for crediting entropy to the kernel's pool 2020-06-24 15:33:27 +02:00
ratelimit.c ratelimit: add ratelimit_configured() helper 2020-10-09 08:58:59 +02:00
ratelimit.h ratelimit: add ratelimit_configured() helper 2020-10-09 08:58:59 +02:00
raw-clone.h codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
raw-reboot.h basic: add a common syscall wrapper around reboot() 2018-02-22 10:42:06 +01:00
replace-var.c tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
replace-var.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
rlimit-util.c tree-wide: drop missing.h 2019-10-31 17:57:03 +09:00
rlimit-util.h move src/shared/rlimit-util.[ch] → src/basic/ 2018-12-01 12:50:45 +01:00
rm-rf.c tree-wide: coccinelle fixes 2020-10-04 12:32:21 +02:00
rm-rf.h rm-rf: add new flag REMOVE_CHMOD 2020-08-25 18:39:45 +02:00
selinux-util.c basic/selinux: work around mallinfo deprecation 2020-10-12 15:51:39 +02:00
selinux-util.h selinux: add apis to set labels/fix labels per fd instead of path 2020-09-28 18:45:54 +02:00
set.h hashmap: introduce {hashmap,set}_put_strdup_full() 2020-10-13 22:39:06 +09:00
sigbus.c util: split out memcmp()/memset() related calls into memory-util.[ch] 2019-03-13 12:16:43 +01:00
sigbus.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
signal-util.c signal-util: add new helper signal_is_blocked() 2019-12-04 10:35:01 +01:00
signal-util.h signal-util: add new helper signal_is_blocked() 2019-12-04 10:35:01 +01:00
siphash24.c headers: add spdx tags to imported files with a known license 2020-10-29 11:32:24 +01:00
siphash24.h headers: add spdx tags to imported files with a known license 2020-10-29 11:32:24 +01:00
smack-util.c tree-wide: drop pointless zero initialization (#16884) 2020-08-28 17:45:54 +02:00
smack-util.h namespace: fix MAC labels of /dev when PrivateDevices=yes 2020-03-12 08:23:27 +00:00
socket-label.c tree-wide: assorted coccinelle fixes 2020-10-09 15:02:23 +02:00
socket-util.c socket-util: make socket_set_recvpktinfo control PACKET_AUXDATA sockopt on AF_PACKET 2020-10-27 14:12:10 +01:00
socket-util.h tree-wide: add helper for IPv4/IPv6 sockopts 2020-09-11 10:33:13 +02:00
sort-util.c tree-wide: use the usual SPDX header for our own files 2020-10-29 10:47:20 +01:00
sort-util.h basic/sort-util: adorn qsort_safe with a prefix underscore 2020-06-03 15:31:28 +02:00
sparse-endian.h tree-wide: use __ prefixed gcc attributes (#10843) 2018-11-20 12:34:08 +09:00
special.h core: automatically add udev dependency for units using RootImage= 2020-04-21 16:31:06 +02:00
stat-util.c stat-util: provide single fallback implementation of statx() 2020-09-03 15:02:34 +02:00
stat-util.h stat-util: provide single fallback implementation of statx() 2020-09-03 15:02:34 +02:00
static-destruct.h tree-wide: use the usual SPDX header for our own files 2020-10-29 10:47:20 +01:00
stdio-util.h util: split out memcmp()/memset() related calls into memory-util.[ch] 2019-03-13 12:16:43 +01:00
strbuf.c util: split out sorting related calls to new sort-util.[ch] 2019-03-13 12:16:43 +01:00
strbuf.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
string-table.c basic/string-table: reduce variable scope 2020-07-16 18:38:03 +02:00
string-table.h basic/string-table: avoid crash when table is sparse 2020-02-27 21:36:58 +01:00
string-util.c Remove FOREACH_WORD and friends 2020-09-09 09:34:55 +02:00
string-util.h Merge pull request #17324 from keszybz/resolvectl-compat-output 2020-10-22 14:57:41 +02:00
strv.c Add strv_prepend 2020-10-21 17:14:37 +01:00
strv.h Merge pull request #13589 from williamvds/systemctl-edit-copy 2020-10-22 11:19:26 +02:00
strxcpyx.c util: introduce strnpcpy() and strnscpy() 2019-05-30 21:08:51 +09:00
strxcpyx.h util: introduce strnpcpy() and strnscpy() 2019-05-30 21:08:51 +09:00
syslog-util.c journald: allow running multiple instances of journald 2020-01-31 15:01:18 +01:00
syslog-util.h journald: allow running multiple instances of journald 2020-01-31 15:01:18 +01:00
terminal-util.c man: fix typos 2020-10-03 11:56:50 +00:00
terminal-util.h basic/terminal-util: rename our replacement highlight-yellow and test both the original and replacement 2020-07-30 14:43:02 +02:00
time-util.c time-util: add timespec_store_nsec() 2020-08-28 14:22:43 +02:00
time-util.h util: make size macros unsigned 2020-10-20 15:51:48 +09:00
tmpfile-util.c tmpfile-util: typo fixes 2020-06-26 10:41:52 +02:00
tmpfile-util.h util-lib: split out all temporary file related calls into tmpfiles-util.c 2018-12-02 13:22:29 +01:00
umask-util.h umask-util: simplify RUN_WITH_UMASK() 2019-04-30 09:52:35 +02:00
unaligned.h tree-wide: use __ prefixed gcc attributes (#10843) 2018-11-20 12:34:08 +09:00
unit-def.c core: let user define start-/stop-timeout behaviour 2020-06-09 10:04:57 +02:00
unit-def.h unit-def: drop pointless 0 initialization of first enum value 2020-09-14 13:05:09 +02:00
unit-name.c unit-name: fix a potential memory leak 2020-07-06 17:13:37 +02:00
unit-name.h basic/unit-name: make sure UnitNameFlags is signed 2019-12-19 20:57:27 +01:00
user-util.c user-util: add mangle_gecos() call for turning strings into fields suitable as GECOS fields 2020-08-07 17:36:11 +02:00
user-util.h Move {uid,gid}_is_*() from basic to shared 2020-09-25 17:18:56 +02:00
utf8.c shared/utf8: add utf8_is_valid_n() 2020-09-01 16:48:40 +02:00
utf8.h shared/utf8: add utf8_is_valid_n() 2020-09-01 16:48:40 +02:00
util.c util: drop unnecessary headers from util.c 2019-11-04 00:40:37 +09:00
util.h pid1: rework environment block copy logic 2019-11-01 11:30:59 +01:00
virt.c basic/virt: Detect PowerVM hypervisor 2020-10-06 08:24:12 +02:00
virt.h basic/virt: Detect PowerVM hypervisor 2020-10-06 08:24:12 +02:00
xattr-util.c stat-util: add new macros for declaring statx variable 2020-09-03 15:02:16 +02:00
xattr-util.h xattr-util: add flistxattr_malloc() that returns a NULSTR 2019-11-19 15:44:58 +01:00