Systemd/src/basic
Lennart Poettering 8fe8f3aaba basic: update fd_get_path() to use proc_mounted() helper
We use it pretty much everywhere else, hence use it here too.

This also changes the error generated from EOPNOTSUPP to ENOSYS, to
match the other cases where we do such a check. One user checked for
EOPNOTSUPP which is updated to check for ENOSYS instead.
2020-09-23 18:20:38 +02:00
..
linux util: update kernel headers (v5.9-rc5) 2020-09-17 14:51:47 +09:00
MurmurHash2.c
MurmurHash2.h
af-list.c util: cast smaller type to large type 2018-12-02 05:58:18 +01:00
af-list.h
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: drop _alloc_ decorator from memdup_suffix0() 2019-07-13 11:04:20 +02:00
architecture.c
architecture.h
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
audit-util.c codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
audit-util.h
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: copy hardlinks wherever we deal with possibly large OS-style trees 2020-09-09 20:21:49 +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 coredump: add zstandard support for coredumps 2020-05-04 10:59:43 +02:00
bus-label.c
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 basic/cgroup-util: port over to string_contains_word() 2020-09-09 09:34:54 +02:00
cgroup-util.h core: introduce support for cgroup freezer 2020-04-30 19:02:51 +02: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 copy: optionally, reproduce hardlinks from source in destination 2020-09-09 20:21:29 +02:00
def.h Move PLYMOUTH_SOCKET define to def.h and nuke plymouth-util.h 2019-10-24 11:48:08 +02: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
dirent-util.h
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 Rename strv_split_extract() to strv_split_full() 2020-09-09 09:34:55 +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
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 tree-wide: make hash_ops typesafe 2018-12-02 07:53:27 +01:00
ether-addr-util.h tree-wide: make hash_ops typesafe 2018-12-02 07:53:27 +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 basic: update fd_get_path() to use proc_mounted() helper 2020-09-23 18:20:38 +02:00
fd-util.h util: move ERRNO_IS_xyz macros to errno-util.h 2019-03-19 15:29:44 +01:00
fileio.c fileio: allow to read base64/hex data as strings 2020-07-21 10:31:50 +02:00
fileio.h fileio: add brief explanations for flags 2020-07-21 10:32:01 +02:00
format-util.c tree-wide: drop double newline 2019-11-04 00:30:32 +09:00
format-util.h cgroup: systemctl: Don't display NULL if protection was set to max 2020-02-05 18:32:33 +01:00
fs-util.c basic: update fd_get_path() to use proc_mounted() helper 2020-09-23 18:20:38 +02:00
fs-util.h fs-util: add stat_warn_permissions() that operates on struct stat instead of fd 2020-06-02 19:31:36 +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
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
gunicode.h
hash-funcs.c shared/unit-file: make sure the old hashmaps and sets are freed upon replacement 2020-05-28 18:51:52 +02:00
hash-funcs.h shared/unit-file: make sure the old hashmaps and sets are freed upon replacement 2020-05-28 18:51:52 +02:00
hashmap.c hashmap: make sure to initialize shared hash key atomically 2020-09-12 09:33:33 +02:00
hashmap.h tree-wide: define iterator inside of the macro 2020-09-08 12:14:05 +02: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
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: drop missing.h 2019-10-31 17:57:03 +09:00
khash.h
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: don't explicitly re-open log for failed assertions 2020-08-18 10:31:25 +02:00
log.h basic/log: make log_{info,warning,...} return void 2020-09-08 17:40:46 +02:00
login-util.c tree-wide: drop double newline 2019-11-04 00:30:32 +09:00
login-util.h
macro.h Add string_contains_word_strv() 2020-09-04 12:59:26 +02:00
memfd-util.c tree-wide: drop missing.h 2019-10-31 17:57:03 +09:00
memfd-util.h
memory-util.c util: move some raw memory functions from string-util.h → memory-util.h 2019-03-14 13:25:51 +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 dlfcn-util: add dlsym_many_and_warn() helper 2020-06-25 09:27:11 +02:00
missing_audit.h missing: move audit related definitions to missing_audit.h 2018-12-06 13:25:24 +01:00
missing_capability.h basic/missing_capability: clean up our defines and check that our fallback is up-to-date 2020-08-27 20:20:23 +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 basic/missing_syscall: fix syscall numbers for arm64 :( 2020-08-24 19:27:52 +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
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 exec: Add kill action to system call filters 2020-09-15 12:54:17 +03:00
parse-util.h exec: Add kill action to system call filters 2020-09-15 12:54:17 +03:00
path-lookup.c path-lookup: path_join() all the things! 2020-08-19 18:28:39 +02:00
path-lookup.h Replace gendered pronouns with gender neutral ones. (#16844) 2020-08-27 11:52:48 +09:00
path-util.c path: Improve $PATH search directory case 2020-08-27 00:52:20 +01:00
path-util.h core: add credentials logic 2020-08-25 19:45:35 +02: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 all: fix minor typos 2020-07-07 18:52:49 +09: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.h Drop RATELIMIT macros 2019-09-20 16:05:53 +02:00
raw-clone.h codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
raw-reboot.h
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
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 rm-rf: add new flag REMOVE_CHMOD 2020-08-25 18:39:45 +02:00
rm-rf.h rm-rf: add new flag REMOVE_CHMOD 2020-08-25 18:39:45 +02:00
selinux-util.c selinux: early exit in mac_selinux_maybe_reload if not initialized 2020-09-05 21:39:12 +02:00
selinux-util.h selinux: use SELinux status page 2020-08-27 10:28:53 +02:00
set.h tree-wide: define iterator inside of the macro 2020-09-08 12:14:05 +02:00
sigbus.c util: split out memcmp()/memset() related calls into memory-util.[ch] 2019-03-13 12:16:43 +01:00
sigbus.h
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 util: make siphash24_compress_boolean() inline 2020-07-22 19:55:14 +09:00
siphash24.h Rework how we cache mtime to figure out if units changed 2020-08-31 20:53:38 +02: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: add helper for IPv4/IPv6 sockopts 2020-09-11 10:33:13 +02:00
socket-util.c socket-util: reset length argument for second getsockopt call in fd_[gs]et_rcvbuf 2020-09-15 09:35:36 +09:00
socket-util.h tree-wide: add helper for IPv4/IPv6 sockopts 2020-09-11 10:33:13 +02:00
sort-util.c util: split out sorting related calls to new sort-util.[ch] 2019-03-13 12:16:43 +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 static-destruct: add missing closing '(' in comment 2019-11-01 11:31: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
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 Remove FOREACH_WORD and friends 2020-09-09 09:34:55 +02:00
strv.c Rename strv_split_extract() to strv_split_full() 2020-09-09 09:34:55 +02:00
strv.h Rename strv_split_extract() to strv_split_full() 2020-09-09 09:34:55 +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 fileio: fileno() can realistically return -1 2020-04-13 11:26:49 +02: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 time-util: add timespec_store_nsec() 2020-08-28 14:22:43 +02: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 user-util: add mangle_gecos() call for turning strings into fields suitable as GECOS fields 2020-08-07 17:36:11 +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 nspawn: provide $container and $container_uuid in /run/host too 2020-08-20 10:17:55 +02:00
virt.h basic/virt: treat "pouch" as a container type (id: pouch) 2020-08-20 09:48:13 +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