Red Hat Bugzilla – Bug 156085
ctrl-c exits R session in sesh when run using sudo with selinux enabled
Last modified: 2007-11-30 17:11:04 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050416 Fedora/1.0.3-1.3.1 Firefox/1.0.3
Description of problem:
When running R (http://www.r-project.org/) version 2.1.0 in a console using 'sudo R', ctrl-c will exit R and return to the console command line, however leaving an R process running. This has been replicated with at least one prior R version as well.
It appears that R is run in sesh in this situation. Presumably, ctrl-c kills sesh, but does not kill R.
A bug was filed in the R bug tracking system:
However this appears to be related to using "sudo R" when SELinux is enabled, as the ctrl-c behavior does not occur when SELinux is disabled.
Relevant output from "ps -aux" shows:
root 12272 49.2 0.8 23108 16924 ? R 07:45 2:07 /usr/local/lib/R/bin/exec/R
root 15503 0.0 0.0 2556 252 pts/1 S+ 07:46 0:00 sesh /usr/local/bin/R
root 15626 0.5 0.8 23204 16920 pts/1 S+ 07:46 0:00 /usr/local/lib/R/bin/exec/R
The first R session is what remains from the prior ctrl-c event.
Relevant content from /etc/sudoers is:
marcs ALL=(ALL) ALL
Version-Release number of selected component (if applicable):
Steps to Reproduce:
With SELinux enabled:
1. Run "sudo R" from a terminal emulator
2. Enter password
3. R loads
4. Press ctrl-c once at the R prompt
Actual Results: It appears that sesh is killed, exiting the R session. However an R process remains.
Expected Results: Presumably ctrl-c should not kill sesh and the R session
*** Bug 156086 has been marked as a duplicate of this bug. ***
The sudo command doesn't use sesh in distributions >=FC5. Closing.