summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/fileutl.h
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-06-18 10:47:19 +0200
committerMichael Vogt <mvo@debian.org>2014-06-18 10:47:57 +0200
commit17091f2f33de16c2dae501e7868f7aec4fc3452f (patch)
treef3eed549bbcb50a46d7c10aa7c3a048cf7fee166 /apt-pkg/contrib/fileutl.h
parentb6fea8bbe25e3c0312de72c99b0d49c699d02b7b (diff)
parentfc1a78d8e9b958f3d65fe1c03494d785314f9816 (diff)
Merge remote-tracking branch 'mvo/feature/drop-rights' into debian/experimental
Conflicts: apt-pkg/contrib/fileutl.cc apt-pkg/contrib/fileutl.h
Diffstat (limited to 'apt-pkg/contrib/fileutl.h')
-rw-r--r--apt-pkg/contrib/fileutl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/contrib/fileutl.h b/apt-pkg/contrib/fileutl.h
index 0b4d94885..e04f75e2a 100644
--- a/apt-pkg/contrib/fileutl.h
+++ b/apt-pkg/contrib/fileutl.h
@@ -193,9 +193,13 @@ pid_t ExecFork(std::set<int> keep_fds);
void MergeKeepFdsFromConfiguration(std::set<int> &keep_fds);
bool ExecWait(pid_t Pid,const char *Name,bool Reap = false);
+
// check if the given file starts with a PGP cleartext signature
bool StartsWithGPGClearTextSignature(std::string const &FileName);
+// process releated
+bool DropPrivs();
+
// File string manipulators
std::string flNotDir(std::string File);
std::string flNotFile(std::string File);