From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Tue, 16 May 2017 19:57:36 +0000 Subject: Re: selinux: Use an other error code for an input validation failure in sidtab_insert() Message-Id: List-Id: References: <5704e656-708a-b611-5611-70fc65dc67e8@users.sourceforge.net> <38273216-97ad-7955-941a-68485534d39f@users.sourceforge.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-security-module@vger.kernel.org > Have you tested this to determine any impact it may have on the > SELinux userspace? Not yet. > I would agree that EINVAL is probably more appropriate in this case, Thanks that a part of your view seems to fit also to mine. > but changing this return code has very little value I would appreciate if this aspect can clarified a bit more. > and may disrupt userspace if it assumes EINVAL means something else > when the policy load fails. Would you find an other error code better there? Do you care to distinguish an input validation failure in a specific function implementation from other error situations? Regards, Markus