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=230120 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-bit kernel: $ /bin/dd if=/dev/zero of=1.file bs=1 count=1 oseek=1 conv=sparse 1+0 records in 1+0 records out 1 bytes transferred in 0.000235 secs (4263 bytes/sec) $ /root32/bin/dd if=/dev/zero of=1.file bs=1 count=1 oseek=1 conv=sparse 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. -- 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>
