Only certain actions are supported when you create device policy rules for DVD/CD devices for managed Mac clients.
macOS
X = Supported
Action SES SEP
Read only
Read & Write X X
Read & Execute
Read, Write & Execute X X
Block Mounting X
Block X
SEP how-to article: Allowing or blocking devices on client computers
SES how-to article: Blocking or allowing an external device