|
On 7/26/2016 5:47 PM, CRPence wrote:
On 26-Jul-2016 09:47 -0500, Tim Bronski wrote:
Rather than hijack the current thread on authority adoption I'll
start afresh...while we're on the topic does anyone know of a way
to find out if the current program is working with adopted
authority or would I have to walk the stack back?
[…] Generally knowing of adoption is not relevant outside the
program itself; i.e. the current program /knows/ if the thread is
adopting, based on the effects of the [in]ability to resolve to an
object that requires the adopted authority. That is to suggest,
either the program fails with an exception x0A01 [MCH1001] per
authority is unavailable, else the program gains privilege via the
adopted authority. […]
More specifically, I'd like to know in a program the name of the
profile whose authority I'm adopting - if any.
I need to test for certain special authorities before
attempting/reporting certain operations. Testing the effects of not
having the authority is a least favored method.
I can retrieve the current user profile but that doesn't give me the
full picture if I'm adopting authority from the caller.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.