chiark / gitweb /
import: we need CAP_DAC_OVERRIDE for untarring systems after all
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Jan 2015 00:12:10 +0000 (01:12 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Jan 2015 00:17:55 +0000 (01:17 +0100)
src/import/import-common.c

index f464313..e5531b8 100644 (file)
@@ -471,7 +471,8 @@ int import_fork_tar(const char *path, pid_t *ret) {
                         (1ULL << CAP_FOWNER) |
                         (1ULL << CAP_FSETID) |
                         (1ULL << CAP_MKNOD) |
-                        (1ULL << CAP_SETFCAP);
+                        (1ULL << CAP_SETFCAP) |
+                        (1ULL << CAP_DAC_OVERRIDE);
 
                 /* Child */