Rainer Orth wrote:
> "Richard L. Hamilton" <[EMAIL PROTECTED]> writes:
>
>   
>> Unless someone snuck it in when I wasn't looking, this has been
>> missing for ages - /proc does not reveal the umask of a process.
>> Sometimes that would be interesting.
>>
>> Both psinfo_t and pstatus_t have at least one int's worth of pr_filler,
>> so there's a place to put it if one wanted to (which it should go in
>> perhaps depending on whether one wished to conceal it given the different
>> permissions?).  And aside from the header file, I gather it would take all of
>> oh, about one more line of code in prsubr.c.
>>
>> I whipped up a "pumask" command that would report the umask of a process
>> using libkvm, but that's generally an evil thing to have to use.  (I think it
>> would work on a crash dump too, given that it takes command line options
>> for namelist, corefile, swapfile; but I'm not so sure how to dig the info out
>> of a plain old core dump, which might be more typical of the p* commands.)
>>     
>
> True: there's a long-standing RFE for this feature:
>
> 5003454       RFE: provide pumask
>   

I'm not entirely confident of the security implications of publishing 
this (it "seems" like it should be safe, but I'm not sure).  However, 
I'd be happy to sponsor a fast track to make this change if you decide 
that's what you want to do.

    -- Garrett

_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to