Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 513064

Summary: sys-power/nut unable to use the usbhid-ups driver with CONFIG_GRKERNSEC_SYSFS_RESTRICT
Product: Gentoo Linux Reporter: Francisco Blas Izquierdo Riera (RETIRED) <klondike>
Component: HardenedAssignee: The Gentoo Linux Hardened Team <hardened>
Status: RESOLVED WONTFIX    
Severity: normal CC: atoth, pageexec, spender
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Strace when trying to load the driver

Description Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2014-06-12 18:27:17 UTC
Created attachment 378758 [details]
Strace when trying to load the driver

When trying to use upsdrv with an Eaton UPS connected via USB using the usbhid-ups driver on a kernel using GRKERNSEC_SYSFS_RESTRICT the driver can't find the device.

strace shows that the system tries to access /sys/bus/usb/devices to find the devices but is not allowed.

A solution to this would be getting a whitelisted group which is allowed access to the sysfs filesystem or more finegrained controls.
Comment 1 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2014-10-08 23:40:21 UTC
I think I never had the chance to tell spender about this, sorry. I'm CCing he now.
Comment 2 Anthony Basile gentoo-dev 2014-10-17 19:05:40 UTC
ping @upstream.  Anything to do here?
Comment 3 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2018-07-08 14:28:55 UTC
I'm closing as the system no longer uses hardened sources so testing will be impossible.