-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
rhel-8.10, rhel-9.4
-
None
-
No
-
Moderate
-
rhel-sst-cs-software-management
-
ssg_core_services
-
None
-
False
-
-
None
-
Red Hat Enterprise Linux
-
None
-
None
-
None
-
None
What were you trying to do that didn't work?
If for some reason a DNF module configuration file is not readable by a non-root user, the dnf command will return an unexpected result without printing any warning on the inaccessible configuration file, which may influence the output.
What is the impact of this issue to you?
Confusion
Please provide the package NVR for which the bug is seen:
dnf-4.7.0-20.el8.noarch
dnf-4.14.0-9.el9.noarch
How reproducible is this bug?:
Always
Steps to reproduce
- Enable the nginx module as root while changing the umask to have the file be created non-readable by normal users
# umask 0066 # dnf module enable nginx:1.24 # ls -l /etc/dnf/modules.d/nginx.module -rw-------. 1 root root 55 Oct 16 09:59 /etc/dnf/modules.d/nginx.module
- Check latest available as root user (CORRECT)
# dnf list available nginx [...] Available Packages nginx.x86_64 1:1.24.0-1.module+el9.4.0+21950+8ebc21e2.1
- Check latest available as normal user (INCORRECT)
$ dnf list available nginx [...] Available Packages nginx.x86_64 1:1.20.1-16.el9_4.1
Expected results
A warning stating that /etc/dnf/modules.d/nginx.module could not be processed, hence output may be unexpected.
Actual results
No warning on the output