From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0C8E013832E for ; Sun, 31 Jul 2016 10:40:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3732B21C038; Sun, 31 Jul 2016 10:40:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A127B21C038 for ; Sun, 31 Jul 2016 10:40:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AB063340C35 for ; Sun, 31 Jul 2016 10:40:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6D6E9241A for ; Sun, 31 Jul 2016 10:40:49 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1469961614.9fc280113ec3479814af5db91f21340f054e7aa4.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/kernel/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/terminal.if policy/modules/kernel/terminal.te X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 9fc280113ec3479814af5db91f21340f054e7aa4 X-VCS-Branch: master Date: Sun, 31 Jul 2016 10:40:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9615700f-dc79-4cd9-ac8d-c152945e0eed X-Archives-Hash: 3018095ac2d70fa7b60ac26874d2cb0b commit: 9fc280113ec3479814af5db91f21340f054e7aa4 Author: Chris PeBenito ieee org> AuthorDate: Sat Jul 30 20:25:42 2016 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Jul 31 10:40:14 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=9fc28011 Get attributes of generic ptys, from Russell Coker. policy/modules/kernel/terminal.if | 17 +++++++++++++++++ policy/modules/kernel/terminal.te | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/policy/modules/kernel/terminal.if b/policy/modules/kernel/terminal.if index 2e6a376..ed52733 100644 --- a/policy/modules/kernel/terminal.if +++ b/policy/modules/kernel/terminal.if @@ -538,6 +538,23 @@ interface(`term_relabel_pty_dirs',` ######################################## ## +## Get the attributes of generic pty devices. +## +## +## +## Domain to allow +## +## +# +interface(`term_getattr_generic_ptys',` + gen_require(` + type devpts_t; + ') + + allow $1 devpts_t:chr_file getattr; +') +######################################## +## ## Do not audit attempts to get the attributes ## of generic pty devices. ## diff --git a/policy/modules/kernel/terminal.te b/policy/modules/kernel/terminal.te index 01e1516..d25f4d2 100644 --- a/policy/modules/kernel/terminal.te +++ b/policy/modules/kernel/terminal.te @@ -1,4 +1,4 @@ -policy_module(terminal, 1.14.0) +policy_module(terminal, 1.14.1) ######################################## #