1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +03:00
systemd-stable/src
Lennart Poettering 6c869ad3bd selinux: accept the fact that getxyzcon() can return success and NULL
Inspired by #25664: let's check explicitly for NULL everywhere we do one
of those getXYZcon() calls.

We usually turn this into EOPNOTSUPP, as when selinux is off (which is
supposed to be the only case this can happen according to selinux docs)
we otherwise return EOPNOTSUPP in that case.

Note that in most cases we have an explicit mac_selinux_use() call
beforehand, hence this should mostly not be triggerable codepaths.

(cherry picked from commit af614e45c3)
2022-12-08 23:00:35 +01:00
..
ac-power
activate
analyze analyze: add --image= + --root= to --help text 2022-10-25 17:47:52 +02:00
ask-password
backlight
basic chase-symlink: when converting directory O_PATH fd to real fd, don't bother with /proc/ 2022-12-08 23:00:35 +01:00
binfmt
boot stub: Detect empty LoadOptions when run from EFI shell 2022-12-02 14:17:12 +01:00
busctl shared/format-table: use enum instead of Table.empty_string 2022-09-22 10:16:05 +02:00
cgls
cgroups-agent
cgtop cgtop: Do not rewrite -P or -k options 2022-12-08 21:29:56 +01:00
core selinux: accept the fact that getxyzcon() can return success and NULL 2022-12-08 23:00:35 +01:00
coredump coredumpctl: add --root= + --image= to --help text 2022-10-25 17:47:52 +02:00
creds condition: Check that subsystem is enabled in ConditionSecurity=tpm2 2022-11-07 13:16:26 +00:00
cryptenroll cryptenroll: hook up new TPM2 signed policies with cryptenroll 2022-09-08 16:34:27 +02:00
cryptsetup tree-wide: set description for device manager 2022-10-19 04:46:24 +09:00
debug-generator
delta
detect-virt
dissect dissect: show color in log output 2022-12-08 21:29:56 +01:00
environment-d-generator
escape
firstboot firstboot: fix segfault when --locale-messages= is passed without --locale= 2022-11-04 23:31:28 +00:00
fsck generator: skip fsck if fsck command is missing 2022-09-30 15:01:41 +01:00
fstab-generator
fundamental macro: fix indentation 2022-11-04 23:31:28 +00:00
fuzz fuzz: fuzz-compress: fix copy-and-paste error: buf -> buf2 (#25431) 2022-11-24 17:38:34 +01:00
getty-generator
gpt-auto-generator gpt-auto: rename all functions that operate on a DissectedPartition object add_partition_xyz() 2022-10-17 08:07:58 +02:00
hibernate-resume tree-wide: use the term "initrd" at most places we so far used "initramfs" 2022-09-23 15:10:53 +02:00
home homed: properly initialize all return params 2022-10-24 15:56:59 +02:00
hostname tree-wide: use the term "initrd" at most places we so far used "initramfs" 2022-09-23 15:10:53 +02:00
hwdb
id128
import fd-util: rename CLOSE_AND_REPLACE() -> close_and_replace() 2022-09-17 09:54:41 +02:00
initctl
integritysetup
journal journald: prevent segfault on empty attr/current 2022-12-08 23:00:35 +01:00
journal-remote tree-wide: define and use STRERROR_OR_EOF() 2022-10-11 16:58:21 +02:00
kernel-install Handle MACHINE_ID=uninitialized 2022-11-24 17:38:34 +01:00
libsystemd sd-netlink: fix segfault 2022-12-08 21:29:56 +01:00
libsystemd-network tree-wide: replace "plural(s)" by "plurals" 2022-10-17 15:10:53 +02:00
libudev tree-wide: Use devnum helpers in a few more places 2022-09-01 00:55:37 +09:00
locale kbd-model-map: correct variants for cz-qwerty to include comma 2022-09-29 23:53:26 +01:00
login logind: Properly unescape names of lingering users 2022-12-08 21:29:56 +01:00
machine machinectl: allow --max-addresses=0 2022-10-20 09:57:42 +02:00
machine-id-setup tree-wide: drop unused reference to DecryptedImage 2022-09-18 23:47:20 +09:00
modules-load
mount generator: skip fsck if fsck command is missing 2022-09-30 15:01:41 +01:00
network network: Fix set bond device MAC address failed 2022-12-08 23:00:35 +01:00
notify
nspawn nspawn: allow sched_rr_get_interval_time64 through seccomp filter 2022-11-24 17:38:34 +01:00
nss-myhostname
nss-mymachines
nss-resolve tree-wide: use ASSERT_PTR more 2022-09-13 08:13:27 +02:00
nss-systemd
oom oomd: print dry run output at INFO level 2022-12-08 23:00:35 +01:00
partition repart: respect --discard=no also for block devices 2022-11-24 17:38:34 +01:00
path
portable portable: add a few more useful debug log messages 2022-11-24 17:38:34 +01:00
pstore
quotacheck
random-seed tree-wide: add ERRNO_IS_XATTR_ABSENT() helper 2022-10-10 16:00:15 +02:00
rc-local-generator
remount-fs
reply-password
resolve resolve: format zero-length RDATA according to rfc3597 2022-12-08 21:29:56 +01:00
rfkill tree-wide: Use correct format specifiers 2022-08-30 12:03:28 +02:00
rpm
run run: make --working-directory= work for --scope too 2022-09-22 14:22:21 +02:00
run-generator
shared selinux: accept the fact that getxyzcon() can return success and NULL 2022-12-08 23:00:35 +01:00
shutdown shutdown: rework log_umount_blockers() a bit 2022-08-31 22:53:18 +02:00
sleep
socket-proxy tree-wide: use nested ASSERT_PTR 2022-09-14 08:21:42 +02:00
stdio-bridge
sulogin-shell
sysctl
sysext Merge pull request #24768 from keszybz/table-not-available-2 2022-09-22 14:17:40 +02:00
system-update-generator
systemctl systemctl: do not show unit properties with --all 2022-11-24 17:38:34 +01:00
systemd man: recommend strerror_r() over strerror() 2022-10-11 16:59:00 +02:00
sysupdate Merge pull request #24768 from keszybz/table-not-available-2 2022-09-22 14:17:40 +02:00
sysusers tree-wide: drop unused reference to DecryptedImage 2022-09-18 23:47:20 +09:00
sysv-generator
test test-fs-util: Add relative path chase_symlinks() tests 2022-12-08 23:00:35 +01:00
timedate tree-wide: use ASSERT_PTR more 2022-09-13 08:13:27 +02:00
timesync sd-network: make sd_network_link_get_dns() or friends return -ENODATA 2022-09-27 10:42:31 +09:00
tmpfiles tmpfiles: log at info level when some allowed failures occur 2022-11-24 17:38:34 +01:00
tty-ask-password-agent
udev udev: make sure auto-root logic also works in UKIs booted from XBOOTLDR 2022-11-24 17:38:34 +01:00
update-done
update-utmp
user-sessions
userdb tree-wide: replace "plural(s)" by "plurals" 2022-10-17 15:10:53 +02:00
vconsole
veritysetup
version
volatile-root
xdg-autostart-generator xdg-autostart-service: Add comments to tilde expansion, use path_join() 2022-10-17 16:42:39 +02:00