1
0
mirror of https://github.com/systemd/systemd synced 2025-09-27 15:54:47 +02:00

Compare commits

..

No commits in common. "a0203ac14c804240b39615ed5d4b044149c4b79d" and "5bf7438ff025ae05daf1b706f204f31373d5ab82" have entirely different histories.

3 changed files with 7 additions and 10 deletions

View File

@ -46,8 +46,7 @@ _journalctl() {
--version --list-catalog --update-catalog --list-boots
--show-cursor --dmesg -k --pager-end -e -r --reverse
--utc -x --catalog --no-full --force --dump-catalog
--flush --rotate --sync --relinquish-var
--smart-relinquish-var --no-hostname -N --fields
--flush --rotate --sync --no-hostname -N --fields
--list-namespaces --list-invocations -I -v --verbose'
[ARG]='-b --boot -D --directory -i --file -F --field -t --identifier
-T --exclude-identifier --facility -M --machine -o --output

View File

@ -6,7 +6,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/file.h>
#include <unistd.h>
#include "sd-device.h"

View File

@ -1454,21 +1454,20 @@ testcase_link_journal_host() {
systemd-id128 new > "$root"/etc/machine-id
hoge="/var/log/journal/$(cat "$root"/etc/machine-id)/"
mkdir -p "$hoge"
# The systemd-journal group is not mapped, so ensure the directory is owned by root:root
chown root:root "$hoge"
mkdir -p /var/log/journal
hoge="/var/log/journal/$(cat "$root"/etc/machine-id)/hoge"
for i in no yes pick; do
systemd-nspawn \
--directory="$root" --private-users="$i" --link-journal=host \
bash -xec 'p="/var/log/journal/$(cat /etc/machine-id)"; mountpoint "$p"; [[ "$(stat "$p" --format=%u)" == 0 ]]; touch "$p/hoge"'
[[ "$(stat "${hoge}/hoge" --format=%u)" == 0 ]]
rm "${hoge}/hoge"
[[ "$(stat "$hoge" --format=%u)" == 0 ]]
rm "$hoge"
done
rm -fr "$root" "$hoge"
rm -fr "$root"
}
testcase_cap_net_bind_service() {