Bug 1677932 - /sbin/modinfo throws permission denied error [ missing u+s bits in permission after installation ] : resulting in failure to launch vmware workstation.
Summary: /sbin/modinfo throws permission denied error [ missing u+s bits in permission...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: kmod
Version: 28
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: kmod development team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-17 00:38 UTC by Anand
Modified: 2019-02-18 13:12 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-18 13:12:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Details of the steps of investigation and troubleshooting (5.82 KB, text/plain)
2019-02-17 01:22 UTC, Anand
no flags Details

Description Anand 2019-02-17 00:38:25 UTC
Description of problem:
############################

- Last week upgraded to the latest kernel update from Fedora 28 DNF repository.
- My versions are below.
   a) 4.20.8-100.fc28.x86_64  [ kernel ]
   b) kmod-25-2.fc28.x86_64 [ kmod kernel modules package ] 

Version-Release number of selected component (if applicable):
#################################################################
Fedora 28 and above are relevant versions.

How reproducible:
############################
Take a Fedora 28 system that has kernel and kmod older than the above versions and do a dnf update on them to get latest packages.


Steps to Reproduce:
############################
1. As a non root user run this on any linux kernel module 
   /sbin/modinfo vmmon [ or any other kernel module that suits you ]

2. You get permission deined error. This stops all users from running the vmware 
   products GUI [ particularly vmware workstation ].

3. I had to do the below to fix this : sudo chmod u+s /sbin/modinfo then it started to provide module info for non root users and started working fine.

Actual results:
############################
- The reason i am flagging this is so that these permissions can be applied which rpm package is getting installed itself [ so expect to see this fix in the installer post script ? ]. Also before this i have done atleast 2-3 upgrades of kernel and kmod without any issues post upgrade so i am not sure if it is specific issue to this version of kmod only [ kmod-25-2.fc28.x86_64 ]

Expected results: 
############################
Expect end users [ non root ] to be able to get kernel module info via /sbin/modinfo

Additional info: 
############################
You can directly contact me at : anand312 / anand.kulkarni.sg for more information if you need anything else 
from me.

Comment 1 Anand 2019-02-17 01:22:57 UTC
Created attachment 1535596 [details]
Details of the steps of investigation and troubleshooting

Comment 2 Yauheni Kaliuta 2019-02-18 13:12:37 UTC
I do not see any reason for SUID bit on kmod. The module must be readable.

Moreover, works fine for me (on F29):

% modinfo -k 4.20.8-200.fc29.x86_64 vfat
filename:       /lib/modules/4.20.8-200.fc29.x86_64/kernel/fs/fat/vfat.ko.xz
author:         Gordon Chaffee
description:    VFAT filesystem support


Note You need to log in before you can comment on or make changes to this bug.