From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 71247 invoked by alias); 24 Mar 2019 19:48:47 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 71100 invoked by uid 89); 24 Mar 2019 19:48:30 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,KAM_NUMSUBJECT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=exclusively, HX-Spam-Relays-External:ESMTPA X-HELO: vsmx009.vodafonemail.xion.oxcs.net Received: from vsmx009.vodafonemail.xion.oxcs.net (HELO vsmx009.vodafonemail.xion.oxcs.net) (153.92.174.87) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 24 Mar 2019 19:48:27 +0000 Received: from vsmx001.vodafonemail.xion.oxcs.net (unknown [192.168.75.191]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTP id DA51DC0357 for ; Sun, 24 Mar 2019 19:48:18 +0000 (UTC) Received: from Gertrud (unknown [87.185.218.207]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTPA id ADD62300064 for ; Sun, 24 Mar 2019 19:48:16 +0000 (UTC) From: Achim Gratz To: cygwin@cygwin.com Subject: Re: [PATCH] default ps -W process start time to system boot time when inaccessible, 0, -1 References: <20190323034522.9688-1-Brian.Inglis@SystematicSW.ab.ca> <87d0mh5x3u.fsf@Rainer.invalid> <20190323183653.GB3471@calimero.vinschen.de> <874l7tbfh6.fsf@Rainer.invalid> <4dfdfce1-245d-98fe-0c49-890ba8ec8dd4@SystematicSw.ab.ca> <874l7s65yv.fsf@Rainer.invalid> <871s2wm956.fsf@Rainer.invalid> Date: Sun, 24 Mar 2019 19:48:00 -0000 In-Reply-To: (Brian Inglis's message of "Sun, 24 Mar 2019 13:16:26 -0600") Message-ID: <87wokokq9t.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2019-03/txt/msg00562.txt.bz2 Brian Inglis writes: > System processes with more recent process start times seem to make process times > available to unelevated processes. > Do startup system processes not have this info available to unelevated processes > because of some security policy, timing, or possible race conditions with system > process and performance monitor startup? I don't understand why you keep talking exclusively about system startup processes, these are just a subset (if a particularly stubborn one). The process start time info is generally unavailable for an unprivileged user (since it requires to "open" the process") except for processes started under the same user account in the same user session. There is a security token (I forgot the name, but it's been posted on this list a few days ago) you can add to user accounts so they get to see more (but still not all) such information. Certain types of information are only accessible conditional on which groups you're a member of. It also varies a bit by Windows version and type of install, I think. On top of that come group policies. So this is a lot more involved than just system startup processes. > System startup process start times appear to not be available to unelevated > processes, so the process default value is zero. > ISTM boot time is a better, more accurate, and useful default for those processes. I still disagree, but then those are not the only processes that have this issue. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple