log why the permission is denied
Posted Jan 20, 2013 23:09 UTC (Sun) by
skissane (subscriber, #38675)
In reply to:
log why the permission is denied by epa
Parent article:
Making EPERM friendlier
Returning an error string has a problem - it doesn't internationalize well. I think it is better to define a catalog of error numbers; each error number has attached the number and types of allowed parameters and the English text. Additional files can contain translations to other languages. The kernel then just makes available to user-space a buffer containing the error code and its parameters - it is up to user space to do the message formatting. You'd need to make sure user space is using the same message
catalog as the kernel - but that should not be too hard.
(
Log in to post comments)