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 BEBFB1386DE for ; Sun, 27 Jan 2013 13:16:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46AB821C024; Sun, 27 Jan 2013 13:16:01 +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 D94B821C024 for ; Sun, 27 Jan 2013 13:16:00 +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 E450633DBB0 for ; Sun, 27 Jan 2013 13:15:59 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 715ECE4073 for ; Sun, 27 Jan 2013 13:15:58 +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: <1359292307.4d46bc79a2a30fe2d4a18edd4deedf9b4e50db98.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/admin/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/admin/usermanage.te X-VCS-Directories: policy/modules/admin/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 4d46bc79a2a30fe2d4a18edd4deedf9b4e50db98 X-VCS-Branch: master Date: Sun, 27 Jan 2013 13:15:58 +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: 64a41042-1a3a-4566-befb-b41925d20ed4 X-Archives-Hash: 94446be282ca5be57926d8ec417d0fdf commit: 4d46bc79a2a30fe2d4a18edd4deedf9b4e50db98 Author: Sven Vermeulen siphos be> AuthorDate: Sun Jan 27 13:11:47 2013 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Sun Jan 27 13:11:47 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=4d46bc79 Fix bug #453724 - chsh fails Running chsh fails (error on writing to /etc/passwd). Analysis of the denials (cfr bug report) tell us that we need to provide chfn_t (the domain in which chsh runs) read rights on the file context definitions, and furthermore also execute rights on nscd_t to flush the cache. --- policy/modules/admin/usermanage.te | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/policy/modules/admin/usermanage.te b/policy/modules/admin/usermanage.te index 1fa974a..ee075d8 100644 --- a/policy/modules/admin/usermanage.te +++ b/policy/modules/admin/usermanage.te @@ -559,3 +559,14 @@ optional_policy(` rpm_use_fds(useradd_t) rpm_rw_pipes(useradd_t) ') + +ifdef(`distro_gentoo',` + ################################ + # + # Local policy for chfn + # + + # Needed to use chsh + seutil_read_file_contexts(chfn_t) + nscd_exec(chfn_t) +')