Bug 156489 - Enable usbmon
Enable usbmon
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Dave Jones
Brian Brock
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-01 02:49 EDT by Pete Zaitcev
Modified: 2015-01-04 17:19 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-06-09 12:08:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
diff -u dmesg-2.6.11-1.1276_FC4 dmesg-2.6.11-1.1282_FC4 (6.97 KB, text/plain)
2005-05-03 12:31 EDT, James Laska
no flags Details

  None (edit)
Description Pete Zaitcev 2005-05-01 02:49:00 EDT
The usbmon is at a point where I can actively use it for bug investigation.
But for that, it has to be enabled by default.

Fedora does not need extra code, only configuration changes.
The usbmon uses debugfs, so two variables have to be changed.
New proposed values:

CONFIG_DEBUG_FS=m
CONFIG_USB_MON=m

This applies to all platforms except s390, s390x.

I see no risk of regressions.

There's a small bloat to RPMs with an extra module. Dunno if it's essential.
RAM consumption is very small - URBs have no new fields in current version.

I did not evaluate security of debugfs.
Comment 1 Dave Jones 2005-05-01 04:13:46 EDT
done in cvs. will be in next build.
Comment 2 James Laska 2005-05-03 12:31:36 EDT
Created attachment 113977 [details]
diff -u dmesg-2.6.11-1.1276_FC4 dmesg-2.6.11-1.1282_FC4

Attaching a diff of dmesg from kernel-2.6.11-1.1276_FC4 (working USB) and
kernel-2.6.11-1.1282_FC4 (non working USB).
Comment 3 James Laska 2005-05-03 12:48:25 EDT
In response to comment#2, this issue has been identified already as a problem
with SELinux

>  > USB Universal Host Controller Interface driver v2.2
>  > SELinux: initialized (dev debugfs, type debugfs), not configured for labeling
>  > audit(1115130343.125:0): avc:  denied  { mount } for  name=/ dev=debugfs
ino=5310 scontext=system_u:system_r:insmod_t
tcontext=system_u:object_r:unlabeled_t tclass=filesystem

Booting with selinux=0 or enforcing=0 works around the issue.
Comment 4 Pete Zaitcev 2005-05-03 12:50:01 EDT
I'm going to un-modify it for now. Dave will disable debugfs and re-enable
it for test3.
Comment 5 Pete Zaitcev 2005-06-01 23:28:49 EDT
Modified again in 2.6.11-1.1366_FC4

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