aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2019-03-11 21:40:04 +0100
committerCorinna Vinschen <corinna@vinschen.de>2019-03-11 21:40:04 +0100
commitd9f934c9e9ec5588e6c616e9c63dd348995dafa8 (patch)
tree23ba78be7dd23da2a93252eca83ae1df0e8cd9f3
parent7cbe4b59d6296ed29d2d674d15fcc6333fadf7ed (diff)
downloadnewlib-d9f934c9e9ec5588e6c616e9c63dd348995dafa8.zip
newlib-d9f934c9e9ec5588e6c616e9c63dd348995dafa8.tar.gz
newlib-d9f934c9e9ec5588e6c616e9c63dd348995dafa8.tar.bz2
Cygwin: fix permissions of winpid symlinks
The winpid symlinks got created with no query permissions, so only admins could see all Cygwin processes. Create symlinks so everyone has query permissions instead. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/pinfo.cc3
-rw-r--r--winsup/cygwin/release/3.0.413
2 files changed, 15 insertions, 1 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index 064299e..453861c 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -325,7 +325,8 @@ pinfo::create_winpid_symlink ()
__small_swprintf (pid_name, L"%u", procinfo->pid);
RtlInitUnicodeString (&pid_str, pid_name);
InitializeObjectAttributes (&attr, &sym_str, OBJ_CASE_INSENSITIVE,
- get_shared_parent_dir (), NULL);
+ get_shared_parent_dir (),
+ everyone_sd (SYMBOLIC_LINK_QUERY));
NtCreateSymbolicLinkObject (&winpid_hdl, SYMBOLIC_LINK_ALL_ACCESS,
&attr, &pid_str);
}
diff --git a/winsup/cygwin/release/3.0.4 b/winsup/cygwin/release/3.0.4
new file mode 100644
index 0000000..c545f3e
--- /dev/null
+++ b/winsup/cygwin/release/3.0.4
@@ -0,0 +1,13 @@
+What's new:
+-----------
+
+
+What changed:
+-------------
+
+
+Bug Fixes
+---------
+
+- Fix access to process list
+ Addresses: https://cygwin.com/ml/cygwin/2019-03/msg00253.html