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 B0BB259CA4 for ; Fri, 11 Mar 2016 17:20:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2BFF521C014; Fri, 11 Mar 2016 17:20:16 +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 76EED21C00C for ; Fri, 11 Mar 2016 17:20:15 +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 63431340B6A for ; Fri, 11 Mar 2016 17:20:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F19D82322 for ; Fri, 11 Mar 2016 17:20:10 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1457716538.a69295a3c6b598490e971fe458fbcb64d28f8625.perfinion@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/getty.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: a69295a3c6b598490e971fe458fbcb64d28f8625 X-VCS-Branch: master Date: Fri, 11 Mar 2016 17:20:10 +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: 470fdbbc-6901-4351-9114-bc4429e0c9c1 X-Archives-Hash: 33c9890eb67253d3cad393d4ffba9847 commit: a69295a3c6b598490e971fe458fbcb64d28f8625 Author: Luis Ressel aixah de> AuthorDate: Fri Mar 4 02:05:18 2016 +0000 Commit: Jason Zaman gentoo org> CommitDate: Fri Mar 11 17:15:38 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=a69295a3 Allow getty the sys_admin capability It's required for agetty on kernels with a recent grsecurity patchset. (The denial itself has been showing up for quite some time, but it hasn't had any obvious ill effects until recently.) policy/modules/system/getty.te | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/policy/modules/system/getty.te b/policy/modules/system/getty.te index f6743ea..80fec66 100644 --- a/policy/modules/system/getty.te +++ b/policy/modules/system/getty.te @@ -33,7 +33,7 @@ files_pid_file(getty_var_run_t) # # Use capabilities. -allow getty_t self:capability { dac_override chown setgid sys_resource sys_tty_config fowner fsetid }; +allow getty_t self:capability { dac_override chown setgid sys_admin sys_resource sys_tty_config fowner fsetid }; dontaudit getty_t self:capability sys_tty_config; allow getty_t self:process { getpgid setpgid getsession signal_perms }; allow getty_t self:fifo_file rw_fifo_file_perms; @@ -102,11 +102,6 @@ ifdef(`distro_gentoo',` sysnet_dns_name_resolve(getty_t) ') -ifdef(`distro_redhat',` - # getty requires sys_admin #209426 - allow getty_t self:capability sys_admin; -') - ifdef(`distro_ubuntu',` optional_policy(` unconfined_domain(getty_t)