From 756e5f595b642f03fcc4eabb03885a0ada178dfc4bd5b8e3cddfaf8a3e70dab8 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 3 Mar 2014 14:28:50 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=530 --- ...ection-of-missing-proc-self-loginuid.patch | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 0001-nspawn-fix-detection-of-missing-proc-self-loginuid.patch diff --git a/0001-nspawn-fix-detection-of-missing-proc-self-loginuid.patch b/0001-nspawn-fix-detection-of-missing-proc-self-loginuid.patch new file mode 100644 index 00000000..c4c2f4cb --- /dev/null +++ b/0001-nspawn-fix-detection-of-missing-proc-self-loginuid.patch @@ -0,0 +1,31 @@ +From 13e8ceb84e56907d73b6b07418deb37faaf0e66d Mon Sep 17 00:00:00 2001 +From: Tero Roponen +Date: Tue, 25 Feb 2014 17:19:35 +0200 +Subject: [PATCH] nspawn: fix detection of missing /proc/self/loginuid + +Running 'systemd-nspawn -D /srv/Fedora/' gave me this error: + Failed to read /proc/self/loginuid: No such file or directory + + Container Fedora failed with error code 1. + +This patch fixes the problem. +--- + src/nspawn/nspawn.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git src/nspawn/nspawn.c src/nspawn/nspawn.c +index 1fe641b..92b6728 100644 +--- src/nspawn/nspawn.c ++++ src/nspawn/nspawn.c +@@ -1349,7 +1349,7 @@ static int reset_audit_loginuid(void) { + return 0; + + r = read_one_line_file("/proc/self/loginuid", &p); +- if (r == -EEXIST) ++ if (r == -ENOENT) + return 0; + if (r < 0) { + log_error("Failed to read /proc/self/loginuid: %s", strerror(-r)); +-- +1.7.9.2 +