aboutsummaryrefslogtreecommitdiffstats
path: root/src/fcopy/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fcopy/main.c')
-rw-r--r--src/fcopy/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fcopy/main.c b/src/fcopy/main.c
index 83d9c17e6..bda7e2f1b 100644
--- a/src/fcopy/main.c
+++ b/src/fcopy/main.c
@@ -23,6 +23,7 @@
23#include <ftw.h> 23#include <ftw.h>
24#include <errno.h> 24#include <errno.h>
25#include <pwd.h> 25#include <pwd.h>
26#include <sys/prctl.h>
26 27
27#if HAVE_SELINUX 28#if HAVE_SELINUX
28#include <sys/stat.h> 29#include <sys/stat.h>
@@ -411,6 +412,11 @@ int main(int argc, char **argv) {
411 exit(1); 412 exit(1);
412 } 413 }
413 414
415#ifdef WARN_DUMPABLE
416 if (prctl(PR_GET_DUMPABLE, 0, 0, 0, 0) == 1 && getuid() && getenv("FIREJAIL_PLUGIN"))
417 fprintf(stderr, "Error fcopy: I am dumpable\n");
418#endif
419
414 // trim trailing chars 420 // trim trailing chars
415 if (src[strlen(src) - 1] == '/') 421 if (src[strlen(src) - 1] == '/')
416 src[strlen(src) - 1] = '\0'; 422 src[strlen(src) - 1] = '\0';