Problem
My application is receiving unexpected 32 byte messages on a message queue with id 50 whenever passwd(C) or lp(C) are run.
Cause
This is caused by passwd(C) and lp(C) using dlvr_audit(ADM) to send auditing information to the audit subsystem.
dlvr_audit(ADM) uses a message queue to send this information. It uses the message id specified in the file:
/tcb/files/audit/audit_dmninfoOn a system that has never had auditing enabled, this contains a message id of 50, thus causing the above problem.
Solution
This can be avoided by removing:/tcb/files/audit/audit_dmninfoNote that if auditing is enabled on a system, and then disabled,
the same problem will arise (on a queue with a different id) as
the file will have been re-created. As before, it can be avoided
by removing the file. See also
msgget(S), msgctl(S), msgop(S), dlvr_audit(ADM)