hadess / switcheroo-control

D-Bus service to check the availability of dual-GPU
9 stars 1 forks source link

Doesn't work with SecureBoot enabled #12

Closed hadess closed 5 years ago

hadess commented 6 years ago

From https://bugzilla.redhat.com/show_bug.cgi?id=1476366

As it stands, this is working as expected. When secureboot is on, debugfs is
locked down. Per the patch, "Normal device interaction should be done through
configfs or a miscdev, not debugfs." I think something needs to be done for
vgaswitcheroo for secureboot.

We'll need to adapt to whatever the new method will be.

develart-projects commented 5 years ago

Is this component somehow maintained here, please? I just want to ensure, if this bug is reported in the right place, thank you.

hadess commented 5 years ago

It is maintained, but it's a problem in the kernel, which we can't fix "from here", and I have no time to try and convince kernel developers to do anything about this.

develart-projects commented 5 years ago

And using configfs is not an option here, please ?

hadess commented 5 years ago

"Using configfs" wouldn't fix anything, the configuration in question isn't exported through configfs in the kernel, but through debugfs. See drivers/gpu/vga/vga_switcheroo.c in the kernel.

hadess commented 5 years ago

Mind confuses SELinux and SecureBoot

hadess commented 5 years ago

The work-around doesn't work.