From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A2DAD1381F3 for ; Fri, 27 Sep 2013 13:27:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1CC0DE0F1D; Fri, 27 Sep 2013 13:27:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 36930E0EF1 for ; Fri, 27 Sep 2013 13:27:30 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E5ADB33EE3E for ; Fri, 27 Sep 2013 13:27:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 65CACE5461 for ; Fri, 27 Sep 2013 13:27:27 +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: <1380288202.52331cf5eba1a993b5e16387692eabaacbd40441.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/init.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 52331cf5eba1a993b5e16387692eabaacbd40441 X-VCS-Branch: master Date: Fri, 27 Sep 2013 13:27:27 +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: 1a00ea7e-0b70-4f84-8470-dbc17b72f9f8 X-Archives-Hash: 5e1dbb04f9c5be55d5a118324b85bf02 commit: 52331cf5eba1a993b5e16387692eabaacbd40441 Author: Dominick Grift gmail com> AuthorDate: Tue Sep 24 13:40:19 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Sep 27 13:23:22 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=52331cf5 init: create init_use_inherited_script_ptys() for tmpreaper (Debian) Signed-off-by: Dominick Grift gmail.com> --- policy/modules/system/init.if | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index fc23b5f..06780d5 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -1491,6 +1491,27 @@ interface(`init_use_script_ptys',` ######################################## ## +## Read and write inherited init script ptys. +## +## +## +## Domain allowed access. +## +## +# +interface(`init_use_inherited_script_ptys',` + gen_require(` + type initrc_devpts_t; + ') + + term_list_ptys($1) + allow $1 initrc_devpts_t:chr_file { getattr read write ioctl }; + + init_use_fds($1) +') + +######################################## +## ## Do not audit attempts to read and ## write the init script pty. ##