aboutsummaryrefslogtreecommitdiffstats
path: root/src/fcopy/main.c
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2021-01-04 18:48:35 +0100
committerLibravatar smitsohu <smitsohu@gmail.com>2021-01-04 19:02:41 +0100
commit18e806cf6033697cefca58a2be55377c8d92dbd4 (patch)
tree9eb7191f9534affa7586ce598ab54c4630f011fb /src/fcopy/main.c
parentfix #3859 (#3863) (diff)
downloadfirejail-18e806cf6033697cefca58a2be55377c8d92dbd4.tar.gz
firejail-18e806cf6033697cefca58a2be55377c8d92dbd4.tar.zst
firejail-18e806cf6033697cefca58a2be55377c8d92dbd4.zip
non-dumpable plugins
(hopefully) fixes the issues that led to reverting commits 6abb65d328af61d67361890743190bd4c57f8e3c and 98e42dc6da4e4b1e47ed2aa020012d4dedc1e80e
Diffstat (limited to 'src/fcopy/main.c')
-rw-r--r--src/fcopy/main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/fcopy/main.c b/src/fcopy/main.c
index 67237b4ea..0a4a61e2a 100644
--- a/src/fcopy/main.c
+++ b/src/fcopy/main.c
@@ -23,7 +23,6 @@
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>
27 26
28#if HAVE_SELINUX 27#if HAVE_SELINUX
29#include <sys/stat.h> 28#include <sys/stat.h>
@@ -412,10 +411,7 @@ int main(int argc, char **argv) {
412 exit(1); 411 exit(1);
413 } 412 }
414 413
415#ifdef WARN_DUMPABLE 414 warn_dumpable();
416 if (prctl(PR_GET_DUMPABLE, 0, 0, 0, 0) == 1 && getuid())
417 fprintf(stderr, "Error fcopy: I am dumpable\n");
418#endif
419 415
420 // trim trailing chars 416 // trim trailing chars
421 if (src[strlen(src) - 1] == '/') 417 if (src[strlen(src) - 1] == '/')