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.)
--
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to