Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513064 - sys-power/nut unable to use the usbhid-ups driver with CONFIG_GRKERNSEC_SYSFS_RESTRICT
Summary: sys-power/nut unable to use the usbhid-ups driver with CONFIG_GRKERNSEC_SYSFS...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-12 18:27 UTC by Francisco Blas Izquierdo Riera (RETIRED)
Modified: 2018-07-08 14:28 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Strace when trying to load the driver (nut_strace.txt,22.05 KB, text/plain)
2014-06-12 18:27 UTC, Francisco Blas Izquierdo Riera (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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.