From patchwork Thu Nov 3 11:26:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Jos=C3=A9_Bollo?= X-Patchwork-Id: 9410733 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 51CFE60585 for ; Thu, 3 Nov 2016 11:27:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 348392A9E0 for ; Thu, 3 Nov 2016 11:27:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 279692A9E5; Thu, 3 Nov 2016 11:27:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58AF92A9E0 for ; Thu, 3 Nov 2016 11:27:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756946AbcKCL1V (ORCPT ); Thu, 3 Nov 2016 07:27:21 -0400 Received: from edna.lautre.net ([80.67.160.88]:47599 "EHLO edna.lautre.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756677AbcKCL1V (ORCPT ); Thu, 3 Nov 2016 07:27:21 -0400 Received: from localhost (localhost [127.0.0.1]) by edna.lautre.net (Postfix) with ESMTP id A7701109014; Thu, 3 Nov 2016 12:27:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nonadev.net; s=alternc; t=1478172436; bh=UBdWFzKoetOCIVEz0ICwdGrBSfoAF2yuV5QZ/uBdTnI=; h=From:To:Cc:Subject:Date; b=gfQ1I9i7vczW+ugU9x9UT95ySQrWWckSek8fPJWp9R0c/2vnMJBgMdmJDe2s1/Sma Iku0lqfxNActbL3zVUXyWavtCN5+ldEgCXDC3ZrNrbwM7Bh/83q6VEI606jGodrsm1 nRXXoh5sdjCJtWpSaCeCD61UcP1qUtYvb368fztQ= X-Virus-Scanned: Debian amavisd-new at edna.lautre.net Received: from edna.lautre.net ([127.0.0.1]) by localhost (edna.admin.lautre.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UE1QzzYJ5wH9; Thu, 3 Nov 2016 12:27:10 +0100 (CET) Received: from d-jobol.iot.bzh (por56-1-78-229-206-229.fbx.proxad.net [78.229.206.229]) by edna.lautre.net (Postfix) with ESMTPA id 9E8591089CD; Thu, 3 Nov 2016 12:27:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nonadev.net; s=alternc; t=1478172430; bh=UBdWFzKoetOCIVEz0ICwdGrBSfoAF2yuV5QZ/uBdTnI=; h=From:To:Cc:Subject:Date; b=sbJ1x+xC0LnKp4+oyjvUQkWz7sh+9dNjqkkCUXNwEnk1MVsbrANfBTUjMpNaJ3pbq lUISOaZryoakl2Jt1O0Ck/0dOTKH2iTtiwGjK5tCcAs7ojq3GyJvOq9s0ptdCH+fZi b32BB2pb2pC4I8Ea7KEhZxLD9ebvdLKk9YQm6sYs= From: jobol@nonadev.net To: linux-security-module@vger.kernel.org, casey@schaufler-ca.com Cc: =?UTF-8?q?Jos=C3=A9=20Bollo?= , =?UTF-8?q?Jos=C3=A9=20Bollo?= Subject: [PATCH] Smack: improves the documentation Date: Thu, 3 Nov 2016 12:26:46 +0100 Message-Id: <1478172406-7574-1-git-send-email-jobol@nonadev.net> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP From: José Bollo Update the documentation to reflect the processing made in function 'smk_access' of smack_access.c Change-Id: I60e11cb8233efe6c9be3aeedd8402d8f8ed9823b Signed-off-by: José Bollo --- Documentation/security/Smack.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Documentation/security/Smack.txt b/Documentation/security/Smack.txt index 945cc63..564def1 100644 --- a/Documentation/security/Smack.txt +++ b/Documentation/security/Smack.txt @@ -405,16 +405,18 @@ attached to the object it is trying to access. The rules enforced are, in order: 1. Any access requested by a task labeled "*" is denied. - 2. A read or execute access requested by a task labeled "^" - is permitted. - 3. A read or execute access requested on an object labeled "_" - is permitted. + 2. Any access requested on an object labeled "@" is permitted. + 3. Any access requested by a task labeled "@" is permitted. 4. Any access requested on an object labeled "*" is permitted. 5. Any access requested by a task on an object with the same label is permitted. - 6. Any access requested that is explicitly defined in the loaded + 6. A read, execute or lock access requested on an object labeled "_" + is permitted. + 7. A read, execute or lock access requested by a task labeled "^" + is permitted. + 8. Any access requested that is explicitly defined in the loaded rule set is permitted. - 7. Any other access is denied. + 9. Any other access is denied. Smack Access Rules