Paul Moore 9fade4bf8e NetLabel: return the correct error for translated CIPSOv4 tags
The CIPSOv4 translated tag #1 mapping does not always return the correct error
code if the desired mapping does not exist; instead of returning -EPERM it
returns -ENOSPC indicating that the buffer is not large enough to hold the
translated value.  This was caused by failing to check a specific error
condition.  This patch fixes this so that unknown mappings return
-EPERM which is consistent with the rest of the related CIPSOv4 code.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>
2006-12-02 21:24:11 -08:00
..
2006-12-02 21:22:55 -08:00
2006-12-02 21:24:01 -08:00
2006-12-02 21:23:59 -08:00
2006-12-02 21:24:00 -08:00
2006-12-02 21:23:58 -08:00
2006-11-05 14:11:25 -08:00
2006-12-02 21:22:48 -08:00
2006-12-02 21:21:18 -08:00
2006-08-05 21:15:58 -07:00
2006-12-02 21:21:23 -08:00
2006-12-02 21:24:02 -08:00
2006-12-02 21:21:24 -08:00
2006-07-12 13:58:59 -07:00
2006-12-02 21:21:08 -08:00
2006-11-30 05:24:39 +01:00
2006-09-22 14:53:34 -07:00