[Bug 208965] extattr(2) doesn't allow attribute names of length EXTATTR_MAXNAMELEN

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Apr 21 22:21:20 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208965

            Bug ID: 208965
           Summary: extattr(2) doesn't allow attribute names of length
                    EXTATTR_MAXNAMELEN
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: asomers at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org

extattr(2) claims that attribute names may be up to EXTATTR_MAXNAMELEN in
length.  However, in practice it only allows attribute names of up to
EXTATTR_MAXNAMELEN - 1.

[alans at alans-fbsd-head2 /tmp]$ touch foo
[alans at alans-fbsd-head2 /tmp]$ ATTRNAME=`jot -b X -s "" 255 0`
[alans at alans-fbsd-head2 /tmp]$ setextattr user $ATTRNAME myvalue foo
setextattr: foo: failed: File name too long

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-amd64 mailing list