Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1868215
Summary: | sudo: unable to mkdir /sudo: Operation not permitted | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | thiago.frmoraes | ||||
Component: | sudo | Assignee: | Radovan Sroka <rsroka> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 33 | CC: | alakatos, awilliam, dkopecek, dustymabe, evan, hgkamath, kzak, mattdm, rsroka, tosykora | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | AcceptedFreezeException | ||||||
Fixed In Version: | sudo-1.9.2-1.fc34 sudo-1.9.2-1.eln103 sudo-1.9.2-1.fc32 sudo-1.9.2-1.fc33 sudo-1.9.2-1.fc31 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-09-21 20:49:02 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: | 1766776 | ||||||
Attachments: |
|
Description
thiago.frmoraes
2020-08-12 03:06:59 UTC
I'm seeing this same issue on F33 branched. It also causes sudo to always prompt for a password. confirming, on silverblue Fedora-Silverblue-ostree-x86_64-33-20200905.n.0.iso Created attachment 1713891 [details] Fix runstatedir variable handling in configure I did some additional debugging and found that the rundir is not being set correctly during the build process. See the koji log: https://kojipkgs.fedoraproject.org//packages/sudo/1.9.1/3.fc33/data/logs/x86_64/build.log "checking for sudo run dir location... /sudo" If the build was configuring properly, this should state: "checking for sudo run dir location... /run/sudo" There was a recent change that modified how this directory was set to support the addition of runstatedir in autoconf 2.70 (yet to be released): https://github.com/sudo-project/sudo/commit/026caf008142fcbf47455da23db1e023ca1fe216. This change broke the state directory when only "localstatedir" is specified during configure but "runstatedir" is not since it doesn't check if runstatedir is non-empty before comparing and falls into the second "elif" case. Since Fedora doesn't ship the runstatedir addition as some other distros have done, this breaks the run directory definition during configuration. I have attached a patch that fixes this for Fedora, which I will also submit to upstream. Upstream accepted the patch in this GitHub PR: https://github.com/sudo-project/sudo/pull/62 FEDORA-2020-7458404c2c has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2020-7219488e72 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-7219488e72 FEDORA-2020-0d5e544db7 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-0d5e544db7 FEDORA-2020-12d53b8cf7 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-12d53b8cf7 FEDORA-2020-c788914609 has been pushed to the Fedora ELN stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2020-0d5e544db7 has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-0d5e544db7` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-0d5e544db7 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2020-12d53b8cf7 has been pushed to the Fedora 31 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-12d53b8cf7` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-12d53b8cf7 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. Hey Radovan, I'm going to re-open this bug so we can propose it as a freeze exception to possibly get it into Fedora 33 beta. The blockerbugs app won't accept proposals for bugs that are closed. Sorry for the noise. Proposed as a Freeze Exception for 33-beta by Fedora user dustymabe using the blocker tracking app because: I don't know if this should be accepted as an FE or not, but I'll submit to see what others think. AFAICT this bug: - on non OSTree systems you get a directory at /sudo created and you might not want that - on OSTRee based systems you get an error message whenever you run a sudo command - https://github.com/fedora-silverblue/issue-tracker/issues/73 FEDORA-2020-7219488e72 has been pushed to the Fedora 33 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-7219488e72` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-7219488e72 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2020-0d5e544db7 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report. resetting to open since f33 hasn't hit stable +4 votes in ticket (https://pagure.io/fedora-qa/blocker-review/issue/96 ), setting accepted. FEDORA-2020-7219488e72 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2020-12d53b8cf7 has been pushed to the Fedora 31 stable repository. If problem still persists, please make note of it in this bug report. |