Re: RFC: banning device driver reserved resources from /dev/mem | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
> I'll add a "share resource with userland" option to allow us to make > this desire explicit for the cases we want this (and can tolerate > concurrent accesses) For debug tools that would be almost all drivers, and for distribution use that needs to be a runtime selection. For the non share-resource-with case what occurs if /dev/mem is active when the driver is loaded ? > for me it is a goal to have /dev/mem do as little as possible while > allowing the "normal" uses. This is to help SELinux to have sane policy > rather than "X still has perms to own the whole box" etc. Then it should be runtime configurable > it came out of chasing e1000e with the "eh who maps our e1000e bar from > userspace" scare. Followed by thinking "if the driver requests > exclusivity the kernel should try to grant that". Only if you can then configure that *policy* decision at runtime in user space. Otherwise you create shackles that simply harm debug work and make it harder for distributions to ship the feature enabled by default (which is the ideal case). Alan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[Site Home] [Other Archives] [Linux Kernel Newbies] [Linux Kernel Testers] [Linux SH] [Linux Omap] [Linux Kbuild] [Linux Tape] [Linux Input] [Linux Kernel Janitors] [Linux Doc] [Linux Man Pages] [Linux Standards] [Kernel Announce] [Memory] [Netdev] [Git] [Linux PCI] [NUMA] [Netfilter] [Netfilter Devel] [SELinux] [Bugtraq] [Writing Drivers] [Linux Serial] [Linux PPP] [Linux ISDN] [Linux Next] [Kernel Stable Commits] [Kernel MM Commits] [Linux Security Module] [Ext4] [Linux BTRFS] [Linux NFS] [Linux Cachefs] [Reiser FS] [Fastboot] [Linux RT Users] [Linux Virtualization] [LVS Devel] [KVM] [KVM PPC] [KVM ia64] [Linux Containers] [Util Linux NG] [Sk Drivers] [Wireless] [Linux Bluetooth] [Ethernet Bridging] [Embedded Linux] [Sparse] [Linux Arch] [Linux ACPI] [Linux IBM ACPI] [Linux OpenGL] [CPU Freq] [Linux Power Management] [Linux DCCP] [ALSA Devel] [Linux USB] [Large Format Photos] [DVD Store] [Tux] [Gimp] [Yosemite News] [Linux PA RISC] [MIPS Linux] [S390 Linux] [ARM Linux] [ARM Kernel] [Sparc Linux] [Linux Security] [Linux Sound] [Video 4 Linux] [Linux for the blind] [Linux IDE] [Linux RAID] [Linux SCSI] [Linux SCSI Target Infrastructure] [Linux SMP] [Linux AXP] [Linux Alpha] [Linux M68K] [Linux ia64] [Linux 8086] [Linux x86_64] [Linux Apps] [Linux X.25] [Linux Crypto] [DM Crypt] [LInux Btrace] [Utrace Devel] [Yosemite Photos] [Linux Resources] [Older Kernel Mail]
![]() |
![]() |