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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"