Liste des Groupes | Revenir à co vms |
[snip]
Bit fiddly but to show the protections apply the original BG_EXAMPLE.C
was modified to wait for a read from the telnet connection
>
[snip]
but after modifying the BG device security (pasted as quotation to
circumvent wrapping)
>X86VMS$ set sec BG11402: /class=device /prot=(world)>
X86VMS$ show dev /full BG11402:
Device BG11402:, device type unknown, is online, mounted, record-oriented
device, network device, mailbox device.
Error count 0 Operations completed 2
Owner process "FTA10_SYSTEM" Owner UIC [SYSTEM]
Owner process ID 00001599 Dev Prot S:RWPL,O:RWPL,G:RWPL,W
Reference count 1 Default buffer size 256
X86VMS$ mcr []bg2_example BG11402:
sys$setprv() %X00000001
sys$assign() %X00000024
write() -1 %X0000013C
X86VMS$ exit %X00000024
%SYSTEM-F-NOPRIV, insufficient privilege or object protection violation
X86VMS$ exit %X00000024
>
while the owner (SYSTEM) continued to have access
>
[snip]
Les messages affichés proviennent d'usenet.