summaryrefslogtreecommitdiff
path: root/src/import/import-common.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-23 01:12:10 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-23 01:17:55 +0100
commite026c242af5b724da53e4944aab2645547644cf7 (patch)
treeb1ac3f01f105c9939ef3c5f0c2984db19d83efd6 /src/import/import-common.c
parentd875aa8ce10b458dc218c0d98f4a82c8904d6d03 (diff)
import: we need CAP_DAC_OVERRIDE for untarring systems after all
Diffstat (limited to 'src/import/import-common.c')
-rw-r--r--src/import/import-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/import/import-common.c b/src/import/import-common.c
index f4643133e9..e5531b89c5 100644
--- a/src/import/import-common.c
+++ b/src/import/import-common.c
@@ -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 */