Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jul 2018 18:24:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 230120] capsicum: cap_ftruncate_rights doesn't work in 32-bit emulation
Message-ID:  <bug-230120-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230120

            Bug ID: 230120
           Summary: capsicum: cap_ftruncate_rights doesn't work in 32-bit
                    emulation
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org

I don't know why, but cap_ftruncate_rights doesn't appear to work in 32-bit
emulation.  The bug can be reproduced by running i386's dd binary on a 64-b=
it
kernel:

$ /bin/dd if=3D/dev/zero of=3D1.file bs=3D1 count=3D1 oseek=3D1 conv=3Dspar=
se
1+0 records in
1+0 records out
1 bytes transferred in 0.000235 secs (4263 bytes/sec)

$ /root32/bin/dd if=3D/dev/zero of=3D1.file bs=3D1 count=3D1 oseek=3D1 conv=
=3Dsparse
dd: truncating 1.file: Not permitted in capability mode
1+0 records in
1+0 records out
1 bytes transferred in 0.000111 secs (9035 bytes/sec)

There doesn't appear to be anything obviously wrong with the code in either=
 dd
or kern_ftruncate, so I think it's a deeper capsicum bug.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230120-227>