Bug 565710

Summary: %{_bindir}/fbterm is not working for normal users unless a setcap is done.
Product: [Fedora] Fedora Reporter: Caius Chance <K9>
Component: fbtermAssignee: Ding-Yi Chen <dchen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dchen, i18n-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: fbterm-1.6-3.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-05 03:40:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Caius Chance 2010-02-16 00:27:23 UTC
Description of problem:
ibus-fbterm is not working except a setcap is done as follows:

"sudo setcap cap_sys_tty_config+ep /path/to/fbterm"

I have added this in the %post of ibus-fbterm, but I thought changes in fbterm pkg is more appropriate.

Version-Release number of selected component (if applicable):
fbterm-1.6-1.fc12.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. install fbterm
2. install ibus-fbterm (http://kaio.fedorapeople.org/pkgs/ibus-fbterm-0.9.1-5.fc12.src.rpm However, it has setcap in the %post already.
3. execute 'ibus-fbterm-launch'
  
Actual results:
ibus-fbterm complained about capability problems.

Expected results:
ibus-fbterm is started properly.

Additional info:
`man fbterm` has this section:

SECURITY NOTES
       FbTerm tries to change linux kernel key map table to setup shortcuts, which  requires SYS_TTY_CONFIG  capability  from  kernel  version  2.6.15. It means FbTerm should be a setuid 0 program to allow non-root users to use shortcuts.  FbTerm  only  switches  to root  privilege  temporarily  when changing key map table, we believe it’s pretty much free from security problems.

       If you really don’t like this and not use VESA support, and have a linux  kernel  with file system capabilities enabled, which allow user to give binaries a subset of root’s powers without using setuid 0 (official kernel 2.6.27 includes it), you can  run  command "sudo setcap ’cap_sys_tty_config+ep’ /path/to/fbterm".

Comment 1 Fedora Update System 2010-02-24 05:44:48 UTC
fbterm-1.6-3.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/fbterm-1.6-3.fc13

Comment 2 Fedora Update System 2010-02-24 05:44:53 UTC
fbterm-1.6-3.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/fbterm-1.6-3.fc11

Comment 3 Fedora Update System 2010-02-24 05:44:58 UTC
fbterm-1.6-3.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/fbterm-1.6-3.fc12

Comment 4 Fedora Update System 2010-02-24 08:00:41 UTC
fbterm-1.6-3.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update fbterm'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F13/FEDORA-2010-2818

Comment 5 Fedora Update System 2010-02-26 03:38:39 UTC
fbterm-1.6-3.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update fbterm'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2010-2929

Comment 6 Fedora Update System 2010-02-26 03:40:00 UTC
fbterm-1.6-3.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update fbterm'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-2940

Comment 7 Fedora Update System 2010-03-05 03:40:43 UTC
fbterm-1.6-3.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2010-03-06 03:46:20 UTC
fbterm-1.6-3.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2010-03-06 03:55:18 UTC
fbterm-1.6-3.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.