Bug 2127301
Summary: | Permission denied calling SMBC_getatr when file not exists | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Víctor Daniel Martínez O. <vdanielmo> |
Component: | samba | Assignee: | Pavel Filipensky <pfilipen> |
Status: | CLOSED ERRATA | QA Contact: | Denis Karpelevich <dkarpele> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 37 | CC: | abokovoy, aboscatt, anoopcs, antonraves, asn, awilliam, gdeschner, iboukris, jarrpa, jstephen, lmohanty, madam, oholy, pfilipen, sbose, ssorce |
Target Milestone: | --- | Keywords: | Reopened, Triaged |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | AcceptedFreezeException | ||
Fixed In Version: | samba-4.17.1-1.fc38 samba-4.17.1-1.fc37 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-10-24 17:50:50 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2009540 |
Description
Víctor Daniel Martínez O.
2022-09-15 21:07:08 UTC
Downgrading to samba-4.16.4-1.fc37 fix the issue. Apparently SMBC_getatr no longer uses errno but instead returns NTSTATUS: https://github.com/samba-team/samba/commit/d4f8fdd69a1278d8473d541dc6b32014a369bcd0 Reverting the previous commit fixes the bug: I rebuilt the samba SRPM using a mock and added the patch to SPEC and everything works perfect: https://koji.fedoraproject.org/koji/buildinfo?buildID=2062333 $ git format-patch -1 --stdout d4f8fdd69a1278d8473d541dc6b32014a369bcd0 > 0001-libsmb-Convert-SMBC_getatr-to-NTSTATUS.patch 0001-libsmb-Convert-SMBC_getatr-to-NTSTATUS.patch https://koji.fedoraproject.org/koji/buildinfo?buildID=2062333 ... Patch100: 0001-libsmb-Convert-SMBC_getatr-to-NTSTATUS.patch ... %prep xzcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} - %autosetup -n samba-%{version}%{pre_release} -N %autopatch -M 99 %patch100 -p1 -R ... Could you log an upstream bug for this? Filed the bug in gvfs: https://gitlab.gnome.org/GNOME/gvfs/-/issues/651 I think this other one is related: https://gitlab.gnome.org/GNOME/gvfs/-/issues/649 Waiting for my samba bugzilla account to be created. Samba Bugzilla: https://bugzilla.samba.org/show_bug.cgi?id=15195 Fixed issue with Jeremy Allison's patch: https://bugzilla.samba.org/show_bug.cgi?id=15195#c2 Merge request: https://gitlab.com/samba-team/samba/-/merge_requests/2756 I am reviewing the MR https://gitlab.com/samba-team/samba/-/merge_requests/2756 and will patch Fedora 37 once it is ready. FEDORA-2022-314a73e994 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-314a73e994 FEDORA-2022-314a73e994 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2022-1b0ba70aca has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-1b0ba70aca Reopening since the F37 update isn't in the stable repo. Proposing as a freeze exception. FEDORA-2022-1b0ba70aca has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-1b0ba70aca` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-1b0ba70aca See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. *** Bug 2131723 has been marked as a duplicate of this bug. *** +3 in https://pagure.io/fedora-qa/blocker-review/issue/984 , marking accepted FE. FEDORA-2022-1b0ba70aca has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report. |