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


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

Submitted by:  Brandon Philips <philips>
Submitted on:  Mon 27 Jul 2009 06:52:12 PM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Duplicate
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


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)


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


Summary: Path length limit in setfacl ACL utility for Unicode
Product: XFS
Version: Current
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P5
Component: xfsprogs
AssignedTo: -unavailable-
ReportedBy: -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:
# owner: root
# group: users

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

Brandon Philips <philips>
Project Administrator


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 19 Jan 2014 04:15:16 AM UTCvapierStatusNone=>Duplicate
    Mon 27 Jul 2009 06:52:13 PM UTCphilipsCarbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup