f9 2.6.25 kernel driver module capability question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

We use fedora at work and are trying to port our driver from F7 to F9.

I am acting as gopher for our system architect so please be liberal with any commentary. I won't be able to post his feedback to any comments/questions (as necc.) until Tuesday evening.

I believe he wants our applications (running as non-root user) to be able to open his driver, and the driver to be able to run at real-time priority. We did this in F7 without any apparent issues.

Any help, comments, suggestions are greatly appreciated.

---
John

code and issues :

  struct sched_param param = {70};
  kernel_cap_t effective, inheritable, permitted, all;

  cap_set_full(all); // be sure we have enough permissions to call
                     // sched_setscheduler.
                     // probably only need CAP_SYS_NICE, but let's be
                     // "(un)safe"


  // save old permissions
  cap_capget(current,&effective, &inheritable, &permitted);

  // setup permissions to do this
  cap_capset_set(current,&all, &all, &all);

  // setup realtime priority
  ret=sched_setscheduler(current,SCHED_RR,&param);

  // restore permissions
  cap_capset_set(current,&effective, &inheritable, &permitted);


used to be able to do this in f7 / 2.6.23 kernel, now we get:

WARNING: "cap_capset_set" [/usr/CSM/src/ONI/oni_driver/oni.ko] undefined!
WARNING: "cap_capget" [/usr/CSM/src/ONI/oni_driver/oni.ko] undefined!

when building and of course:

ion: Unknown symbol cap_capget
ion: Unknown symbol cap_capset_set

when insmod'ing under f9 / 2.6.25

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux