Bug 1212375 - Some Samba Veto Files Stopped Working after Upgrading to Leap 15.5
Summary: Some Samba Veto Files Stopped Working after Upgrading to Leap 15.5
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Samba (show other bugs)
Version: Leap 15.5
Hardware: x86-64 Windows 10
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Noel Power
QA Contact: The 'Opening Windows to a Wider World' guys
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-14 15:34 UTC by Raul Trujillo
Modified: 2024-02-27 12:30 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raul Trujillo 2023-06-14 15:34:41 UTC
After upgrading from Leap 15.4 to Leap 15.5, Samba's "veto files" stopped working correctly.

Sample smb.conf:

[Samba-Share]
	path = /local/samba-share
	writable = yes
	guest ok = yes
	create mask = 0777
	directory mask = 0777
	veto files = /.*/

I can see the shared "Samba-Share" folder, but I can't access it if I'm at the server's root.  If I put something else in "veto files" like:

veto files = /.sh/

Then it works.  I have the following Samba version:

4.17.7+git.330.4057cd7a27a-150500.1.2  on x86_64.
Comment 1 Noel Power 2023-06-15 10:05:04 UTC
I see content isn't accessible with the specified veto setting
need to check what has changed here, I'd suspect the veto code must somehow have changed and now probably matches the special '.' file and filters it (and the share directory out)

will try to look into it (need to check old version and find associated code)
Comment 2 Noel Power 2023-06-15 11:15:59 UTC
https://bugzilla.samba.org/show_bug.cgi?id=15360
Comment 3 Raul Trujillo 2023-06-16 20:13:23 UTC
Thanks Noel.  I searched on-line, but didn't look at Samba's website.  Looks like a fix is in the works or it is already "resolved."
Comment 6 Samuel Cabrero 2023-09-27 09:36:59 UTC
Released.
Comment 7 Maintenance Automation 2024-02-27 12:30:30 UTC
SUSE-SU-2023:2929-1: An update that solves six vulnerabilities and has two security fixes can now be installed.

Category: security (important)
Bug References: 1212375, 1213170, 1213171, 1213172, 1213173, 1213174, 1213384, 1213386
CVE References: CVE-2020-25720, CVE-2022-2127, CVE-2023-3347, CVE-2023-34966, CVE-2023-34967, CVE-2023-34968
Sources used:
openSUSE Leap 15.5 (src): samba-4.17.9+git.367.dae41ffdd1f-150500.3.5.1
Basesystem Module 15-SP5 (src): samba-4.17.9+git.367.dae41ffdd1f-150500.3.5.1
SUSE Linux Enterprise High Availability Extension 15 SP5 (src): samba-4.17.9+git.367.dae41ffdd1f-150500.3.5.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.