[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Emacs and SELinux contexts
From: |
Suvayu Ali |
Subject: |
Emacs and SELinux contexts |
Date: |
Sun, 06 Jun 2010 23:39:39 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Thunderbird/3.0.4 |
Hi everyone,
I have noticed something with emacs on GNU/Linux systems. When you edit
something with Emacs, the SELinux context of the file doesn't stay
preserved. This could be an issue when you edit configuration or policy
files as root. A system setting file usually has a context like this,
system_u:object_r:usr_t:s0
but upon editing with Emacs it changes to
unconfined_u:object_r:usr_t:s0
I don't know how severe this is but maybe its worth looking at?
Specially when this problem is absent for other editors. I tried this
with nano, vim and mousepad. None of them had this issue. Can this be
filed as a bug? Where would be the appropriate place to file this? The
Emacs bugzilla or the bugzilla for my distribution?
Thanks for any suggestions.
--
Suvayu
Open source is the future. It sets us free.
- Emacs and SELinux contexts,
Suvayu Ali <=