Summary: | run Xserver with normal user permissions | ||||||
---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Egbert Eich <eich> | ||||
Component: | Server/DDX/Xorg | Assignee: | Xorg Project Team <xorg-team> | ||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||
Severity: | normal | ||||||
Priority: | high | CC: | roland.mainz, stuart.kreitman, wbrana | ||||
Version: | git | ||||||
Hardware: | x86 (IA32) | ||||||
OS: | Linux (All) | ||||||
Whiteboard: | |||||||
i915 platform: | i915 features: | ||||||
Attachments: |
|
Description
Egbert Eich
2005-01-28 07:48:54 UTC
Created attachment 1774 [details] [review] See above. Committed. This patch may break build for non-Linux OSes. I didn't have the opportunity to test this code. Leaving open for further discussion. 2005-01-28 Egbert Eich <eich-at-freedesktop-dot-org> * programs/Xserver/hw/xfree86/common/xf86Bus.c: (xf86FindPrimaryDevice): * programs/Xserver/hw/xfree86/common/xf86Configure.c: (DoConfigure): * programs/Xserver/hw/xfree86/common/xf86DoProbe.c: (DoProbe): * programs/Xserver/hw/xfree86/common/xf86Events.c: (xf86VTSwitch): * programs/Xserver/hw/xfree86/common/xf86Globals.c: * programs/Xserver/hw/xfree86/common/xf86Helper.c: (xf86AddDriver), (xf86AllocateScreen): * programs/Xserver/hw/xfree86/common/xf86Init.c: (InitOutput), (ddxProcessArgument), (ddxUseMsg): * programs/Xserver/hw/xfree86/common/xf86Priv.h: * programs/Xserver/hw/xfree86/common/xf86RandR.c: (xf86RandRGetInfo), (xf86RandRSetConfig): * programs/Xserver/hw/xfree86/common/xf86str.h: * programs/Xserver/hw/xfree86/drivers/dummy/dummy_driver.c: (dummySetup), (dummyDriverFunc): * programs/Xserver/hw/xfree86/drivers/fbdev/fbdev.c: (FBDevSetup), (FBDevDriverFunc): * programs/Xserver/hw/xfree86/etc/scanpci.c: (main): * programs/Xserver/hw/xfree86/os-support/bsd/alpha_video.c: (xf86EnableIO): * programs/Xserver/hw/xfree86/os-support/bsd/arm_video.c: (xf86EnableIO): * programs/Xserver/hw/xfree86/os-support/bsd/i386_video.c: (xf86EnableIO): * programs/Xserver/hw/xfree86/os-support/bsdi/bsdi_video.c: (xf86EnableIO): * programs/Xserver/hw/xfree86/os-support/bus/Pci.c: * programs/Xserver/hw/xfree86/os-support/bus/ix86Pci.c: (ix86PciSelectCfgmech): * programs/Xserver/hw/xfree86/os-support/bus/linuxPci.c: (linuxPciOpenFile), (linuxPciCfgRead), (linuxPciCfgWrite), (linuxPciCfgSetBits), (xf86GetPciDomain), (linuxMapPci): * programs/Xserver/hw/xfree86/os-support/bus/ppcPci.c: (ppcPciInit), (motoppcPciInit), (buserr), (pciCfgMech1Read), (pciCfgMech1Write), (pciCfgMech1SetBits): * programs/Xserver/hw/xfree86/os-support/hurd/hurd_video.c: (xf86EnableIO): * programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c: (xf86OpenConsole), (xf86CloseConsole): * programs/Xserver/hw/xfree86/os-support/linux/lnx_kbd.c: (SetKbdRepeat): * programs/Xserver/hw/xfree86/os-support/linux/lnx_video.c: (xf86EnableIO): * programs/Xserver/hw/xfree86/os-support/nto/nto_ioperm.c: (xf86EnableIO): * programs/Xserver/hw/xfree86/os-support/os2/os2_ioperm.c: (xf86EnableIO): * programs/Xserver/hw/xfree86/os-support/sco/sco_iop.c: (xf86EnableIO): * programs/Xserver/hw/xfree86/os-support/shared/ioperm_noop.c: (xf86EnableIO): * programs/Xserver/hw/xfree86/os-support/sunos/sun_vid.c: (xf86EnableIO): * programs/Xserver/hw/xfree86/os-support/sysv/sysv_video.c: (xf86EnableIO): * programs/Xserver/hw/xfree86/os-support/xf86_OSproc.h: Modifying X.Org Xserver DDX to allow to run X with ordinary user permissions when no access to HW registers is required. For API changes which mostly involve the modifications to make the RRFunc (introduced with 6.8) more flexible please check Bugzilla #2407. NOTE: This patch applies changes to OS specific files for other OSes which I cannot test. How is this DriverFuncs stuff supposed to work in case of a static server? How does the static server know whether the DriverRec has a DriverFunc field or not? *** Bug 1206 has been marked as a duplicate of this bug. *** Comment on attachment 1774 [details] [review] See above. xf86EnableIO error occur Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future. Is this bug already fixed? |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.