Hi,
I am trying to create a system extension and with the help of that I need to block certain file types(pdf etc.) to get attached in Mail application while composing email.
For this, I have created endpoint client and subscribed
However I can see that file types are blocked(because its sending as 0 bytes file size) but at the same time file is getting attached in Mail application and I can send email with the file attached but once I received the email and trying to open the attachment, Its not able to open the file. It says “The file “SamplePdf.pdf” could not be opened because it is empty.”
Need your help to know whether I am following correct steps to block those file types in Mail application or there is any other way to achieve the desired functionality or its bug in Mail application as it’s not working with Endpoint security API's verdict.
Your early help will be appreciated.
Thanks & Regards,
Mohmad Vasim
I am trying to create a system extension and with the help of that I need to block certain file types(pdf etc.) to get attached in Mail application while composing email.
For this, I have created endpoint client and subscribed
Code Block ES_EVENT_TYPE_AUTH_OPEN
event and in handler, I am checking the certain file types and trying to block those files in attaching into Mail application by providing the verdict using Code Block es_respond_flags_result
.However I can see that file types are blocked(because its sending as 0 bytes file size) but at the same time file is getting attached in Mail application and I can send email with the file attached but once I received the email and trying to open the attachment, Its not able to open the file. It says “The file “SamplePdf.pdf” could not be opened because it is empty.”
Need your help to know whether I am following correct steps to block those file types in Mail application or there is any other way to achieve the desired functionality or its bug in Mail application as it’s not working with Endpoint security API's verdict.
Your early help will be appreciated.
Thanks & Regards,
Mohmad Vasim