bugattr - Bugs: bug #27120, Path length limit in setfacl ACL...

 
 

bug #27120: Path length limit in setfacl ACL utility for Unicode paths

Submitter:  Brandon Philips <philips>
Submitted:  Mon 27 Jul 2009 06:52:12 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Duplicate
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 19 Jan 2014 04:15:16 AM UTC, comment #1: 

this is filed in the acl tracker, so close this (since it's an issue with the acl package, not attr)

https://savannah.nongnu.org/bugs/?27388

Mike Frysinger <vapier>
Group Member
Mon 27 Jul 2009 06:52:12 PM UTC, original submission:  

http://oss.sgi.com/bugzilla/show_bug.cgi?id=841

           Summary: Path length limit in setfacl ACL utility for Unicode
                    paths
           Product: XFS
           Version: Current
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P5
         Component: xfsprogs
        AssignedTo: -email is unavailable-
        ReportedBy: -email is unavailable-
   Estimated Hours: 0.0
    Classification: Unclassified


In read_acl_comments() function of the setfacl/parse.c file linebuf variable is
limited to 1024 characters. As I have learned in the process of importing ACLs
from our server, that's not enough for Unicode paths on the production file
server using file names with Unicode.

While "getfacl -R" returns correct file of ACLs, "setfacl --restore" says
"invalid argument near line XYZ" on lines with long Unicode paths. Changing
"linebuf[1024]" to "linebuf[2048]" in setfacl/parse.c solved my problem.

An example of ACL entry that setfacl couldn't take care of because of 1024
limit is as following:

# file:
home/miem/ict/2002/Denis.Korolev/private/MIEM/\320\237\321\200\320\265\320\277\320\276\320\264\320\260\320\262\320\260\320\275\320\270\320\265/\320\230\321\201\321\205\320\276\320\264\320\275\321\213\320\265\040\320\274\320\260\321\202\320\265\321\200\320\270\320\260\320\273\321\213\040-\040\320\232\320\276\320\274\320\277\321\214\321\216\321\202\320\265\321\200\320\275\320\260\321\217\040\320\263\321\200\320\260\321\204\320\270\320\272\320\260/\320\232\320\276\320\274\320\277\321\214\321\216\321\202\320\265\321\200\320\275\320\260\321\217\040\320\263\321\200\320\260\321\204\320\270\320\272\320\260/Usability,\040UI,\040Ergonomics/\320\234\320\260\321\202\320\265\321\200\320\270\320\260\320\273\040\320\272\040\321\203\321\207\320\265\320\261\320\275\320\276\320\274\321\203\040\320\272\321\203\321\200\321\201\321\203\040\320\277\320\276\040\321\215\321\200\320\263\320\276\320\275\320\276\320\274\320\270\320\272\320\265/\320\255\321\200\320\263\320\276\320\275\320\276\320\274\3!
 20\270\320\272\320\260\040\320\270\040\321\216\320\267\320\260\320\261\320\270\320\273\320\270\321\202\320\270.pdf
# owner: root
# group: users
user::rw-
user:nginx:r-x
group::r--
mask::r-x
other::r--

Our server is running Gentoo Linux with Linux kernel 2.6.28 and acl v2.2.47
from Gentoo portage.

Brandon Philips <philips>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vapier (Posted a comment)
  • -email is unavailable- added by philips
  • -email is unavailable- added by philips (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-19 vapier StatusNone Duplicate
        Open/ClosedOpen Closed
    2009-07-27 philips Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code