GNU bug report logs - #20311
[GNULIB 0/4] Improved acl handling

Previous Next

Package: coreutils;

Reported by: Andreas Gruenbacher <andreas.gruenbacher <at> gmail.com>

Date: Sun, 12 Apr 2015 16:20:02 UTC

Severity: normal

Merged with 20310, 20312, 20666, 20667, 20696

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Gruenbacher <andreas.gruenbacher <at> gmail.com>
To: bug-gnulib <at> gnu.org, 20311 <at> debbugs.gnu.org
Subject: bug#20311: [GNULIB 0/4] Improved acl handling
Date: Sun, 12 Apr 2015 16:36:35 +0200
Hello,

while looking into adding richacl support to coreutils, I found the
set_acl and copy_acl gnulib functions in a less than ideal state:
setting acls was implemented in both functions, with slightly differing
behavior. Here is a rewrite based on the existing code which splits
setting and setting permissions and implements set_acl and copy_acl
based on these primitives; a lot of the mess in the original code
disappears.


These patches (and the richacl patches on top) are available here:

  https://github.com/andreas-gruenbacher/gnulib


I will follow up with the necessary coreutils changes.

Thanks,
Andreas


Andreas Gruenbacher (4):
  acl, qacl: split off shared functions into separate object file
  acl: On Linux, check for acls without libacl
  qacl: Simplify HP-UP acl_nontrivial check
  qacl: Reimplement qset_acl and qcopy_acl

 lib/acl-internal.c    | 499 ++++++++++++++++++++++++++++++
 lib/acl-internal.h    |  44 ++-
 lib/file-has-acl.c    | 477 ++---------------------------
 lib/get-permissions.c | 287 +++++++++++++++++
 lib/qcopy-acl.c       | 542 +-------------------------------
 lib/qset-acl.c        | 639 +-------------------------------------
 lib/set-permissions.c | 833 ++++++++++++++++++++++++++++++++++++++++++++++++++
 m4/acl.m4             |  17 ++
 modules/acl           |   5 +-
 modules/qacl          |   6 +-
 10 files changed, 1730 insertions(+), 1619 deletions(-)
 create mode 100644 lib/acl-internal.c
 create mode 100644 lib/get-permissions.c
 create mode 100644 lib/set-permissions.c

-- 
2.1.0





This bug report was last modified 10 years and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.