6.1. Handle Object Policy
TheHandleObjectPolicy(seegure6-1)mechanismprovideslteringofscannedobjects
basedontheirstatus.Thisfunctionalityisbasedonthefollowingcongurationoptions:‘action_
av‘,‘action_av_infected‘,‘action_av_notscanned‘,‘action_av_deleted‘.Fordetailedinformationon
these options, please refer to the esets.cfg(5) man page.
Figure 6-1. Scheme of Handle Object Policy mechanism.
Every object processed is rst handled according to the conguration of the‘action_av‘
option. If this option is set to ‘accept‘ (or ‘defer‘, ‘discard‘, ‘reject‘) the object is accepted (or deferred,
discarded,rejected).Iftheoptionissetto‘scan‘theobjectisscannedforvirusinltrations,andif
the‘av_clean_mode‘optionissetto'yes',theobjectisalsocleaned.Inaddition,theconguration
options ‘action_av_infected‘, ‘action_av_notscanned‘ and ‘action_av_deleted‘ are taken into
account to further evaluate handling of the object. If an ‘accept‘ action has been taken as a result
of these three action options, the object is accepted. Otherwise, the object is blocked.
6.2. User Specic Conguration
The purpose of the User Specic Conguration mechanism is to provide a higher degree
ofcustomizationandfunctionality.ItallowsthesytemadministratortodeneESETS antivirus
scannerparametersbasedontheuserwhoisaccessinglesystemobjects.
Adetaileddescriptionofthisfunctionalitycanbefoundintheesets.cfg(5)manpage;inthis
sectionwewillprovideonlyashortexampleofauser-specicconguration.
In this example, the goal is to use the esets_dacmoduletocontroltheON_OPENandON_
EXEC access events for an external disc mounted under the ”/home” directory. The module can
beconguredinthe[dac]sectionoftheESETScongurationle.Seebelow:
[dac]
agent_enabled = yes
event_mask = ”open”
ctl_incl = ”/home”
action_av = ”scan”
Tospecifyscansettingsforanindividualuser,the‘user_cong’parametermustspecifythe
accept
defer, discard, reject
action_av
object not accepted
accept defer, discard, reject
action_av_infected
action_av_notscanned
action_av_deleted
object not accepted
object accepted
scan