Bug #12091
torsocks prints "Failed to get capabilities of file" to stderr
0%
Description
In 3.0~alpha1, torsocks always prints “Failed to get capabilities of file” to stderr, when used to execute a file on the FAT partition. This includes the programs we use a torsocks wrapper for, like git and wget. This can be quite annoying, especially when you want to use tab completion with git, which also results in the error message being printed.
The reason is that since torsocks 2.2.0, which is the version in Stretch, torsocks calls `getcap` on the file to be executed [1]. FAT does not support file capabilties, thus the error message.
[1] https://github.com/dgoulet/torsocks/blob/master/src/bin/torsocks.in#L147
Subtasks
Related issues
Blocks Tails - |
Resolved | 2017-02-01 |
History
#1 Updated by intrigeri 2016-12-27 11:51:22
- Assignee set to segfault
- Target version set to Tails_3.0
> The reason is that since torsocks 2.2.0, which is the version in Stretch, torsocks calls `getcap` on the file to be executed [1]. FAT does not support file capabilties, thus the error message.
Care to report this upstream? If there’s no good reason to forward this message to the user, maybe it should be hidden?
#2 Updated by segfault 2016-12-27 12:16:24
- Assignee deleted (
segfault) - Target version deleted (
Tails_3.0)
> Care to report this upstream? If there’s no good reason to forward this message to the user, maybe it should be hidden?
Done. Upstream ticket: https://trac.torproject.org/projects/tor/ticket/21088
#3 Updated by intrigeri 2016-12-27 13:17:33
- Assignee set to intrigeri
- Target version set to Tails_3.0
>> Care to report this upstream? If there’s no good reason to forward this message to the user, maybe it should be hidden?
> Done. Upstream ticket: https://trac.torproject.org/projects/tor/ticket/21088
Thanks! I’ll take care of it from now on (unless you prefer to do it yourself, in which case please reassign the ticket to you :)
#4 Updated by intrigeri 2016-12-28 08:05:45
- Status changed from New to Confirmed
#5 Updated by emmapeel 2017-01-24 07:53:31
I get this error message:
Failed to get capabilities of file `/usr/lib/wget/wget' (Operation not supported)
running wget with Tails 2.10~rc1
#6 Updated by intrigeri 2017-02-01 13:57:26
BTW I suspect the ticket description is slightly wrong: our root filesystem is SquashFS, not FAT.
#7 Updated by emmapeel 2017-02-08 15:47:53
- has duplicate
Bug #12205: Confusing error message when (successfully) cloning Git repos over HTTPS added
#8 Updated by Anonymous 2017-03-17 11:29:04
- Assignee deleted (
intrigeri)
#9 Updated by Anonymous 2017-03-17 14:31:36
- Status changed from Confirmed to Resolved
This is now fixed by our own package.
Tested wget, git clone and git tab completion in Tails3.0beta3-feature-stretch.
https://deb.tails.boum.org/pool/main/t/torsocks/ version 2.2.0-1.0tails1.dsc
It has been git branched and tagged in the Debian repository, branch tails/master.
This branch and package can be removed as soon as there is a new version available in Debian.
#10 Updated by intrigeri 2017-03-18 10:45:29
- is duplicate of deleted (
)Bug #12205: Confusing error message when (successfully) cloning Git repos over HTTPS
#11 Updated by intrigeri 2017-03-18 10:45:41
- blocks
Bug #12205: Confusing error message when (successfully) cloning Git repos over HTTPS added