Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26280 - antivirus hooks for portage
Summary: antivirus hooks for portage
Status: VERIFIED LATER
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-09 10:05 UTC by solar (RETIRED)
Modified: 2011-10-30 22:21 UTC (History)
5 users (show)

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


Attachments
Patch that adds the hooks to ebuild to do antivirus scanning (ebuild.sh-1.137.diff,1.54 KB, patch)
2003-08-09 10:07 UTC, solar (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description solar (RETIRED) gentoo-dev 2003-08-09 10:05:56 UTC
Updated patch that adds av hooks to portage
----------------------------------------------

1) antivirus
 * this feature adds hooks to do virus scanning 
  ** before unpacking
  ** after compiling
- To take advantage of this feature we need to set 3 things in our
make.conf

FEATURES="${FEATURES} antivirus"

# only really tested with f-prot 
AVS_SCANNER=/opt/f-prot/f-prot
AVS_OPTS="-archive -dumb -ai -old"

# little to no testing done with clam
#AVS_SCANNER=/usr/bin/clamscan
#AVS_OPTS="--stdout --tgz=/bin/tar --tar=/bin/tar --unzip=/usr/bin/unzip
--disable-summary"
Comment 1 solar (RETIRED) gentoo-dev 2003-08-09 10:07:14 UTC
Created attachment 15819 [details, diff]
Patch that adds the hooks to ebuild to do antivirus scanning
Comment 2 solar (RETIRED) gentoo-dev 2003-08-09 10:23:42 UTC
A Note on this patch. 
This adds the basic hooks but what action to take when a virus is found is not written yet. 

[ ${ret} != 0 ] && myfail="something here "

For that I would want input from other devs.
We could exit and refuse to install. 
Warn the user etc.. (or Prompt for input?)
Comment 3 solar (RETIRED) gentoo-dev 2003-08-09 22:22:24 UTC
seemant reported a few bugs directly to me via irc and has been really helpfull in the testing, debugging phase.

I'll be posting an updated patch in the next day or so.
Comment 4 solar (RETIRED) gentoo-dev 2003-08-27 11:46:38 UTC
Lack of time to work on this feature.
Comment 5 solar (RETIRED) gentoo-dev 2003-10-06 14:44:40 UTC
I still lack the time to support this feature, antiviral engines differ so
much that it somewhat becomes difficult to want to even maintain such a feature
when the dynamic differences between them vary so much.

If anybody else has some creative ideas on protecting portage in such a way
I'd love to hear about them or better see the code :)
Comment 6 solar (RETIRED) gentoo-dev 2005-12-31 13:42:37 UTC
solved by introduction of portage bashrc handling some time ago and or the recent addition of hooks.