client: Only used known fields when comparing policies
In set fscrypt policy, only use known fields when comparing if an
existing policy matches provided policy.
This is needed as struct fscrypt_policy_v2 has a reserved field.
Since this is a value managed in the kernel, it can change without
notice. A field was recently added: log2_data_unit_size. This can
cause issues with comparing existing policies during set policy.
When fields are added, reserved size changes and we can run into
trying to compare the same policies that compare uninitialized
memory regions or regions we do not yet support.
Fixes: https://tracker.ceph.com/issues/73825 Signed-off-by: Christopher Hoffman <choffman@redhat.com>