[PATCH 1/9] kdbus: return EBADSLT on replies without slot

2015-08-06 Thread David Herrmann
If you send a reply without an active reply slot, we used to return EPERM. However, this makes it impossible to distinguish this case from a real permission-denied error (eg., LSM). Hence, make sure we return a unique error-code if the reply-slot is missing. With this patch, you get EBADSLT

[PATCH 1/9] kdbus: return EBADSLT on replies without slot

2015-08-06 Thread David Herrmann
If you send a reply without an active reply slot, we used to return EPERM. However, this makes it impossible to distinguish this case from a real permission-denied error (eg., LSM). Hence, make sure we return a unique error-code if the reply-slot is missing. With this patch, you get EBADSLT