diff --git a/kg-disable-access-microphone-wapt/WAPT/control b/kg-disable-access-microphone-wapt/WAPT/control index fe671a5..c7cae6c 100644 --- a/kg-disable-access-microphone-wapt/WAPT/control +++ b/kg-disable-access-microphone-wapt/WAPT/control @@ -1,37 +1,37 @@ package : kg-disable-access-microphone -version : 0-3 +version : 1-3 architecture : all section : base priority : optional -name : -maintainer : Administrator -description : Package for kg-disable-microphone -depends : -conflicts : -maturity : -locale : -target_os : -min_os_version : -max_os_version : -min_wapt_version : -sources : -installed_size : -impacted_process : -description_fr : -description_pl : -description_de : -description_es : -audit_schedule : -editor : -keywords : -licence : -homepage : -package_uuid : 2789f187-7e8b-4185-93f1-fd89b629ec18 -valid_from : -valid_until : -forced_install_on : -signer : wapt-private -signer_fingerprint: f92cc2c37728a7041fdc444a610944e93e722bc118d6e3c1d27de71fea99afdf -signature : bBoIf/otqAK4qUlbJAsJV4hnZkduqL/dj3RnuTFJQ+2XRvRcMgQgaa50JS7/0ODgxcuV76+p/cFzGIdIaboat5TrSr4JB0tvohCsG6Zan1PikJgDLwRGAHbi/Jtho9g6OM4lCLvGz+wej55rjXTs+oiTaNte0/aUOzxcPoyZhCETdeub25yCc1nGAWuyJwvsmxQpZTYsI16eR91RG6vPAHoQQdlE/swJPG12ogUtLmAtyhETsEb+l/a5SU8GK5TjfPKkpz9SLeyUnhn/+g7Nfk3c8LQBDHWRZa5XxdXoHaKO2Hqeow65bgyuH+TiqUGA7C3CLXpdUGKigjD7DCBE2Q== -signature_date : 2019-06-01T14:13:20.499000 -signed_attributes : package,version,architecture,section,priority,name,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,signer,signer_fingerprint,signature_date,signed_attributes \ No newline at end of file +name : +maintainer : Kévin Guérineau +description : Disable microphone access for applications +depends : +conflicts : +maturity : PROD +locale : all +target_os : windows +min_os_version : 10 +max_os_version : +min_wapt_version : 1.6 +sources : +installed_size : +impacted_process : +description_fr : Désactiver l'accès au microphone pour les applications +description_pl : Wylaczenie dostepu do mikrofonu dla aplikacji +description_de : Mikrofonzugriff für Anwendungen deaktivieren +description_es : Desactivar el acceso al micrófono para aplicaciones +audit_schedule : +editor : +keywords : +licence : +homepage : +package_uuid : +valid_from : +valid_until : +forced_install_on : +signer : +signer_fingerprint: +signature : +signature_date : +signed_attributes : \ No newline at end of file diff --git a/kg-disable-access-microphone-wapt/setup.py b/kg-disable-access-microphone-wapt/setup.py index 46c9460..3482ba9 100644 --- a/kg-disable-access-microphone-wapt/setup.py +++ b/kg-disable-access-microphone-wapt/setup.py @@ -7,29 +7,15 @@ def install(): print('installing %s' % control.asrequirement()) registry_set(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone','Value','Deny') + def uninstall(): print('uninstalling %s' % control.asrequirement()) registry_set(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone','Value','Allow') -def session_setup(): - print('Session setup for %s' % control.asrequirement()) - # put here what to do when package is configured inside a user session - # implicit context variables are WAPT, control, user, params - -def update_package(): - print('Update package content from upstream binary sources') - # put here what to do to update package content with newer installers. - # launched with command wapt-get update-package-sources - # implicit context variables are WAPT, basedir, control, user, params, run - # if attributes in control are changed, they should be explicitly saved to package file with control.save_control_to_wapt() def audit(): print('Auditing %s' % control.asrequirement()) if registry_readstring(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone','Value').lower() == 'deny': return 'OK' else: - return 'Error' - -if __name__ == '__main__': - update_package() - + return 'Error' \ No newline at end of file