Brian Stecher
|
Re: check io privileges of a thread/process
|
Brian Stecher
03/22/2012 10:54 AM
post92241
|
Re: check io privileges of a thread/process
Thread flags are different from process flags.
#define _NTO_TF_IOPRIV 0x80000000
On Thu, Mar 22, 2012 at 10:30:25AM -0400, Steve Reid wrote:
> The docs for pidin call that bit _NTO_PF_THREADWATCH. Is that correct?
>
> Steve Reid (stever@qnx.com)
> Technical Editor
> QNX Software Systems
>
>
> -----Original Message-----
> From: Brian Stecher [mailto:community-noreply@qnx.com]
> Sent: Wednesday, March 21, 2012 8:43 AM
> To: ostech-core_os
> Subject: Re: check io privileges of a thread/process
>
> It's not in the usage message but "pidin -faNbF" will display the thread flags.
> If the 0x80000000 bit is on, that thread has io priv.
>
> Brian
>
> On Wed, Mar 21, 2012 at 08:35:02AM -0400, Ranjit Paulraj wrote:
> > Due to a overlook, we end up having multiple process having io privileges. So, many user processes are running in
system mode. We have fixed this problem. Now we wanted to check whether io privileges are removed for user processes.
shell commands like 'ps' or 'pidin' do not seem to display this status. Is there any other way to check this status?
> >
> >
> >
> > _______________________________________________
> >
> > OSTech
> > http://community.qnx.com/sf/go/post92220
> >
>
> --
> Brian Stecher (bstecher@qnx.com) QNX Software Systems Limited
> phone: +1 (613) 591-0931 (voice) 1001 Farrar Road
> +1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2K 0B3
>
>
>
> _______________________________________________
>
> OSTech
> http://community.qnx.com/sf/go/post92221
>
>
>
>
> _______________________________________________
>
> OSTech
> http://community.qnx.com/sf/go/post92239
>
--
Brian Stecher (bstecher@qnx.com) QNX Software Systems Limited
phone: +1 (613) 591-0931 (voice) 1001 Farrar Road
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2K 0B3
|
|
|