Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125681 - PATCH: iptraf USE flag: suid
Summary: PATCH: iptraf USE flag: suid
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-10 02:00 UTC by Sheldon Hearn
Modified: 2006-03-24 01:08 UTC (History)
0 users

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


Attachments
iptraf-suid-use-flag.patch (iptraf.patch,1.41 KB, patch)
2006-03-10 02:03 UTC, Sheldon Hearn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sheldon Hearn 2006-03-10 02:00:30 UTC
The attached patch (to follow) adds a suid USE flag to the iptraf ebuild.
Comment 1 Sheldon Hearn 2006-03-10 02:03:15 UTC
Created attachment 81825 [details, diff]
iptraf-suid-use-flag.patch

Add a suid USE flag to the iptraf ebuild and document it in use.local.desc.
Comment 2 Markus Ullmann (RETIRED) gentoo-dev 2006-03-21 15:04:12 UTC
Building now with the flag you pointed out but for security reasons let the admin set suid-bit.

Fixed in cvs, thanks
Comment 3 Sheldon Hearn 2006-03-22 02:02:43 UTC
Leaving out the suid root part makes the change useless.

Now, every time I rebuild world, I have to remember to change the permissions on the iptraf binary.  Highly counter-intuitive, once I've set a USE flag called suid.

Please just trust admins to understand the implications of setting a suid USE flag.
Comment 4 Sheldon Hearn 2006-03-22 05:09:44 UTC
Please reconsider. :-)
Comment 5 Markus Ullmann (RETIRED) gentoo-dev 2006-03-24 01:08:25 UTC
I had a talk to some members from security, sorry, but we can't do that. The app doesn't recommend it by itself and so we can't do that.

quote from the Makefile
"It is recommended that you restrict execution to root only. 
This option does not install the executable program with the setuid bit on, or with world-execute permissions.
If you want it, you'll have to do it yourself with chmod.
I have no plans to modify this program to be used by other users."

The use flag will stay in to make sure you're able to use it as non-root if you set it and chmod afterwards.