Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490270 - app-editors/vim - SELinux support
Summary: app-editors/vim - SELinux support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-11-03 14:13 UTC by Amadeusz Sławiński
Modified: 2013-11-19 10:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild patch (vim.ebuild-selinux.patch,309 bytes, patch)
2013-11-03 14:13 UTC, Amadeusz Sławiński
Details | Diff
gvim ebuild patch (gvim.ebuild-selinux.patch,322 bytes, patch)
2013-11-03 14:15 UTC, Amadeusz Sławiński
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.