Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358099 - =net-analyzer/wireshark-1.4.4 Failed to set capabilities
Summary: =net-analyzer/wireshark-1.4.4 Failed to set capabilities
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-09 17:53 UTC by Agostino Sarubbo
Modified: 2011-03-10 07:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2011-03-09 17:53:59 UTC
$summary


chgrp wireshark /tmp/portage/net-analyzer/wireshark-1.4.3/image//usr/bin/dumpcap
/sbin/setcap cap_net_raw,cap_net_admin+eip /tmp/portage/net-analyzer/wireshark-1.4.3/image//usr/bin/dumpcap
Failed to set capabilities on file `/tmp/portage/net-analyzer/wireshark-1.4.3/image//usr/bin/dumpcap' (Operation not supported)
usage: setcap [-q] [-v] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]
Comment 1 emil karlson 2011-03-09 18:02:37 UTC
Did this actually fail compilation for you?

Some filesystems do not provide posix security capabilities with some kernel configuration options. The message just means you do not get the extra security granularity for wireshark.

ewarn from ebuild:
 * Failed to set capabilities. Probable reason is missed kernel support.
 * Kernel must have SECURITY_FILE_CAPABILITIES, and <FS>_FS_SECURITY
 * enabled (e.g. EXT3_FS_SECURITY) where <FS> is the filesystem to store
 * //usr/bin/dumpcap
 * 
 * Falling back to suid now...
 * NOTE: To run wireshark as normal user you have to add yourself to
 * the wireshark group. This security measure ensures that only trusted
 * users are allowed to sniff your traffic.
Comment 2 Agostino Sarubbo gentoo-dev 2011-03-09 20:18:42 UTC
(In reply to comment #1)
> Did this actually fail compilation for you?
> 
no

> Some filesystems do not provide posix security capabilities with some kernel
> configuration options. The message just means you do not get the extra security
> granularity for wireshark.
> 
> ewarn from ebuild:
>  * Failed to set capabilities. Probable reason is missed kernel support.
>  * Kernel must have SECURITY_FILE_CAPABILITIES, and <FS>_FS_SECURITY
>  * enabled (e.g. EXT3_FS_SECURITY) where <FS> is the filesystem to store
>  * //usr/bin/dumpcap
>  * 
>  * Falling back to suid now...
>  * NOTE: To run wireshark as normal user you have to add yourself to
>  * the wireshark group. This security measure ensures that only trusted
>  * users are allowed to sniff your traffic.

I have those options:


amd64box ~ # grep SECURITY_FILE_CAPABILITIES /usr/src/linux/.config
CONFIG_SECURITY_FILE_CAPABILITIES=y
amd64box ~ # grep FS_SECURITY /usr/src/linux/.config
CONFIG_EXT4_FS_SECURITY=y

I use ext4
Comment 3 emil karlson 2011-03-09 20:33:09 UTC
Do you also have PORTAGE_TMPDIR on fs that supports posix cababilities?
ie.
/tmp/portage/net-analyzer/wireshark-1.4.3/image//usr/bin/dumpcap

I'm not an expert here but you may also want to paste your fstab.
Comment 4 Agostino Sarubbo gentoo-dev 2011-03-09 20:53:16 UTC
(In reply to comment #3)
> Do you also have PORTAGE_TMPDIR on fs that supports posix cababilities?
> ie.

My bad. I compile on tmpfs..so I close this as invalid.

@emil
thanks for help

@pva
Is implicit, but if you want, you can write on ewarn this issue with tmpfs :)
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2011-03-10 07:06:14 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=648653

Actually this is message from `make install` target and portage will set capabilities at later stage by itself (see fcaps function in ebuild). So this message is just a warning and can be ignored.