diff options
| author | Joakim Verona | 2012-12-16 19:34:29 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-12-16 19:34:29 +0100 |
| commit | ec5501337dd01f1b02f3b0a97f1ed2535da6bf65 (patch) | |
| tree | a606d79eb68d063cdb3490372a5d617b6a2c7403 /doc | |
| parent | b602e17e46e9d1b8bc58b3ac7505361447bb9770 (diff) | |
| parent | 7c3d167f48d6262ee4e5512aa50a07ee96bc1509 (diff) | |
| download | emacs-ec5501337dd01f1b02f3b0a97f1ed2535da6bf65.tar.gz emacs-ec5501337dd01f1b02f3b0a97f1ed2535da6bf65.zip | |
auto upstream
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 7 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 44 |
2 files changed, 48 insertions, 3 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 8a99f8c9c40..922147844bd 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-12-16 Romain Francoise <romain@orebokech.com> | ||
| 2 | |||
| 3 | * files.texi (File Attributes): Document ACL support and new | ||
| 4 | `file-acl' function. | ||
| 5 | (Changing Files): Mention argument name change of `copy-file' and | ||
| 6 | document new function `set-file-acl'. | ||
| 7 | |||
| 1 | 2012-12-14 Paul Eggert <eggert@cs.ucla.edu> | 8 | 2012-12-14 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 9 | ||
| 3 | Fix permissions bugs with setgid directories etc. (Bug#13125) | 10 | Fix permissions bugs with setgid directories etc. (Bug#13125) |
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index c0c2221a394..93bee961929 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -1352,6 +1352,36 @@ not support SELinux, or if Emacs was not compiled with SELinux | |||
| 1352 | support, then the return value is @code{(nil nil nil nil)}. | 1352 | support, then the return value is @code{(nil nil nil nil)}. |
| 1353 | @end defun | 1353 | @end defun |
| 1354 | 1354 | ||
| 1355 | @cindex access control list | ||
| 1356 | @cindex ACL entries | ||
| 1357 | If Emacs has been compiled with @dfn{ACL} (access control list) | ||
| 1358 | support, you can use the function @code{file-acl} to retrieve a file's | ||
| 1359 | ACL entries. The format is platform-specific; on GNU/Linux and BSD, | ||
| 1360 | Emacs uses the POSIX ACL interface. For the function | ||
| 1361 | @code{set-file-acl}, see @ref{Changing Files}. | ||
| 1362 | |||
| 1363 | @defun file-acl filename | ||
| 1364 | This function returns the ACL entries of the file @var{filename}. | ||
| 1365 | The return value is a string containing the textual representation of | ||
| 1366 | the ACL entries, like the following: | ||
| 1367 | |||
| 1368 | @example | ||
| 1369 | @group | ||
| 1370 | user::rw- | ||
| 1371 | group::r-- | ||
| 1372 | group:gnu:rwx | ||
| 1373 | mask::rwx | ||
| 1374 | other::r-- | ||
| 1375 | @end group | ||
| 1376 | @end example | ||
| 1377 | |||
| 1378 | If the file does not exist or is inaccessible, or if Emacs was unable to | ||
| 1379 | determine the ACL entries, then the return value is @code{nil}. The | ||
| 1380 | latter can happen for local files if Emacs was not compiled with ACL | ||
| 1381 | support, or for remote files if the file handler returns nil for the | ||
| 1382 | file's ACL entries. | ||
| 1383 | @end defun | ||
| 1384 | |||
| 1355 | @node Locating Files | 1385 | @node Locating Files |
| 1356 | @subsection How to Locate Files in Standard Places | 1386 | @subsection How to Locate Files in Standard Places |
| 1357 | @cindex locate file in path | 1387 | @cindex locate file in path |
| @@ -1541,9 +1571,10 @@ non-@code{nil}, we attempt to copy the user and group ownership of the | |||
| 1541 | file. This works only on some operating systems, and only if you have | 1571 | file. This works only on some operating systems, and only if you have |
| 1542 | the correct permissions to do so. | 1572 | the correct permissions to do so. |
| 1543 | 1573 | ||
| 1544 | If the optional argument @var{preserve-selinux} is non-@code{nil}, and | 1574 | If the optional argument @var{preserve-extended-attributes} is |
| 1545 | Emacs has been compiled with SELinux support, this function attempts | 1575 | non-@code{nil}, and Emacs has been built with the appropriate support, |
| 1546 | to copy the file's SELinux context (@pxref{File Attributes}). | 1576 | this function attempts to copy the file's extended attributes, such as |
| 1577 | its SELinux context and ACL entries (@pxref{File Attributes}). | ||
| 1547 | @end deffn | 1578 | @end deffn |
| 1548 | 1579 | ||
| 1549 | @deffn Command make-symbolic-link filename newname &optional ok-if-exists | 1580 | @deffn Command make-symbolic-link filename newname &optional ok-if-exists |
| @@ -1684,6 +1715,13 @@ nothing if SELinux is disabled, or if Emacs was compiled without | |||
| 1684 | SELinux support. | 1715 | SELinux support. |
| 1685 | @end defun | 1716 | @end defun |
| 1686 | 1717 | ||
| 1718 | @defun set-file-acl filename acl-string | ||
| 1719 | This function sets the ACL entries of the file @var{filename} to | ||
| 1720 | @var{acl-string}. @xref{File Attributes}, for a brief description of | ||
| 1721 | ACLs. The @var{acl-string} argument should be a string containing the | ||
| 1722 | textual representation of the desired ACL entries. | ||
| 1723 | @end defun | ||
| 1724 | |||
| 1687 | @node File Names | 1725 | @node File Names |
| 1688 | @section File Names | 1726 | @section File Names |
| 1689 | @cindex file names | 1727 | @cindex file names |