summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2014-09-24 22:00:33 +0200
committerJulian Andres Klode <jak@debian.org>2014-09-24 22:00:57 +0200
commit48ed0977d23aeddfea58be967082ded0833fe227 (patch)
tree158198551a1cb0a85897057ab78c050b9c257972 /apt-pkg
parentbdc00df54d97c2825ce37dd1c249f633f199a80b (diff)
DropPrivs: Add some comments for the more obscure setuid/setgid functions
Git-Dch: ignore
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/fileutl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index 6b54c81f9..b092a7798 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -2231,6 +2231,7 @@ bool DropPrivs()
return _error->Error("Could not switch effective user");
#ifdef HAVE_GETRESUID
+ // verify that the saved set-user-id was changed as well
uid_t ruid = 0;
uid_t euid = 0;
uid_t suid = 0;
@@ -2241,6 +2242,7 @@ bool DropPrivs()
#endif
#ifdef HAVE_GETRESGID
+ // verify that the saved set-group-id was changed as well
gid_t rgid = 0;
gid_t egid = 0;
gid_t sgid = 0;