|
Hi, Rob,
Yes, you could use a variable for the library name. Exactly how you do
that varies depending on the language you are using. For example, in CL:
DCL &APPLIB *CHAR LEN(10) VALUE('APPOBJLIB')
...
/* get application library name */
RTVDTAARA DTAARA(APPLIB) RTNVAR(&APPLIB)
...
/* call some program in the application library */
CALL PGM(&APPLIB/APPPGM1R) PARM(&PARM1 &PARM2)
Of course, the details for how you can accomplish this feat in RPG/400, or
ILE RPG IV, or COBOL, or C/400, are rather different. Further research is
required, depending on what languages are in use in your shop.
This would require potentially massive changes to each application, to
ensure that every program that CALLs another program follows these
conventions.
SUMMARY
I think the issue with "unqualified" calls representing an "exposure" is
mostly relevant to IBM supplied programs that have elevated authority, as
demonstrated by the Silent Signal presentation.
The (supposed) "risks" of using the library list in the normal manner with
normal end-user applications is probably not as much of a problem, unless
the applications are invoking IBM APIs that adopt authority. Those calls
should be "fully qualified" to prevent the kinds of exploits illustrated in
the Silent Signal presentation.
This is an issue for software vendors who distribute applications, tools
or software packages that are installed and used on customer systems.
All the best,
Mark S. Waterbury
On Wednesday, September 18, 2024 at 09:49:51 AM EDT, Rob Berendt <robertowenberendt@xxxxxxxxx> wrote:
Can the library name be a variable?
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
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.