diff options
| author | Glenn Morris | 2012-01-28 18:49:57 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-01-28 18:49:57 -0800 |
| commit | a49ca6b95bc5324a3d0610c7c353172efb35545d (patch) | |
| tree | 5701dd6da35131304dd9f90ab3159a6a0350d228 | |
| parent | 182148eeb5e97102965fd3e66f293d0fcfcaf2b0 (diff) | |
| download | emacs-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/ChangeLog | 2 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 15 | ||||
| -rw-r--r-- | etc/NEWS | 7 |
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 @@ | |||
| 1 | 2012-01-29 Glenn Morris <rgm@gnu.org> | 1 | 2012-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 | ||
| 5 | 2012-01-28 Chong Yidong <cyd@gnu.org> | 7 | 2012-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 | |||
| 1480 | same effect as renaming, aside from momentary intermediate states. | 1480 | same 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 |
| 1484 | This command copies the file @var{oldname} to @var{newname}. An | 1484 | This command copies the file @var{oldname} to @var{newname}. An |
| 1485 | error is signaled if @var{oldname} does not exist. If @var{newname} | 1485 | error is signaled if @var{oldname} does not exist. If @var{newname} |
| 1486 | names a directory, it copies @var{oldname} into that directory, | 1486 | names 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 | |||
| 1501 | non-@code{nil}, we attempt to copy the user and group ownership of the | 1501 | non-@code{nil}, we attempt to copy the user and group ownership of the |
| 1502 | file. This works only on some operating systems, and only if you have | 1502 | file. This works only on some operating systems, and only if you have |
| 1503 | the correct permissions to do so. | 1503 | the correct permissions to do so. |
| 1504 | |||
| 1505 | @cindex SELinux | ||
| 1506 | If the optional argument @var{preserve-selinux} is non-@code{nil}, we | ||
| 1507 | attempt to copy the SELinux@footnote{@samp{Security-Enhanced Linux} | ||
| 1508 | is a kernel feature that allows for finer access controls to be set on | ||
| 1509 | files, and a system security policy to define who can access what. | ||
| 1510 | The functions @code{file-selinux-context} and @code{set-file-selinux-context} | ||
| 1511 | get and set, respectively, the SELinux properties of a file.} | ||
| 1512 | context of the file. For this to work, Emacs must have been built | ||
| 1513 | with libselinux support. | ||
| 1514 | |||
| 1515 | Functions like @code{backup-buffer} use these optional arguments | ||
| 1516 | to 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 |
| @@ -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. |
| 28 | You can disable this by using --without-selinux. | 29 | You can disable this by using --without-selinux. See below for |
| 30 | information 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 | |||
| 263 | Also, the first dash (which does not indicate anything) is just | 265 | Also, the first dash (which does not indicate anything) is just |
| 264 | displayed as a space. | 266 | displayed as a space. |
| 265 | 267 | ||
| 268 | +++ | ||
| 266 | ** Basic SELinux support has been added. | 269 | ** Basic SELinux support has been added. |
| 267 | This requires Emacs to be linked with libselinux at build time. | 270 | This 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 |
| 270 | optionally when copying files. To this end, copy-file has an extra | 274 | optionally when copying files. To this end, copy-file has an extra |
| 271 | optional argument, and backup-buffer and friends include the SELinux | 275 | optional argument, and backup-buffer and friends include the SELinux |
| 272 | context in their return values. | 276 | context 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 |
| 275 | get and set the SELinux context of a file. | 280 | get and set the SELinux context of a file. |
| 276 | --- | 281 | --- |