You are not logged in.
Hello everyone,
I would like to ask you for help. I have an issue when trying to mount windows xp (smb 1.0) network share with linux-hardened kernel:
[root@LCQ-Max yan]# mount.cifs -o vers=1.0,user=guest,pass=, //192.168.56.17/data/ /mnt/wxp
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
the error seems to be linked to cifs legacy dialects disabled:
Feb 24 12:19:55 LCQ-Max kernel: vers=1.0 (cifs) mount not permitted when legacy dialects disabled
Feb 24 12:19:55 LCQ-Max kernel: CIFS: VFS: vers=1.0 (cifs) mount not permitted when legacy dialects disabled
However legacy dialects seems to be enabled as far as I can tell:
[root@LCQ-Max yan]# cat /sys/module/cifs/parameters/disable_legacy_dialects
N
Smbclient works fine, mount.cifs works fine if use the non-hardened kernel. Any suggestions what could be wrong with the hardened-one and how I should address it to enable this specific insecurity? (I am doing the mount.cifs for very specific reason and only between virtual machine guest and host, so there is a quite small attack surface, virtualbox "shared-folder" is not applicable in my case). Thank you for your help! ![]()
Edit: Seth - thanks for clarification.
Last edited by 3yan (2022-03-01 20:50:04)
Offline
Offline