aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-01-28 18:49:57 -0800
committerGlenn Morris2012-01-28 18:49:57 -0800
commita49ca6b95bc5324a3d0610c7c353172efb35545d (patch)
tree5701dd6da35131304dd9f90ab3159a6a0350d228
parent182148eeb5e97102965fd3e66f293d0fcfcaf2b0 (diff)
downloademacs-a49ca6b95bc5324a3d0610c7c353172efb35545d.tar.gz
emacs-a49ca6b95bc5324a3d0610c7c353172efb35545d.zip
Document SELinux support.
* doc/lispref/files.texi (Changing Files): Document SELinux support. * etc/NEWS: Markup.
-rw-r--r--doc/lispref/ChangeLog2
-rw-r--r--doc/lispref/files.texi15
-rw-r--r--etc/NEWS7
3 files changed, 22 insertions, 2 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index d34e033b165..e34625e5b19 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,5 +1,7 @@
12012-01-29 Glenn Morris <rgm@gnu.org> 12012-01-29 Glenn Morris <rgm@gnu.org>
2 2
3 * files.texi (Changing Files): Document SELinux support.
4
3 * windows.texi (Window Sizes): Fix typo. 5 * windows.texi (Window Sizes): Fix typo.
4 6
52012-01-28 Chong Yidong <cyd@gnu.org> 72012-01-28 Chong Yidong <cyd@gnu.org>
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index 614bd827489..05eca6417fe 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -1480,7 +1480,7 @@ with @code{add-name-to-file} and then deleting @var{filename} has the
1480same effect as renaming, aside from momentary intermediate states. 1480same effect as renaming, aside from momentary intermediate states.
1481@end deffn 1481@end deffn
1482 1482
1483@deffn Command copy-file oldname newname &optional ok-if-exists time preserve-uid-gid 1483@deffn Command copy-file oldname newname &optional ok-if-exists time preserve-uid-gid preserve-selinux
1484This command copies the file @var{oldname} to @var{newname}. An 1484This command copies the file @var{oldname} to @var{newname}. An
1485error is signaled if @var{oldname} does not exist. If @var{newname} 1485error is signaled if @var{oldname} does not exist. If @var{newname}
1486names a directory, it copies @var{oldname} into that directory, 1486names a directory, it copies @var{oldname} into that directory,
@@ -1501,6 +1501,19 @@ usually set to the user running Emacs). If @var{preserve-uid-gid} is
1501non-@code{nil}, we attempt to copy the user and group ownership of the 1501non-@code{nil}, we attempt to copy the user and group ownership of the
1502file. This works only on some operating systems, and only if you have 1502file. This works only on some operating systems, and only if you have
1503the correct permissions to do so. 1503the correct permissions to do so.
1504
1505@cindex SELinux
1506If the optional argument @var{preserve-selinux} is non-@code{nil}, we
1507attempt to copy the SELinux@footnote{@samp{Security-Enhanced Linux}
1508is a kernel feature that allows for finer access controls to be set on
1509files, and a system security policy to define who can access what.
1510The functions @code{file-selinux-context} and @code{set-file-selinux-context}
1511get and set, respectively, the SELinux properties of a file.}
1512context of the file. For this to work, Emacs must have been built
1513with libselinux support.
1514
1515Functions like @code{backup-buffer} use these optional arguments
1516to preserve information about their input files.
1504@end deffn 1517@end deffn
1505 1518
1506@deffn Command make-symbolic-link filename newname &optional ok-if-exists 1519@deffn Command make-symbolic-link filename newname &optional ok-if-exists
diff --git a/etc/NEWS b/etc/NEWS
index bbe4ab19c4d..2d8740f690e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -24,8 +24,10 @@ so we will look at it and add it to the manual.
24 24
25* Installation Changes in Emacs 24.1 25* Installation Changes in Emacs 24.1
26 26
27---
27** Configure links against libselinux if it is found. 28** Configure links against libselinux if it is found.
28You can disable this by using --without-selinux. 29You can disable this by using --without-selinux. See below for
30information on SELinux support.
29 31
30--- 32---
31** By default, the installed Info and man pages are compressed. 33** By default, the installed Info and man pages are compressed.
@@ -263,14 +265,17 @@ Emacs.pane.menubar.font: Courier-12
263Also, the first dash (which does not indicate anything) is just 265Also, the first dash (which does not indicate anything) is just
264displayed as a space. 266displayed as a space.
265 267
268+++
266** Basic SELinux support has been added. 269** Basic SELinux support has been added.
267This requires Emacs to be linked with libselinux at build time. 270This requires Emacs to be linked with libselinux at build time.
268 271
272+++
269*** Emacs preserves the SELinux file context when backing up, and 273*** Emacs preserves the SELinux file context when backing up, and
270optionally when copying files. To this end, copy-file has an extra 274optionally when copying files. To this end, copy-file has an extra
271optional argument, and backup-buffer and friends include the SELinux 275optional argument, and backup-buffer and friends include the SELinux
272context in their return values. 276context in their return values.
273 277
278+++
274*** The new functions file-selinux-context and set-file-selinux-context 279*** The new functions file-selinux-context and set-file-selinux-context
275get and set the SELinux context of a file. 280get and set the SELinux context of a file.
276--- 281---