]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: fix permissions of winpid symlinks
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 11 Mar 2019 20:40:04 +0000 (21:40 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 11 Mar 2019 20:40:04 +0000 (21:40 +0100)
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>
winsup/cygwin/pinfo.cc
winsup/cygwin/release/3.0.4 [new file with mode: 0644]

index 064299e0c9782842b8f5b9d8ad717a96dc032d09..453861c812777aac085a07bb0bcf4ccd042b0d86 100644 (file)
@@ -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 (file)
index 0000000..c545f3e
--- /dev/null
@@ -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
This page took 0.033655 seconds and 5 git commands to generate.