[Bug 1212141] [lockdown] KBD_NUMLOCK="bios" is broken: numlockbios: /dev/mem,kmem,port is restricted
https://bugzilla.suse.com/show_bug.cgi?id=1212141 https://bugzilla.suse.com/show_bug.cgi?id=1212141#c4 Stanislav Brabec <sbrabec@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jslaby@suse.com Flags| |needinfo?(jslaby@suse.com) Assignee|antonio.teixeira@suse.com |sbrabec@suse.com --- Comment #4 from Stanislav Brabec <sbrabec@suse.com> --- This feature was not added by me. I just ported a very old feature to systemd. Fri Jun 14 12:58:10 CEST 2002 - sndirsch@suse.de - boot.setup: handle Numlock depending on BIOS setting if KBD_NUMLOCK is set to "bios" - sysconfig.keyboard: added "bios" to KBD_NUMLOCK description This feature needs to read the BIOS data area. Is there a better way, how to do it? It basically does: fdmem = open("/dev/mem", O_RDONLY); lseek(fdmem, 0x497, SEEK_SET); read (fdmem, &c, sizeof(char)); if (c & 0x02) printf("on\n"); else printf("off\n"); -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com