FS#16416 - Should non-root users change keymaps?

Attached to Project: Arch Linux
Opened by Liu Dongiao (liudongmiao) - Thursday, 01 October 2009, 14:48 GMT
Last edited by Aaron Griffin (phrakture) - Thursday, 01 October 2009, 19:24 GMT
Task Type Feature Request
Category Kernel
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Now, during a security problem, non-root cannot change keymaps.
But sometimes we need to do it.

How we can do it then?
1) keep it, normal users cannot set keys. But actually, normal users *may* need it.
2) change it, we need to patch for login or other thing, *make sure* to restore default keymaps after logout or before login.

Additional info:
1) git.kernel.org (setkeys need root): // i tiny it
http://tinyurl.com/setkeys-needs-root
2) bugs.debian.org (#334113)
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=334113

Steps to reproduce:
[thom@liudongmiao ~]$ loadkeys us.map
Loading /usr/share/kbd/keymaps/i386/qwerty/us.map.gz
Keymap 0: Permission denied
Keymap 1: Permission denied
Keymap 2: Permission denied
KDSKBENT: Operation not permitted
loadkeys: could not deallocate keymap 3
This task depends upon

Closed by  Aaron Griffin (phrakture)
Thursday, 01 October 2009, 19:24 GMT
Reason for closing:  Not a bug
Comment by Liu Dongiao (liudongmiao) - Thursday, 01 October 2009, 15:02 GMT
sorry, we can use setcap of loadkeys.
so, please remove this bug.

Loading...