EpocTime: Use proper errors on setting time failure

Depends on the time config setting, setting property of EpochTime
interface may fail, e.g. not allowed, or systemd prevents the time
setting.

It was using InsufficientPermission to indicate not allowed error, but
it is not ideal.

Use proper errors, e.g. NotAllowed for this interface, so it reports
error correctly.

Note that phosphor-logging now supports inherits of errors without meta.
So NotAllowed is defined in Common without meta, and inherited in
Time with extra meta.

Change-Id: I3e660905d6bcb94680303a030eb7b1402e2f0075
Signed-off-by: Lei YU <mine260309@gmail.com>
5 files changed