From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753467AbdDDLMA (ORCPT ); Tue, 4 Apr 2017 07:12:00 -0400 Received: from mout.web.de ([212.227.17.11]:63323 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753284AbdDDLKq (ORCPT ); Tue, 4 Apr 2017 07:10:46 -0400 Subject: [PATCH 0/3] SELinux: Fine-tuning for two function implementations From: SF Markus Elfring To: Casey Schaufler , Eric Paris , James Morris , Paul Moore , "Serge E. Hallyn" , Stephen Smalley , William Roberts , linux-security-module@vger.kernel.org, selinux@tycho.nsa.gov Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <5704e656-708a-b611-5611-70fc65dc67e8@users.sourceforge.net> Date: Tue, 4 Apr 2017 13:10:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:FgjeQylAGZvCn/NGzdpgKM4MjlZ3nDKKI1/uEzJY4vczlu9izYo Og72k2nG4AT0wk3l2G1XbIx0+eI/3SrWXsoJmRuVlgwqIjRkPCCF4cX+5zwGdRahuwNyWFk bmaeJxpO+6/jwCviLyA2kwwPcTE5xS2NLThek6m086aCb/nVUJMAY5rr04IWkk4eFWeAfAz 3gQpLkTmot5BXqB+AGK3A== X-UI-Out-Filterresults: notjunk:1;V01:K0:lP8bXXMEdP0=:eml8GustBF1yNcWLRudtdc Ra3WqWuIr+ADUT+tUoDGDlTrYe+S6uyVaFC4L0JJdkqPHGwjlkduyyJuMt2+xzgNn9hZFWRon VxgFXBKEm0yU5KLgXovmLupBsWji00eADpBcBoCp8TnxMzzfkgar7H1+wD5zvdyl6ZpM8+8gW yTX+vXRcIwes5aoIcNmzZaHbVDTTPKBnzRoX9xYj9doPkhNwr2XlanvbOlEAG8XXUuWiDMXc6 Tkr+tzC8Hd2TaMOcTPEGA0US57A0mHDvFVuRwFa7ubKdsdwmC8DtK9SyIjidk44tgynYOqWVQ Vp1SJFQwEnmpzW8PjUGrd1Y0ErkJo3XMFgmRyLU2IqQMl/EZ7LkqfzgoEAHwM0kEc2DT1rx6o OgmvsSEHaooYY2JBnfFPV83iH0Xpo6xJNGcmLszxsgFibzIXMhQjG3CrmR6kOExVb0XqsSMB2 QE74GzKWw41yWlzrm7VkqFyWr4VgB3711k2Xm6Ecid6+n0RPcjfaFHZfHGpbP7agBK+UR5dZo VxdQxgFsh7SMhKJDYzeHnDymOeE+mjkE+3H/TVKi44ElHgG/cOhJwv00W2j7H+LJN0xzh//zz Q6IeMyM0cVo2cDjjBYfVODmyrLWqwdyMTU2sebfbCzd6Im1ceN+m1HRLyRBqpSEgSyiHuCEye m6a+PC8bBVaELNFYOytDZvTcVs2E9VqXwEuhasowwblz5CYUKsyi2XwWN60HN25PRQspjbI0+ PBM2ci0jtTf3f5ZGiEPgIGT0rZgzbYByRgdCHO5jcdeCNC8m2JhFxY88UZ9PPYZCBGCxISkR2 qB45Mi0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Tue, 4 Apr 2017 13:02:03 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Return directly after a failed memory allocation in policydb_index() Return an error code only as a constant in sidtab_insert() Use an other error code for an input validation failure in sidtab_insert() security/selinux/ss/policydb.c | 15 +++++---------- security/selinux/ss/sidtab.c | 27 ++++++++++----------------- 2 files changed, 15 insertions(+), 27 deletions(-) -- 2.12.2 From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Tue, 04 Apr 2017 11:10:07 +0000 Subject: [PATCH 0/3] SELinux: Fine-tuning for two function implementations Message-Id: <5704e656-708a-b611-5611-70fc65dc67e8@users.sourceforge.net> List-Id: References: 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 From: Markus Elfring Date: Tue, 4 Apr 2017 13:02:03 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Return directly after a failed memory allocation in policydb_index() Return an error code only as a constant in sidtab_insert() Use an other error code for an input validation failure in sidtab_insert() security/selinux/ss/policydb.c | 15 +++++---------- security/selinux/ss/sidtab.c | 27 ++++++++++----------------- 2 files changed, 15 insertions(+), 27 deletions(-) -- 2.12.2 From mboxrd@z Thu Jan 1 00:00:00 1970 From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Tue, 4 Apr 2017 13:10:07 +0200 Subject: [PATCH 0/3] SELinux: Fine-tuning for two function implementations In-Reply-To: References: Message-ID: <5704e656-708a-b611-5611-70fc65dc67e8@users.sourceforge.net> To: linux-security-module@vger.kernel.org List-Id: linux-security-module.vger.kernel.org From: Markus Elfring Date: Tue, 4 Apr 2017 13:02:03 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Return directly after a failed memory allocation in policydb_index() Return an error code only as a constant in sidtab_insert() Use an other error code for an input validation failure in sidtab_insert() security/selinux/ss/policydb.c | 15 +++++---------- security/selinux/ss/sidtab.c | 27 ++++++++++----------------- 2 files changed, 15 insertions(+), 27 deletions(-) -- 2.12.2 -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html