Re: Fwd: Neale Ferguson's fsiucv package

2022-07-13 Thread Alan Altmark
No.

(*MSG and *MSGALL do not require authorization.)

Regards,
Alan

Alan Altmark
IBM Systems Lab Services
Endicott, NY USA

> On Jul 13, 2022, at 7:30 PM, Mark Post  wrote:
> 
> On 7/13/22 19:25, Neale Ferguson wrote:
>> vmevents requires IUCV *VMEVENT
> 
> Would "IUCV ANY" cover that? Also, is there anything needed for the
> various things the propjr sample program uses?
> 
> 
> Mark Post
> 
> --
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
> http://www2.marist.edu/htbin/wlvindex?LINUX-390 

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390


Re: Fwd: Neale Ferguson's fsiucv package

2022-07-13 Thread Neale Ferguson
propjr use *MSG or *MSGALL.

Neale Ferguson

On 7/14/22, 09:30, "Linux on 390 Port on behalf of Mark Post" 
 wrote:

On 7/13/22 19:25, Neale Ferguson wrote:
> vmevents requires IUCV *VMEVENT

Would "IUCV ANY" cover that? Also, is there anything needed for the
various things the propjr sample program uses



--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390


Re: Fwd: Neale Ferguson's fsiucv package

2022-07-13 Thread Neale Ferguson
vmevents requires IUCV *VMEVENT

Neale Ferguson

On 7/14/22, 09:24, "Linux on 390 Port on behalf of Mark Post" 
 wrote:

I don't know how to test the other bits of fsiucv. The "vmevents" sample 
program runs into the same "open: Permission denied" error when trying 
to open /dev/iucv0. I suspect there are additional entries to the user 
directory for my guest that need to be added for that as well.



--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390


Re: Fwd: Neale Ferguson's fsiucv package

2022-07-13 Thread Alan Altmark
The hint is “unexpected return code 15 from connect.

IUCV CONNECT (see CP Programming Services) RC 15 is “no authorizations found”.  
(That’s needed for AF_IUCV sockets, too.)

The type of IUCV authorization depends on how the target virtual machine 
implements security. If the target has a configurable list of users it will 
talk to, the put IUCV ALLOW in its directory. 

If it doesn’t have anything like that, then put IUCV  in the origin 
user’s directory. 

Regards,
Alan

Alan Altmark
IBM Systems Lab Services
Endicott, NY USA

> On Jul 13, 2022, at 3:01 PM, Mark Post  wrote:
> 
> On 7/13/22 01:48, Neale Ferguson wrote:
>> I built on RHEL 8 and, apart from tainting the kernel, I was able 
>> load/unload the kernel module without a problem. I did get:
>> 
>> depmod: ERROR: Bad version passed fsiucv
>> 
>> DJ - is there a message in /var/log/messages when you get the permission 
>> denied message? You may see a connect message and an IPRCODE.
> 
> I recompiled the module with DEBUG enabled, and I get this in dmesg:
> [337954.314039] fsiucv: Driver loaded for 1 connections
> [337954.314043] fsiucv: was allocated major number 247
> [337954.314095] fsiucv: iucv device control block: 217fdf0a.d8
> [337954.314097] fsiucv: kernel device 0: 7d741f6a.1c8
> [337964.408114] fsiucv: prog_set - fsdev: 217fdf0a count: 9
> [337975.711326] fsiucv: user_set - fsdev: 217fdf0a count: 6
> [337992.351073] fsiucv: Device 0 at 217fdf0a
> [337992.351079] fsiucv: fsiucv - user: MAINT
> node: ZVM6401
> data: \xd9\xc9\xe2\xc5\xd9\xe5\xc5\xd9\x15
> [337992.351136] fsiucv: unexpected rc 15 from connect
> [337992.351136] fsiucv: Connection severed
> [337992.351137] fsiucv: open complete - err: -13
> 
> I did have RISERVER running on MAINT on that z/VM system. Nothing showed
> up on the z/VM console, though. I'm not sure if MAINT has any of the
> "IUCV xxx" statements in the USER DIRECT, though, or if that is necessary.
> 
> And, for whatever reason, now that I have "#define FSIUCV_DEBUG1" in
> the source, I can rmmod fsiucv after the failure with no problems. When
> I do that, this is what shows up in the log:
> [338235.665287] fsiucv: Deleting class device
> [338235.665301] fsiucv: Unregistering devices
> [338235.665302] fsiucv: Destroying device
> [338235.665423] fsiucv: removing group
> [338235.665435] fsiucv: freeing path
> [338235.665435] fsiucv: freeing input buffer
> [338235.665436] fsiucv: freeing output buffer
> [338235.665436] fsiucv: freeing answer buffer
> [338235.665436] fsiucv: cleaning up EIB queue
> [338235.665437] fsiucv: unregistering device
> [338235.665455] fsiucv: freeing iucv path
> [338235.665456] fsiucv: Unregistering driver
> [338235.665475] fsiucv: unregistering from iucv service -
> 2c3cae9d (9da3ed9e,87090f3a)
> [338235.665479] fsiucv: freeing IUCV device control block
> 
> 
> Mark Post
> 
> --
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
> http://www2.marist.edu/htbin/wlvindex?LINUX-390 

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390


Re: Fwd: Neale Ferguson's fsiucv package

2022-07-13 Thread Jeffrey Barnard

Mark,

Might help if the userid you are trying use in z/VM had ...

 IUCV ALLOW
 IUCV ANY PRIORITY

in the directory statement for the virtual machine.

Our z/VSE-VSEn IUCV driver works with the above statements in the directory
for both machines.

Have fun!

Regards,
Jeff

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390


Re: Fwd: Neale Ferguson's fsiucv package

2022-07-13 Thread Dave Jones
Thanks, Jack.

DJ

---
BEST REGARDS

   DAVE JONES   IBM Z CHAMPION [1]
Managing Director for zSystems Support, zLinux, and Cloud
++1 281.578.7544 (Cell)
Web: www.itconline.com [2]
18502 Purdy Ct. Houston, TX  77084  USA

On 07.13.2022 7:37 AM, Jack Woehr wrote:

> On 7/13/22 8:17 AM, Dave Jones wrote:
>
>> I'm using Ubuntu 20.04 Linux here and there is no "/var/log/messages"
>> file to be found, sorry.
>
> /var/log/syslog on Ubuntu
>
> --
> Jack Woehr   # Zen is a finger pointing at the moon.
> IBM Champion 2021-2022   # Some want to see the moon.
> http://www.softwoehr.com # Some want to discuss the finger.
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
> http://www2.marist.edu/htbin/wlvindex?LINUX-390


Links:
--
[1]
https://www.credly.com/badges/7c92e732-8ab1-4470-98c6-251c33506d69/public_url
[2] http://www.itconline.com/

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390

Re: Fwd: Neale Ferguson's fsiucv package

2022-07-13 Thread Jack Woehr

On 7/13/22 8:17 AM, Dave Jones wrote:

I'm using Ubuntu 20.04 Linux here and there is no "/var/log/messages"
file to be found, sorry.


/var/log/syslog on Ubuntu

--
Jack Woehr   # Zen is a finger pointing at the moon.
IBM Champion 2021-2022   # Some want to see the moon.
http://www.softwoehr.com # Some want to discuss the finger.

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390


Re: Fwd: Neale Ferguson's fsiucv package

2022-07-13 Thread Jack Woehr

On 7/13/22 8:25 AM, Dave Jones wrote:

Thanks Frank. A bit frustrating that the different distros don't put the
information in the same places.


/var/log/syslog is "modern" in the era of distributed syslog

--
Jack Woehr   # Zen is a finger pointing at the moon.
IBM Champion 2021-2022   # Some want to see the moon.
http://www.softwoehr.com # Some want to discuss the finger.

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390


Re: Fwd: Neale Ferguson's fsiucv package

2022-07-13 Thread Dave Jones
Thanks Frank. A bit frustrating that the different distros don't put the
information in the same places.

DJ

---
BEST REGARDS

   DAVE JONES   IBM CHAMPION [3]
Managing Director for zSystems Support, zLinux, and Cloud
++1 281.578.7544 (Cell)
Web: www.itconline.com [2]
18502 Purdy Ct. Houston, TX  77084  USA

On 07.13.2022 7:21 AM, Frank Heimes wrote:

> On Ubuntu look at:
> /var/log/syslog
>
> On Wed, Jul 13, 2022 at 4:18 PM Dave Jones  wrote:
>
> Hi, Neale.
>
> I'm using Ubuntu 20.04 Linux here and there is no "/var/log/messages"
> file to be found, sorry.
>
> I do feel badly about causing you all this extra work, as well, so don't
> feel you have to get this to work just you me. I have found an alternate
> method of "talking" IUCV from CMS to z/Linux that works exactly as I
> want it to, using the AF_IUCV family of socket calls. I've written a
> simple server that runs on Linux that can be driven by a CMS application
> using the RXIUCVFN Rexx function package, which is what I wanted to do
> in the first place.
>
> I'll be posting the code and a short "how-to" on GitHub when I can.
>
> Take care.
>
> DJ
>
> ---
> BEST REGARDS
>
> DAVE JONES   IBM CHAMPION [1]
> Managing Director for zSystems Support, zLinux, and Cloud
> ++1 281.578.7544 (Cell)
> Web: www.itconline.com [1] [2 [2]]
> 18502 Purdy Ct. Houston, TX  77084  USA
>
> On 07.12.2022 10:48 PM, Neale Ferguson wrote:
>
> I built on RHEL 8 and, apart from tainting the kernel, I was able load/unload 
> the kernel module without a problem. I did get:
> depmod: ERROR: Bad version passed fsiucv
>
> DJ - is there a message in /var/log/messages when you get the permission 
> denied message? You may see a connect message and an IPRCODE.
> Neale Ferguson
>
> On 7/13/22, 12:02, "Neale Ferguson"  wrote:
>
> Would you send your fix(es) and I'll give it a go here.
>
> Neale Ferguson
>
> On 7/13/22, 02:03, "Linux on 390 Port on behalf of Mark Post" < 
> LINUX-390@VM.MARIST.EDU on behalf of mp...@suse.com> wrote:
> Just FYI to Neale and the list... The changes I made to the kernel
> module allowed it to be compiled, but it doesn't appear to work, and if
> you then try to unload the kernel module, you get a kernel panic and the
> system reboots (if your have reboot on panic enabled).
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or 
> visit http://www2.marist.edu/htbin/wlvindex?LINUX-390
>
> Links:
> --
> [1]
>
> https://www.credly.com/badges/7c92e732-8ab1-4470-98c6-251c33506d69/public_url
> [2] http://www.itconline.com/
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
> visit
> http://www2.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390

Links:
--
[1] http://www.itconline.com
[2] http://www.itconline.com/
[3]
https://www.credly.com/badges/7c92e732-8ab1-4470-98c6-251c33506d69/public_url

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390

Re: Fwd: Neale Ferguson's fsiucv package

2022-07-13 Thread Frank Heimes
On Ubuntu look at:
/var/log/syslog


On Wed, Jul 13, 2022 at 4:18 PM Dave Jones  wrote:

> Hi, Neale.
>
> I'm using Ubuntu 20.04 Linux here and there is no "/var/log/messages"
> file to be found, sorry.
>
> I do feel badly about causing you all this extra work, as well, so don't
> feel you have to get this to work just you me. I have found an alternate
> method of "talking" IUCV from CMS to z/Linux that works exactly as I
> want it to, using the AF_IUCV family of socket calls. I've written a
> simple server that runs on Linux that can be driven by a CMS application
> using the RXIUCVFN Rexx function package, which is what I wanted to do
> in the first place.
>
> I'll be posting the code and a short "how-to" on GitHub when I can.
>
> Take care.
>
> DJ
>
> ---
> BEST REGARDS
>
>DAVE JONES   IBM CHAMPION [1]
> Managing Director for zSystems Support, zLinux, and Cloud
> ++1 281.578.7544 (Cell)
> Web: www.itconline.com [2]
> 18502 Purdy Ct. Houston, TX  77084  USA
>
> On 07.12.2022 10:48 PM, Neale Ferguson wrote:
>
> > I built on RHEL 8 and, apart from tainting the kernel, I was able
> load/unload the kernel module without a problem. I did get:
> >
> > depmod: ERROR: Bad version passed fsiucv
> >
> > DJ - is there a message in /var/log/messages when you get the permission
> denied message? You may see a connect message and an IPRCODE.
> >
> > Neale Ferguson
> >
> > On 7/13/22, 12:02, "Neale Ferguson"  wrote:
> >
> > Would you send your fix(es) and I'll give it a go here.
> >
> > Neale Ferguson
> >
> > On 7/13/22, 02:03, "Linux on 390 Port on behalf of Mark Post" <
> LINUX-390@VM.MARIST.EDU on behalf of mp...@suse.com> wrote:
> >
> > Just FYI to Neale and the list... The changes I made to the kernel
> > module allowed it to be compiled, but it doesn't appear to work, and if
> > you then try to unload the kernel module, you get a kernel panic and the
> > system reboots (if your have reboot on panic enabled).
> >
> > --
> > For LINUX-390 subscribe / signoff / archive access instructions,
> > send email to lists...@vm.marist.edu with the message: INFO LINUX-390
> or visit
> > http://www2.marist.edu/htbin/wlvindex?LINUX-390
>
>
> Links:
> --
> [1]
>
> https://www.credly.com/badges/7c92e732-8ab1-4470-98c6-251c33506d69/public_url
> [2] http://www.itconline.com/
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
> visit
> http://www2.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390


Re: Fwd: Neale Ferguson's fsiucv package

2022-07-13 Thread Dave Jones
Hi, Neale.

I'm using Ubuntu 20.04 Linux here and there is no "/var/log/messages"
file to be found, sorry.

I do feel badly about causing you all this extra work, as well, so don't
feel you have to get this to work just you me. I have found an alternate
method of "talking" IUCV from CMS to z/Linux that works exactly as I
want it to, using the AF_IUCV family of socket calls. I've written a
simple server that runs on Linux that can be driven by a CMS application
using the RXIUCVFN Rexx function package, which is what I wanted to do
in the first place.

I'll be posting the code and a short "how-to" on GitHub when I can.

Take care.

DJ

---
BEST REGARDS

   DAVE JONES   IBM CHAMPION [1]
Managing Director for zSystems Support, zLinux, and Cloud
++1 281.578.7544 (Cell)
Web: www.itconline.com [2]
18502 Purdy Ct. Houston, TX  77084  USA

On 07.12.2022 10:48 PM, Neale Ferguson wrote:

> I built on RHEL 8 and, apart from tainting the kernel, I was able load/unload 
> the kernel module without a problem. I did get:
>
> depmod: ERROR: Bad version passed fsiucv
>
> DJ - is there a message in /var/log/messages when you get the permission 
> denied message? You may see a connect message and an IPRCODE.
>
> Neale Ferguson
>
> On 7/13/22, 12:02, "Neale Ferguson"  wrote:
>
> Would you send your fix(es) and I'll give it a go here.
>
> Neale Ferguson
>
> On 7/13/22, 02:03, "Linux on 390 Port on behalf of Mark Post" 
>  wrote:
>
> Just FYI to Neale and the list... The changes I made to the kernel
> module allowed it to be compiled, but it doesn't appear to work, and if
> you then try to unload the kernel module, you get a kernel panic and the
> system reboots (if your have reboot on panic enabled).
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
> http://www2.marist.edu/htbin/wlvindex?LINUX-390


Links:
--
[1]
https://www.credly.com/badges/7c92e732-8ab1-4470-98c6-251c33506d69/public_url
[2] http://www.itconline.com/

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390