mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-19 10:22:27 +00:00
Undocument the details of the string returned by file-acl.
doc/lispref/files.texi (File Attributes, Changing Files): Remove the details about the text returned by file-acl. Instead, just document that it is an opaque string meant to be used by set-file-acl.
This commit is contained in:
parent
cdb0753962
commit
04d9b71ab7
@ -1,3 +1,9 @@
|
||||
2012-12-22 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* files.texi (File Attributes, Changing Files): Remove the details
|
||||
about the text returned by file-acl. Instead, just document that
|
||||
it is an opaque string meant to be used by set-file-acl.
|
||||
|
||||
2012-12-21 Chong Yidong <cyd@gnu.org>
|
||||
|
||||
* modes.texi (Auto Major Mode): Fix typo (Bug#13230).
|
||||
|
@ -1356,31 +1356,17 @@ support, then the return value is @code{(nil nil nil nil)}.
|
||||
@cindex ACL entries
|
||||
If Emacs has been compiled with @dfn{ACL} (access control list)
|
||||
support, you can use the function @code{file-acl} to retrieve a file's
|
||||
ACL entries. The format is platform-specific; on GNU/Linux and BSD,
|
||||
Emacs uses the POSIX ACL interface, while on MS-Windows Emacs emulates
|
||||
the POSIX ACL interface with native file security APIs. For the
|
||||
function @code{set-file-acl}, see @ref{Changing Files}.
|
||||
ACL entries. The interface implementation is platform-specific; on
|
||||
GNU/Linux and BSD, Emacs uses the POSIX ACL interface, while on
|
||||
MS-Windows Emacs emulates the POSIX ACL interface with native file
|
||||
security APIs.
|
||||
|
||||
@defun file-acl filename
|
||||
This function returns the ACL entries of the file @var{filename}.
|
||||
The return value is a string containing the textual representation of
|
||||
the ACL entries. On Posix hosts, it looks like this:
|
||||
|
||||
@example
|
||||
@group
|
||||
user::rw-
|
||||
group::r--
|
||||
group:gnu:rwx
|
||||
mask::rwx
|
||||
other::r--
|
||||
@end group
|
||||
@end example
|
||||
|
||||
@cindex security descriptor, file
|
||||
@cindex SDDL, MS-Windows
|
||||
On MS-Windows, the return value is a textual description of the file's
|
||||
@dfn{security descriptor} in @acronym{SDDL}, the @dfn{Security
|
||||
Descriptor Definition Language}.
|
||||
This function returns the ACL entries of the file @var{filename}. The
|
||||
return value is a platform-dependent string containing the textual
|
||||
representation of the ACL entries. Don't use it for anything except
|
||||
passing it to the @code{set-file-acl} function (@pxref{Changing Files,
|
||||
set-file-acl}).
|
||||
|
||||
If the file does not exist or is inaccessible, or if Emacs was unable to
|
||||
determine the ACL entries, then the return value is @code{nil}. The
|
||||
@ -1726,8 +1712,8 @@ SELinux support.
|
||||
This function sets the ACL entries of the file @var{filename} to
|
||||
@var{acl-string}. @xref{File Attributes}, for a brief description of
|
||||
ACLs. The @var{acl-string} argument should be a string containing the
|
||||
textual representation of the desired ACL entries in the format
|
||||
appropriate for the ACL interface being used.
|
||||
textual representation of the desired ACL entries as returned by
|
||||
@code{file-acl} (@pxref{File Attributes, file-acl}).
|
||||
@end defun
|
||||
|
||||
@node File Names
|
||||
|
Loading…
Reference in New Issue
Block a user