diff options
| author | Romain Francoise | 2012-12-16 19:22:27 +0100 |
|---|---|---|
| committer | Romain Francoise | 2012-12-16 19:22:27 +0100 |
| commit | 7c3d167f48d6262ee4e5512aa50a07ee96bc1509 (patch) | |
| tree | 9d4c24c1c97ae0cb1763e51d6ab8e808283fb09b /etc | |
| parent | a5e9740d8ecfd471ecbc1f02980b83b003c1a469 (diff) | |
| download | emacs-7c3d167f48d6262ee4e5512aa50a07ee96bc1509.tar.gz emacs-7c3d167f48d6262ee4e5512aa50a07ee96bc1509.zip | |
Add support for preserving ACL entries of files.
* configure.ac (acl): New option.
(HAVE_POSIX_ACL): Test for POSIX ACL support. This is typically
provided by libacl on GNU/Linux.
* fileio.c (Ffile_acl, Fset_file_acl): New functions.
(Fcopy_file): Change last arg to `preserve_extended_attributes'
and copy ACL entries of file in addition to SELinux context if
set.
(syms_of_fileio): Add `file-acl' and `set-file-acl'.
* Makefile.in (LIBACL_LIBS): New macro.
(LIBES): Use it.
* files.el (file-extended-attributes)
(set-file-extended-attributes): New functions.
(backup-buffer): Use them to handle both SELinux context and ACL
entries.
(backup-buffer-copy): Work with an alist of extended attributes,
rather than an SELinux context.
(basic-save-buffer-2): Ditto.
* files.texi (File Attributes): Document ACL support and new
`file-acl' function.
(Changing Files): Mention argument name change of `copy-file' and
document new function `set-file-acl'.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 24 |
1 files changed, 24 insertions, 0 deletions
| @@ -22,6 +22,12 @@ so we will look at it and add it to the manual. | |||
| 22 | 22 | ||
| 23 | 23 | ||
| 24 | * Installation Changes in Emacs 24.4 | 24 | * Installation Changes in Emacs 24.4 |
| 25 | |||
| 26 | ** Emacs can be compiled with POSIX ACL support. | ||
| 27 | This happens by default if a suitable support library is found at | ||
| 28 | build time, like libacl on GNU/Linux. To prevent this, use the | ||
| 29 | configure option `--without-acl'. | ||
| 30 | |||
| 25 | * Startup Changes in Emacs 24.4 | 31 | * Startup Changes in Emacs 24.4 |
| 26 | * Changes in Emacs 24.4 | 32 | * Changes in Emacs 24.4 |
| 27 | 33 | ||
| @@ -33,6 +39,14 @@ if there is one. | |||
| 33 | This unfinished feature was introduced by accident in Emacs 23.1; | 39 | This unfinished feature was introduced by accident in Emacs 23.1; |
| 34 | simply disabling Transient Mark mode does the same thing. | 40 | simply disabling Transient Mark mode does the same thing. |
| 35 | 41 | ||
| 42 | ** ACL support has been added. | ||
| 43 | +++ | ||
| 44 | *** Emacs preserves the ACL entries of files when backing up. | ||
| 45 | +++ | ||
| 46 | *** New functions `file-acl' and `set-file-acl' get and set the ACL | ||
| 47 | entries of a file. On GNU/Linux the POSIX ACL interface is used via | ||
| 48 | libacl. | ||
| 49 | |||
| 36 | * Editing Changes in Emacs 24.4 | 50 | * Editing Changes in Emacs 24.4 |
| 37 | 51 | ||
| 38 | ** New commands `toggle-frame-maximized' and `cycle-frame-maximized', | 52 | ** New commands `toggle-frame-maximized' and `cycle-frame-maximized', |
| @@ -149,6 +163,12 @@ special-forms any more. | |||
| 149 | VAR was bound to nil which was not tremendously useful and just lead to | 163 | VAR was bound to nil which was not tremendously useful and just lead to |
| 150 | spurious warnings about an unused var. | 164 | spurious warnings about an unused var. |
| 151 | 165 | ||
| 166 | ** The return value of `backup-buffer' has changed. | ||
| 167 | The second argument is no longer an SELinux context, instead it is an | ||
| 168 | alist of extended attributes as returned by the new function | ||
| 169 | `file-extended-attributes'. The attributes can be applied to another | ||
| 170 | file using `set-file-extended-attributes'. | ||
| 171 | |||
| 152 | * Lisp changes in Emacs 24.4 | 172 | * Lisp changes in Emacs 24.4 |
| 153 | 173 | ||
| 154 | ** Support for filesystem notifications. | 174 | ** Support for filesystem notifications. |
| @@ -186,6 +206,10 @@ used in place of the 9th element of `file-attributes'. | |||
| 186 | 206 | ||
| 187 | ** New functions `group-gid' and `group-real-gid'. | 207 | ** New functions `group-gid' and `group-real-gid'. |
| 188 | 208 | ||
| 209 | ** The 6th argument to `copy-file' has been renamed to | ||
| 210 | `preserve-extended-attributes' as it now handles both SELinux context | ||
| 211 | and ACL entries. | ||
| 212 | |||
| 189 | * Changes in Emacs 24.4 on non-free operating systems | 213 | * Changes in Emacs 24.4 on non-free operating systems |
| 190 | 214 | ||
| 191 | +++ | 215 | +++ |