1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-04 13:51:24 +03:00
systemd/src/basic
Zbigniew Jędrzejewski-Szmek aa73f181e9 basic/string-table: avoid crash when table is sparse
Generated _from_string() would crash when invoked on a table with some
holes.
2020-02-27 21:36:58 +01:00
..
linux linux: update headers 2019-12-16 04:37:50 +09:00
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: rework get_block_device() 2019-12-13 18:38:35 +09:00
blockdev-util.h
btrfs-util.c tree-wide: drop stat.h or statfs.h when stat-util.h is included 2019-11-04 00:30:32 +09:00
btrfs-util.h btrfs-util: expose SIGINT behaviour in snapshot copy fallback, too 2019-07-17 11:14:11 +02:00
build.h basic/build.h: fix typo 2019-08-20 12:01:23 +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 tree-wide: drop missing.h 2019-10-31 17:57:03 +09:00
cap-list.h
cap-to-name.awk
capability-util.c basic: Drop ambient inherited capabilities by default 2019-11-26 11:21:40 -08:00
capability-util.h nspawn: don't hard fail when setting capabilities 2019-06-20 21:46:36 +02:00
cgroup-util.c cgroup-util: add new cg_remove_xattr() for removing xattr from cgroup 2019-11-20 17:50:12 +01:00
cgroup-util.h cgroup-util: add new cg_remove_xattr() for removing xattr from cgroup 2019-11-20 17:50:12 +01: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 tree-wide: drop dirent.h when dirent-util.h is included 2019-11-04 00:30:32 +09: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 copy: add flag COPY_MAC_CREATE to create with correct label 2019-11-28 12:17:56 +01:00
copy.h copy: add flag COPY_MAC_CREATE to create with correct label 2019-11-28 12:17:56 +01: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 basic/utf8: do not read past end of string when looking for a multi-byte character 2019-02-26 12:37:40 +01:00
device-nodes.h
dirent-util.c
dirent-util.h
efivars.c Disable reading SystemdOptions EFI Var when in SecureBoot mode 2020-01-16 18:46:56 +01:00
efivars.h Disable reading SystemdOptions EFI Var when in SecureBoot mode 2020-01-16 18:46:56 +01:00
env-file.c environment-d-generator: output logs in debug mode 2019-08-30 13:17:37 +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 tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09: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: add new ERRNO_IS_DISK_SPACE() helper 2019-12-04 10:57:44 +01:00
escape.c escape: introduce UNESCAPE_ACCEPT_NUL flag 2020-01-27 18:04:46 +09:00
escape.h escape: introduce UNESCAPE_ACCEPT_NUL flag 2020-01-27 18:04:46 +09: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 escape: introduce UNESCAPE_ACCEPT_NUL flag 2020-01-27 18:04:46 +09:00
extract-word.h Rename EXTRACT_QUOTES to EXTRACT_UNQUOTE 2019-06-28 11:35:05 +02:00
fd-util.c include missing_fcntl.h where needed 2019-11-07 10:17:44 +00: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: add WRITE_STRING_FILE_MODE_0600 flag for writing files 2019-12-02 09:47:00 +01:00
fileio.h fileio: add WRITE_STRING_FILE_MODE_0600 flag for writing files 2019-12-02 09:47:00 +01: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 fs-util: make sure we output normalized paths in chase_symlinks() 2020-01-28 22:53:59 +01:00
fs-util.h basic/fs-util: change CHASE_OPEN flag into a separate output parameter 2019-10-24 22:44:24 +09: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 tree-wide: drop glob.h when glob-util.h is included 2019-11-04 00:30:32 +09:00
glob-util.h tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
gunicode.c
gunicode.h
hash-funcs.c Remove path_compare_func() alias for path_compare() 2019-11-15 14:47:45 +01:00
hash-funcs.h Remove path_compare_func() alias for path_compare() 2019-11-15 14:47:45 +01:00
hashmap.c tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
hashmap.h basic/hashmap: add hashops variant that does strdup/freeing on its own 2019-07-19 16:50:36 +02:00
hexdecoct.c util: extend unhexmem() to accept secure flag 2019-04-12 10:10:24 +09:00
hexdecoct.h util: extend unhexmem() to accept secure flag 2019-04-12 10:10:24 +09:00
hostname-util.c tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
hostname-util.h Partially unify hostname_is_valid() and dns_name_is_valid() 2018-12-10 09:56:56 +01:00
in-addr-util.c util-lib: move things that parse ifnames to shared/ 2020-01-11 12:07:28 +01:00
in-addr-util.h util-lib: move things that parse ifnames to shared/ 2020-01-11 12:07:28 +01:00
io-util.c tree-wide: drop time.h when time-util.h is included 2019-11-04 00:30:32 +09: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
label.h
limits-util.c core: make TasksMax a partially dynamic property 2019-11-14 18:41:54 +01: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: fix minor coding style issue 2018-11-24 04:26:10 +09:00
locale-util.c locale-util: add special glyph Σ 2020-01-20 17:42:03 +01:00
locale-util.h locale-util: add special glyph Σ 2020-01-20 17:42:03 +01:00
log.c tree-wide: drop stdio.h when stdio-util.h is included 2019-11-04 00:30:32 +09:00
log.h Drop trailing slash from assert_cc() definition 2019-07-17 12:57:20 +02:00
login-util.c tree-wide: drop double newline 2019-11-04 00:30:32 +09:00
login-util.h
macro.h macro: introduce new GREEDY_ALLOC_ROUND_UP() helper 2019-12-09 18:35:10 +01: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 tree-wide: yet another batch of coccinelle recommendations 2020-01-02 13:32:55 +01: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 basic: add quota-util.[ch] with some helpers for the Linux quotactl() API 2019-12-17 20:03:40 +01:00
missing_audit.h missing: move audit related definitions to missing_audit.h 2018-12-06 13:25:24 +01:00
missing_capability.h missing: move capabilities to missing_capability.h 2018-12-04 08:38:14 +01: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_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: drop several missing_*.h and import relevant headers from kernel-5.0 2019-04-11 19:00:37 +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 missing: move rand related definitions to missing_random.h 2018-12-06 13:26:55 +01: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 socket-util: add wrappers for binding socket to ifindex/ifname 2019-03-18 12:02:32 +01:00
missing_stat.h missing: use integer types used by kernel 2018-12-06 13:24:00 +01: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 seccomp: real syscall numbers are >= 0 2019-12-09 11:29:06 +01: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
mkdir.c tree-wide: drop stat.h or statfs.h when stat-util.h is included 2019-11-04 00:30:32 +09:00
mkdir.h
mountpoint-util.c tree-wide: drop missing.h 2019-10-31 17:57:03 +09:00
mountpoint-util.h Split out part of mount-util.c into mountpoint-util.c 2018-11-29 21:03:44 +01:00
MurmurHash2.c
MurmurHash2.h
namespace-util.c tree-wide: drop missing.h 2019-10-31 17:57:03 +09:00
namespace-util.h util: split out namespace related stuff into a new namespace-util.[ch] pair 2019-03-13 12:16:38 +01: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 basic/ordered-set: export networkd function to print string sets 2019-02-21 12:00:05 +01:00
ordered-set.h ordered-set: add ordered_set_first() helper 2019-12-04 10:57:37 +01:00
parse-util.c network: add SuppressPrefixLength option to RoutingPolicyRule (#14736) 2020-02-03 08:25:48 +09:00
parse-util.h network: add SuppressPrefixLength option to RoutingPolicyRule (#14736) 2020-02-03 08:25:48 +09:00
path-util.c path-util: introduce path_strv_contains() helper 2020-01-09 11:17:21 +01:00
path-util.h path-util: express PATH_IN_SET() through path_strv_contains() 2020-01-09 11:17:47 +01: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 Disable reading SystemdOptions EFI Var when in SecureBoot mode 2020-01-16 18:46:56 +01:00
proc-cmdline.h util-lib: move shall_restore_state() to shared/reboot-util 2019-09-16 18:08:01 +02:00
process-util.c core: in execute, Never fail setting Nice priority 2020-01-02 20:50:14 +01:00
process-util.h util: uid_t, gid_t, and pid_t must be 32bit 2020-02-02 17:13:08 +01:00
procfs-util.c procfs-util: expose functionality to query total memory 2019-01-22 17:43:13 +01:00
procfs-util.h procfs-util: expose functionality to query total memory 2019-01-22 17:43:13 +01:00
quota-util.c basic: add quota-util.[ch] with some helpers for the Linux quotactl() API 2019-12-17 20:03:40 +01: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: call initialize_srand() after fork() 2019-12-17 15:03:36 +09:00
random-util.h random-seed: move pool size determination to random-util.[ch] 2019-07-25 18:16:46 +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 tree-wide: drop stat.h or statfs.h when stat-util.h is included 2019-11-04 00:30:32 +09:00
rm-rf.h rm-rf: introduce new flag REMOVE_MISSING_OK 2019-07-11 12:18:51 +02:00
selinux-util.c basic/selinux-util: expose _cleanup_freecon_ 2020-02-06 22:27:21 +01:00
selinux-util.h basic/selinux-util: expose _cleanup_freecon_ 2020-02-06 22:27:21 +01:00
set.h basic/set: const-ify set_first() 2019-10-07 12:02:12 -07: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: introduce siphash24_compress_boolean() 2019-06-19 21:03:16 +09:00
siphash24.h util: introduce siphash24_compress_boolean() 2019-06-19 21:03:16 +09:00
smack-util.c tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
smack-util.h
socket-label.c util-lib: move things that parse ifnames to shared/ 2020-01-11 12:07:28 +01:00
socket-util.c util-lib: move things that parse ifnames to shared/ 2020-01-11 12:07:28 +01:00
socket-util.h util-lib: move things that parse ifnames to shared/ 2020-01-11 12:07:28 +01: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 util: split out sorting related calls to new sort-util.[ch] 2019-03-13 12:16:43 +01:00
sparse-endian.h tree-wide: use __ prefixed gcc attributes (#10843) 2018-11-20 12:34:08 +09:00
special.h pid1: use initrd.target in the initramfs by default 2019-11-28 19:59:33 +01:00
stat-util.c tree-wide: drop magic.h when missing_magic.h is included 2019-11-04 00:30:32 +09:00
stat-util.h headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01: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
string-table.h basic/string-table: avoid crash when table is sparse 2020-02-27 21:36:58 +01:00
string-util.c string-util: add brief explanatory comment 2020-01-31 15:01:39 +01:00
string-util.h string-util: add helper for extracting n'th line of a string 2020-01-13 16:37:42 +01:00
strv.c strv: get rid of strv_clear() 2020-01-21 10:07:34 +01:00
strv.h strv: get rid of strv_clear() 2020-01-21 10:07:34 +01: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 basic/terminal-util: add support for $NO_COLOR 2019-11-24 13:59:22 +01:00
terminal-util.h Revert "Move verify_vc_kbmode() to terminal-util.c as vt_verify_kbmode()" 2019-07-18 16:21:02 +02:00
time-util.c time-util: also use 32bit hack on EOVERFLOW 2019-12-19 12:46:24 +01:00
time-util.h time-util: introduce jiffies_to_usec() 2019-07-29 23:52:37 +09:00
tmpfile-util.c basic/tmpfile: avoid maybe-uninitialized warning in mkostemp_safe() 2019-12-16 14:25:31 +01: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/swap: support "systemctl clean" for swap units 2019-08-28 23:09:54 +09:00
unit-def.h core/swap: support "systemctl clean" for swap units 2019-08-28 23:09:54 +09:00
unit-name.c tree-wide: yet another batch of coccinelle recommendations 2020-01-02 13:32:55 +01:00
unit-name.h basic/unit-name: make sure UnitNameFlags is signed 2019-12-19 20:57:27 +01:00
user-util.c util: add parse_uid_range() helper function 2020-02-02 22:43:38 +09:00
user-util.h util: add parse_uid_range() helper function 2020-02-02 22:43:38 +09:00
utf8.c tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
utf8.h util-lib: add truncation based on printable width to utf8_escape_non_printable() 2019-05-22 09:50:19 +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 virt: do not define vm_from_string() for non-x86 architecture 2020-01-21 13:47:08 +01:00
virt.h basic/virt: treat "podman" as separate container type 2019-04-29 15:36:26 +02:00
xattr-util.c xattr-util: add flistxattr_malloc() that returns a NULSTR 2019-11-19 15:44:58 +01:00
xattr-util.h xattr-util: add flistxattr_malloc() that returns a NULSTR 2019-11-19 15:44:58 +01:00