Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 490270

Summary: app-editors/vim - SELinux support
Product: Gentoo Linux Reporter: Amadeusz Sławiński <amade>
Component: Current packagesAssignee: Vim Maintainers <vim>
Status: RESOLVED FIXED    
Severity: enhancement Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild patch
gvim ebuild patch

Description Amadeusz Sławiński 2013-11-03 14:13:36 UTC
Vim editor supports preserving selinux labels, however it's unconditionally disabled at build time.  This functionality is useful when editing files so they preserve correct security labels (for example files in /etc/init.d).

Following patch adds check for selinux use flag to ebuild, and enables selinux support when needed.

Reproducible: Always

Steps to Reproduce:
edit file using vim in /etc/init.d

Actual Results:  
file label changes to system_u:object_r:etc_t

Expected Results:  
should stay system_u:object_r:initrc_exec_t
Comment 1 Amadeusz Sławiński 2013-11-03 14:13:58 UTC
Created attachment 362484 [details, diff]
ebuild patch
Comment 2 Amadeusz Sławiński 2013-11-03 14:15:53 UTC
Created attachment 362486 [details, diff]
gvim ebuild patch

same problem with app-editors/gvim
Comment 3 Tim Harder gentoo-dev 2013-11-19 10:29:39 UTC
Added to 7.4.94.