Coder Social home page Coder Social logo

Cannot build in 3.17+ kernels about lg4l HOT 4 CLOSED

cmoh avatar cmoh commented on July 28, 2024
Cannot build in 3.17+ kernels

from lg4l.

Comments (4)

Flu-Ger avatar Flu-Ger commented on July 28, 2024

Seems this apperars since 3.17 (at least 3.16.5 doesn't have this line of code)

As far as I can understand it, the kernel devs don't like write permissions on devices for "others":
kernel.h:814

  /* Other writable?  Generally considered a bad idea. */   \
  BUILD_BUG_ON_ZERO((perms) & 2) +              \
  (perms))`

Therefore all DEVICE_ATTR( calls could have 0660 instead of 0666 permitions. It could make sense to change the devicegroup to something like video?

from lg4l.

ogarcia avatar ogarcia commented on July 28, 2024

Not bad idea, some device drivers (as nvidia nouveau) use video group.

from lg4l.

CMoH avatar CMoH commented on July 28, 2024

The gnome15 project sets up appropriate permissions for devices using udev rules. I will look for other examples in the kernel code on how to set the defaults. If any of you has a patch ready, please attach it.

from lg4l.

CMoH avatar CMoH commented on July 28, 2024

Should be solvet by commit 91b0a91

from lg4l.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.