aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii2012-12-17 21:14:34 +0200
committerEli Zaretskii2012-12-17 21:14:34 +0200
commit66447e07c1aa037730127d6fcdd2658f87f13dc0 (patch)
tree0547cb5e75ae1ffeb51d7b3f80275e0a65f70720 /etc
parent207a7ef0531ca92468e19115a2c2064c9b22bfd4 (diff)
downloademacs-66447e07c1aa037730127d6fcdd2658f87f13dc0.tar.gz
emacs-66447e07c1aa037730127d6fcdd2658f87f13dc0.zip
Support Posix ACL APIs on MS-Windows.
src/w32.c: Include sddl.h and sys/acl.h. (SDDL_REVISION_1): Define if not already defined. (g_b_init_get_security_descriptor_dacl) (g_b_init_convert_sd_to_sddl, g_b_init_convert_sddl_to_sd) (g_b_init_is_valid_security_descriptor) (g_b_init_set_file_security): New static flags. (globals_of_w32): Initialize them to zero. (SetFileSecurity_Name): New string constant. (SetFileSecurity_Proc, GetSecurityDescriptorDacl_Proc) (ConvertStringSecurityDescriptorToSecurityDescriptor_Proc) (ConvertSecurityDescriptorToStringSecurityDescriptor_Proc) (IsValidSecurityDescriptor_Proc): New typedefs. (get_file_security, get_security_descriptor_owner) (get_security_descriptor_group): Set errno to ENOTSUP. (set_file_security, get_security_descriptor_dacl) (is_valid_security_descriptor, convert_sd_to_sddl) (convert_sddl_to_sd, acl_valid, acl_to_text, acl_from_text) (acl_free, acl_get_file, acl_set_file): New functions. src/fileio.c (Fcopy_file) [WINDOWSNT]: Support copying ACLs. nt/inc/sys/acl.h: New file. nt/inc/ms-w32.h (ENOTSUP): Define if undefined. nt/config.nt (HAVE_POSIX_ACL): Define. doc/lispref/files.texi (File Attributes, Changing Files): Update to include MS-Windows support for ACLs.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 1c82b760946..263ca3cd48a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -44,8 +44,9 @@ simply disabling Transient Mark mode does the same thing.
44*** Emacs preserves the ACL entries of files when backing up. 44*** Emacs preserves the ACL entries of files when backing up.
45+++ 45+++
46*** New functions `file-acl' and `set-file-acl' get and set the ACL 46*** New functions `file-acl' and `set-file-acl' get and set the ACL
47entries of a file. On GNU/Linux the POSIX ACL interface is used via 47entries of a file. On GNU/Linux, the POSIX ACL interface is used via
48libacl. 48libacl. On MS-Windows, the NT Security APIs are used to emulate the
49POSIX ACL interfaces.
49 50
50* Editing Changes in Emacs 24.4 51* Editing Changes in Emacs 24.4
51 52