From 9e18bf8a10a3b9b948c15853ad716cf8e3673fcf Mon Sep 17 00:00:00 2001 From: smitsohu Date: Wed, 29 Sep 2021 15:49:52 +0200 Subject: add more EUID improvements --- src/fcopy/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fcopy') diff --git a/src/fcopy/main.c b/src/fcopy/main.c index 31810de9a..f279af89f 100644 --- a/src/fcopy/main.c +++ b/src/fcopy/main.c @@ -88,7 +88,8 @@ static void selinux_relabel_path(const char *path, const char *inside_path) { if (arg_debug) printf("Relabeling %s as %s (%s)\n", path, inside_path, fcon); - setfilecon_raw(procfs_path, fcon); + if (setfilecon_raw(procfs_path, fcon) != 0 && arg_debug) + printf("Cannot relabel %s: %s\n", path, strerror(errno)); } freecon(fcon); close: -- cgit v1.2.3-54-g00ecf