From patchwork Fri Nov 4 08:59:37 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: 9412117 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 5F3DD601C2 for ; Fri, 4 Nov 2016 09:00:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 460B728DC9 for ; Fri, 4 Nov 2016 09:00:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3ABBC2B063; Fri, 4 Nov 2016 09:00:21 +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 188E128DC9 for ; Fri, 4 Nov 2016 09:00:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754044AbcKDJAT (ORCPT ); Fri, 4 Nov 2016 05:00:19 -0400 Received: from edna.lautre.net ([80.67.160.88]:42754 "EHLO edna.lautre.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753833AbcKDJAS (ORCPT ); Fri, 4 Nov 2016 05:00:18 -0400 Received: from localhost (localhost [127.0.0.1]) by edna.lautre.net (Postfix) with ESMTP id 3895510926F; Fri, 4 Nov 2016 10:00:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nonadev.net; s=alternc; t=1478250010; bh=7E1HDtTe81TnUS8tL8S7v0GDy+WAtGBfUB1bq9O9sA4=; h=From:To:Cc:Subject:Date; b=S8uSaYrl2TL8ZHOhit0XO35lu/VB2g7KaoravNuB6CPcUmLm6QeksoQJabDwK9xm5 5GcvFC4Jmvaqb5Ev0/Fi1GduL0DtUFXCPlEdbexPnN7bG2bmfG602EEdRiWupW8MrE jZUCOKszgjgEiVfmqJolTgBa9q7D7+R5PPDkyhjI= 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 svilzGNs81Ta; Fri, 4 Nov 2016 10:00:01 +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 236C7101110; Fri, 4 Nov 2016 09:59:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nonadev.net; s=alternc; t=1478250001; bh=7E1HDtTe81TnUS8tL8S7v0GDy+WAtGBfUB1bq9O9sA4=; h=From:To:Cc:Subject:Date; b=U2Ljm0xoJjnbLk02F1Hsd+VGtWeU1B+gURzs481cRPv/GUhE5Ca5ipoLUy/gfAIWS Whnvkb7uSsELKaryRrzNJ3hPlWuRPthFUwH9dqeggMVGWtc9URU65aG3DbIEEoRtj3 DTKKii0zedHgYgDmM+r1EuH+FeglSRf8p/mNV7jw= 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 v2] Smack: improves the documentation Date: Fri, 4 Nov 2016 09:59:37 +0100 Message-Id: <1478249977-4022-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 Signed-off-by: José Bollo --- Documentation/security/Smack.txt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Documentation/security/Smack.txt b/Documentation/security/Smack.txt index 945cc63..dccdb34 100644 --- a/Documentation/security/Smack.txt +++ b/Documentation/security/Smack.txt @@ -405,16 +405,17 @@ 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 "^" + 2. Any access requested on an object labeled "@" is permitted. + 3. Any access requested on an object labeled "*" is permitted. + 4. Any access requested by a task on an object with the same + label is permitted. + 5. A read, execute or lock access requested on an object labeled "_" is permitted. - 3. A read or execute access requested on an object labeled "_" + 6. A read, execute or lock 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 + 7. Any access requested that is explicitly defined in the loaded rule set is permitted. - 7. Any other access is denied. + 8. Any other access is denied. Smack Access Rules