Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-03-02 02:14:25 +0300
committerCorinna Vinschen <corinna@vinschen.de>2006-03-02 02:14:25 +0300
commit352059d4b140fa3a1ae840f3f539fc92b49f7c8a (patch)
tree777fa70abbe6634b601f788e0123a847f237a463 /winsup
parent24f0349c1e7cb64bb13eadbe3f79e270112e0a45 (diff)
* sec_helper.cc (set_cygwin_privileges): Request SE_BACKUP_NAME
privileges.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/sec_helper.cc1
2 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 9989d55c2..eaf2dce98 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2006-03-01 Corinna Vinschen <corinna@vinschen.de>
+ * sec_helper.cc (set_cygwin_privileges): Request SE_BACKUP_NAME
+ privileges.
+
+2006-03-01 Corinna Vinschen <corinna@vinschen.de>
+
* fhandler_proc.cc (fhandler_proc::fstat): Always return fixed link
count of 1 for /proc directory instead of incorrect PROC_LINK_COUNT.
diff --git a/winsup/cygwin/sec_helper.cc b/winsup/cygwin/sec_helper.cc
index 4abbfddcd..d8cd16062 100644
--- a/winsup/cygwin/sec_helper.cc
+++ b/winsup/cygwin/sec_helper.cc
@@ -439,6 +439,7 @@ void
set_cygwin_privileges (HANDLE token)
{
set_privilege (token, SE_RESTORE_PRIV, true);
+ set_privilege (token, SE_BACKUP_PRIV, true);
set_privilege (token, SE_CHANGE_NOTIFY_PRIV, !allow_traverse);
}