aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJoakim Verona2012-12-16 19:34:29 +0100
committerJoakim Verona2012-12-16 19:34:29 +0100
commitec5501337dd01f1b02f3b0a97f1ed2535da6bf65 (patch)
treea606d79eb68d063cdb3490372a5d617b6a2c7403 /doc
parentb602e17e46e9d1b8bc58b3ac7505361447bb9770 (diff)
parent7c3d167f48d6262ee4e5512aa50a07ee96bc1509 (diff)
downloademacs-ec5501337dd01f1b02f3b0a97f1ed2535da6bf65.tar.gz
emacs-ec5501337dd01f1b02f3b0a97f1ed2535da6bf65.zip
auto upstream
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog7
-rw-r--r--doc/lispref/files.texi44
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 @@
12012-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
12012-12-14 Paul Eggert <eggert@cs.ucla.edu> 82012-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
1352support, then the return value is @code{(nil nil nil nil)}. 1352support, 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)
1358support, you can use the function @code{file-acl} to retrieve a file's
1359ACL entries. The format is platform-specific; on GNU/Linux and BSD,
1360Emacs uses the POSIX ACL interface. For the function
1361@code{set-file-acl}, see @ref{Changing Files}.
1362
1363@defun file-acl filename
1364This function returns the ACL entries of the file @var{filename}.
1365The return value is a string containing the textual representation of
1366the ACL entries, like the following:
1367
1368@example
1369@group
1370user::rw-
1371group::r--
1372group:gnu:rwx
1373mask::rwx
1374other::r--
1375@end group
1376@end example
1377
1378If the file does not exist or is inaccessible, or if Emacs was unable to
1379determine the ACL entries, then the return value is @code{nil}. The
1380latter can happen for local files if Emacs was not compiled with ACL
1381support, or for remote files if the file handler returns nil for the
1382file'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
1541file. This works only on some operating systems, and only if you have 1571file. This works only on some operating systems, and only if you have
1542the correct permissions to do so. 1572the correct permissions to do so.
1543 1573
1544If the optional argument @var{preserve-selinux} is non-@code{nil}, and 1574If the optional argument @var{preserve-extended-attributes} is
1545Emacs has been compiled with SELinux support, this function attempts 1575non-@code{nil}, and Emacs has been built with the appropriate support,
1546to copy the file's SELinux context (@pxref{File Attributes}). 1576this function attempts to copy the file's extended attributes, such as
1577its 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
1684SELinux support. 1715SELinux support.
1685@end defun 1716@end defun
1686 1717
1718@defun set-file-acl filename acl-string
1719This function sets the ACL entries of the file @var{filename} to
1720@var{acl-string}. @xref{File Attributes}, for a brief description of
1721ACLs. The @var{acl-string} argument should be a string containing the
1722textual 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