[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs and SELinux contexts

From: Suvayu Ali
Subject: Re: Emacs and SELinux contexts
Date: Mon, 07 Jun 2010 07:48:33 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Thunderbird/3.0.4

On Monday 07 June 2010 02:58 AM, Juanma Barranquero wrote:
On Mon, Jun 7, 2010 at 08:39, Suvayu Ali<>  wrote:

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,

The etc/NEWS currently on the Emacs repository has this:

   ** Basic SELinux support has been added.
   This requires Emacs to be linked with libselinux at build time.

   *** Emacs preserves the SELinux file context when backing up, and
   optionally when copying files. To this end, copy-file has an extra
   optional argument, and backup-buffer and friends include the SELinux
   context in their return values.

   *** The new functions file-selinux-context and set-file-selinux-context
   get and set the SELinux context of a file.

   *** Tramp offers handlers for file-selinux-context and
   for remote machines which support SELinux.

so (some) SELinux support will be included on 24.1. Unfortunately,
that will likely be many months from now.

If you need that support now you can try building Emacs directly from
the current development sources.

Thank you very much, Juanma. :)



Open source is the future. It sets us free.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]