Bug 505990 - vim cannot write .viminfo when being called by "crontab -e"
vim cannot write .viminfo when being called by "crontab -e"
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
11
x86_64 Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-15 01:54 EDT by han pingtian
Modified: 2009-06-15 15:17 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-06-15 15:17:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description han pingtian 2009-06-15 01:54:41 EDT
Description of problem:
Runing "crontab -e" with EDITOR=vim and do some changes to 
the cron file. When quit from the vim, always gets a warning message:
E138: Can't write viminfo file /home/hpt/.viminfo!
and some avc messages in /var/log/messages:

Jun 15 13:51:24 localhost kernel: type=1400 audit(1245045084.399:17236): avc:  denied  { write } for  pid=24910 comm="vim" name="hpt" dev=dm-6 ino=2301953 scontext=unconfined_u:unconfined_r:admin_crontab_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_dir_t:s0 tclass=dir
Jun 15 13:51:24 localhost kernel: type=1400 audit(1245045084.400:17237): avc:  denied  { create } for  pid=24910 comm="vim" name="v69994" scontext=unconfined_u:unconfined_r:admin_crontab_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:tmp_t:s0 tclass=dir
Jun 15 13:51:24 localhost kernel: type=1400 audit(1245045084.400:17238): avc:  denied  { write } for  pid=24910 comm="vim" name="hpt" dev=dm-6 ino=2301953 scontext=unconfined_u:unconfined_r:admin_crontab_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_dir_t:s0 tclass=dir
Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1.export EDITOR=vim
2.crontab -e , do something and quit
3.
  
Actual results:
the vim cannot write its .viminfo file

Expected results:
the vim can record informations into .viminfo when used by 'crontab -e'

Additional info:
libselinux-2.0.80-1.fc11.x86_64.rpm
libselinux-devel-2.0.80-1.fc11.x86_64.rpm
libselinux-python-2.0.80-1.fc11.x86_64.rpm
libselinux-utils-2.0.80-1.fc11.x86_64.rpm
selinux-policy-3.6.12-39.fc11.noarch.rpm
selinux-policy-targeted-3.6.12-39.fc11.noarch.rpm
Comment 1 Daniel Walsh 2009-06-15 15:17:54 EDT
Fixed in selinux-policy-3.6.12-45.fc11.noarch.rpm

Please

yum update selinux-policy-targeted --enablerepo=updates-testing

Should be released by now.

Note You need to log in before you can comment on or make changes to this bug.