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: | Hardened | Assignee: | 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 |
I think I never had the chance to tell spender about this, sorry. I'm CCing he now. ping @upstream. Anything to do here? I'm closing as the system no longer uses hardened sources so testing will be impossible. |
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.