From: Johnny Billquist <bqt@softjar.se>
Subject: Re: Access to RSTS/E IOPAGE Registers
Date: Sun, 14 Apr 2013 20:28:16 +0200 [thread overview]
Message-ID: <kkesg0$a2v$1@Iltempo.Update.UU.SE> (raw)
In-Reply-To: <516ad94c.41223435@nntp.aioe.org>
On 2013-04-14 18:48, paramucho wrote:
> On Wed, 20 Mar 2013 22:42:46 +0100, Johnny Billquist <bqt@softjar.se>
> wrote:
>
>> On 2013-03-20 14:01, Johnny Billquist wrote:
>>> On 2013-03-20 11:15, paramucho wrote:
>>>> On Thu, 07 Mar 2013 00:51:26 +0100, Johnny Billquist <bqt@softjar.se>
>>>> wrote:
>>>>
>>>>
>>>>> RT11SH.SYS on the other hand is by default expected to be found in
>>>>> LB:[1,1].
>>>>>
>>>>> The moving of system independent tasks only came about in M+. Before
>>>>> that there was only SYSUIC, and everything was expected to sit there.
>>>>
>>>> What I need is a simple default location, so I guess I'll use [1,1].
>>>> <snip>
>>>
>>> For things similar to RT11SH.SYS, [1,1] is a pretty reasonable place.
>>>
>>>> Is there anyway for a task to determine the directory from which the
>>>> task was run? I can find the device and unit using "OV", but I can't
>>>> see anyway to work out the directory. I want to use this information
>>>> to automatically find related files--for example, when RTX.TSK is
>>>> activated I want to be able to read "RTX.INI" from the same directory
>>>> and to access "RTX.DSK" likewise from the same directory.
>>>
>>> Unfortunately, the answer is "no". Running a task that is installed
>>> don't have a directory associated with it. Installed tasks just "are".
>>
>> By the way, depending on what is in those files, you might want to
>> reconsider.
>> If it is content that different users might want to configure
>> differently, then you should either try to figure out there login
>> directory, or possibly just use the current directory.
>> And if we're talking about system global configuration files and
>> whatnot, then the common solution is to use a known directory. For
>> example [1,1], but there are many directories that might make sense,
>> depending on what it is. Also, you could create your own directory that
>> you use. No need to necessarily use any already existing directory.
>
> It is configurable (although I don't expect to find many users :-),
> but I like simple, sensible defaults so that no setup is required most
> of the time. I haven't found any information about standard
> directories for tasks etc other than [1,1] and [1,54].
Let's see, from the top of my head:
[1,1] System libraries and files of general use.
[1,2] System help files, system command files
[1,3] Recovered files
[1,4] System console logs
[1,6] Errorlog files, and also FAL log files
[1,54] System executables (system dependent)
[2,54] Baseline system
[3,54] System executables (system independent, M+ only)
[6,54] Standalone system
[*,10] Sources
[*,24] Command files to build sources
[*,34] Listings from builds
[*,54] Destination task files
[11,*] Kernel and device drivers
[12,*] MCR and related
[13,*] FCP
[14,*] RMD
[15,*] Executive utilities
[16,*] Multiuser utilities
[17,*] ERRLOG
[20,*] File system related
[22,*] MTAACP
[23,*] DCL
[24,*] TDX
[25,*] QMG
[26,*] BPR
[27,*] CON,HRC
[30,*] MAC
[31,*] TKB
[32,*] PIP
[33,*] FLX
[34,*] VFY
[35,*] DMP
[36,*] DSC
[37,*] EDI
[40,*] SLP
[42,*] LBR
[45,*] K-series
[46,*] PRT
[47,*] ODT
[50,*] FCS
[55,*] SYSLIB
[57,*] ZAP
[60,*] PIPUTL
[61,*] RSXMAC (RSX macros)
[62,*] BAD
[65,*] CRF
[70,*] VMR
[74,*] BRU
[75,*] RCT
[77,*] ISC,ICP
[103,*] RPT
[104,*] ERRLOG control files
[107,*] CMP
[111,*] PAT
[112,*] FMT
[113,*] IOX
[117,*] CDA
[120,*] CRP
[121,*] LPP
[123,*] VCP
[125,*] Shadow recording
[126,*] Accounting
[200,*] SYSGEN
Although not as official, [5,*] is usually where DECnet for the running
system resides.
(Actually, that became a little more than the top of my head, but there
is more documentation somewhere in the manuals, that we could check if
you want to.)
> RTX is more or less functional (I can assemble RTX with all the source
> files and binaries in F11A directories) and I'm adding some bells and
> whistles while I bed it down. I wrote a couple of apps to call MCR and
> DCL from within RTX, but I can't do things like DCL MOUNT because of
> insufficient privilege. Is there some way around this? I've never
> worked out how to create a privileged image/user etc.
First of all, in which way is things like mount failing? It should
normally not try to run ...MOU yourself, but instead call MCR with the
command line, and MCR will invoke MOUNT in the proper way. (Or call DCL,
same deal.)
However, MOUNT expects you to either mount a volume foreign, or else
provide the disk label. You cannot use the /OVR switch without being
privileged.
Also, "privilege" in RSX can be a bit confusing before you get the grasp
of things. There are several independent things called privilege.
First of all, your terminal have a "privilege" attribute. This is
probably the most important kind of privilege there is. All kind of
commands that looks for "privilege" is looking at this terminal attribute.
Second is the file system (and regions), which looks at UIC, and any UIC
with a group number of 10 or less is considered SYSTEM, and goes under
that protection mask.
Third is task privilege. A task can be privileged. This decides whether
the task can do some system calls or not. Things like aborting a task
running at another terminal requires that the task is privileged.
That's the three things we have to play with.
In order to run any task, it needs to be installed. In general, only
privileged terminals can install tasks. There is a special variant of
install that can be done, which is a flying install, where the task is
removed again when it finishes. This is what "RUN" do. And this is the
only way non-privileged terminals can install tasks. One additional
restriction on this is that non-privileged terminals can only install
tasks that are non-privileged.
So, for a non-privileged terminal to run a privileged task, it must
already have been installed by a privileged terminal.
At this point, it is left to the task itself to decide whether or not to
allow some operations. So, MOU for example, checks if the terminal is
privileged or not, and refuses certain switches if the terminal is not
privileged. However, if you try to run the MOUNT.TSK binary yourself,
you cannot if you are not a privileged terminal, as the task have the
privileged attribute set.
A task have the privileged attribute set if, when task built, you give
the /PR:n switch. The :n can have three values.
0 - Privileged task with no special mapping
4 - Privileged task mapped to the kernel in a 16K kernel.
5 - Privileged task mapped to the kernel in a 20K kernel.
5 is the default.
The /AC:n switch also implies the /PR switch.
Finally, tasks that are installed in the form of ...xxx or xxx$$$ are so
called prototype tasks, and cannot be run (under M+). Instead they are
just templates used by MCR when you give the command, and a copy is
created which is deleted when the task finishes.
Sorry for the long-winded reply, but maybe it helps. :-)
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt@softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
next prev parent reply other threads:[~2013-04-14 18:28 UTC|newest]
Thread overview: 76+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-26 13:22 Access to RSTS/E IOPAGE Registers Jerome H. Fine
2012-12-26 15:35 ` Bill Gunshannon
2012-12-27 0:10 ` glen herrmannsfeldt
2012-12-27 21:13 ` Johnny Billquist
2012-12-27 21:25 ` glen herrmannsfeldt
2012-12-27 21:37 ` Johnny Billquist
2012-12-27 13:38 ` Jerome H. Fine
2012-12-27 21:16 ` Johnny Billquist
2012-12-28 6:32 ` paramucho
2012-12-28 15:01 ` Johnny Billquist
2012-12-30 2:04 ` paramucho
2012-12-30 3:25 ` Johnny Billquist
2012-12-30 18:25 ` jgharston
2012-12-30 21:44 ` Johnny Billquist
2012-12-31 0:34 ` Jerome H. Fine
2012-12-31 0:52 ` Johnny Billquist
2012-12-31 16:04 ` paramucho
2012-12-31 16:23 ` Bob Eager
2012-12-31 16:33 ` Johnny Billquist
2013-01-01 3:28 ` paramucho
2012-12-31 16:30 ` Johnny Billquist
2013-01-01 4:55 ` paramucho
2013-01-01 18:37 ` Johnny Billquist
2013-01-13 8:01 ` paramucho
2013-01-13 14:13 ` Johnny Billquist
2013-01-14 6:30 ` paramucho
2013-01-14 11:50 ` Johnny Billquist
2013-01-15 14:20 ` paramucho
2013-01-15 21:10 ` Johnny Billquist
2013-01-16 3:25 ` Jerome H. Fine
2013-01-16 4:39 ` Johnny Billquist
2013-01-16 13:43 ` paramucho
2013-01-16 18:59 ` Johnny Billquist
2013-01-17 11:56 ` paramucho
2013-01-22 9:53 ` Hartmut Brandt
2013-01-22 13:52 ` Johnny Billquist
2013-01-23 14:11 ` paramucho
2013-01-23 19:53 ` Johnny Billquist
2013-01-25 13:43 ` paramucho
2013-01-25 23:39 ` Johnny Billquist
2013-01-28 7:47 ` paramucho
2013-01-28 18:06 ` Johnny Billquist
2013-01-30 12:16 ` paramucho
2013-01-30 18:50 ` Johnny Billquist
2013-02-02 12:51 ` paramucho
2013-02-02 16:15 ` Johnny Billquist
2013-02-03 16:16 ` Jerome H. Fine
2013-02-04 12:03 ` paramucho
2013-02-04 16:58 ` Johnny Billquist
2013-02-15 12:34 ` paramucho
2013-02-15 13:08 ` Johnny Billquist
2013-02-15 15:15 ` paramucho
2013-02-15 16:04 ` Johnny Billquist
2013-02-17 13:02 ` paramucho
2013-02-17 13:43 ` Johnny Billquist
2013-02-19 14:09 ` paramucho
2013-02-20 11:18 ` paramucho
2013-02-21 0:23 ` Johnny Billquist
2013-02-21 0:22 ` Johnny Billquist
2013-02-24 14:10 ` paramucho
2013-02-24 15:00 ` Johnny Billquist
2013-03-06 15:33 ` paramucho
2013-03-06 23:51 ` Johnny Billquist
2013-03-20 10:15 ` paramucho
2013-03-20 13:01 ` Johnny Billquist
2013-03-20 21:42 ` Johnny Billquist
2013-04-14 16:48 ` paramucho
2013-04-14 18:28 ` Johnny Billquist [this message]
2013-04-15 10:30 ` Johnny Billquist
2013-03-20 17:33 ` Jerome H. Fine
2013-03-25 15:55 ` paramucho
2013-03-06 15:33 ` paramucho
2013-02-24 14:12 ` paramucho
2013-01-23 14:10 ` paramucho
2013-01-14 9:13 ` Hartmut Brandt
2013-01-14 8:08 ` John Santos
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox