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 26F6C1387B1 for ; Fri, 6 Dec 2013 17:33:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9BD86E0B20; Fri, 6 Dec 2013 17:33:18 +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 14B9AE0B20 for ; Fri, 6 Dec 2013 17:33:18 +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 25E0933F412 for ; Fri, 6 Dec 2013 17:33:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id D1EF8D0898 for ; Fri, 6 Dec 2013 17:33:15 +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: <1386351011.023c81f826342c88f21aa5da3d6143365730b319.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/services/, policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/services/ssh.te policy/modules/system/setrans.te X-VCS-Directories: policy/modules/services/ policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 023c81f826342c88f21aa5da3d6143365730b319 X-VCS-Branch: master Date: Fri, 6 Dec 2013 17:33:15 +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: 06c35c6a-0e96-4609-b63f-d754a1303bd6 X-Archives-Hash: f2a017cc0c6cf1256accb3c4b7914969 commit: 023c81f826342c88f21aa5da3d6143365730b319 Author: Dominick Grift gmail com> AuthorDate: Sat Nov 9 09:45:13 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Dec 6 17:30:11 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=023c81f8 sshd/setrans: make respective init scripts create pid dirs with proper contexts Signed-off-by: Dominick Grift gmail.com> --- policy/modules/services/ssh.te | 4 ++++ policy/modules/system/setrans.te | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/policy/modules/services/ssh.te b/policy/modules/services/ssh.te index cc877c7..d7559d8 100644 --- a/policy/modules/services/ssh.te +++ b/policy/modules/services/ssh.te @@ -33,6 +33,10 @@ corecmd_executable_file(sshd_exec_t) ssh_server_template(sshd) init_daemon_domain(sshd_t, sshd_exec_t) +ifdef(`distro_debian',` + init_daemon_run_dir(sshd_var_run_t, "sshd") +') + type sshd_key_t; files_type(sshd_key_t) diff --git a/policy/modules/system/setrans.te b/policy/modules/system/setrans.te index 8e1e27d..83e355c 100644 --- a/policy/modules/system/setrans.te +++ b/policy/modules/system/setrans.te @@ -20,6 +20,10 @@ type setrans_var_run_t; files_pid_file(setrans_var_run_t) mls_trusted_object(setrans_var_run_t) +ifdef(`distro_debian',` + init_daemon_run_dir(setrans_var_run_t, "setrans") +') + ifdef(`enable_mcs',` init_ranged_daemon_domain(setrans_t, setrans_exec_t, s0 - mcs_systemhigh) ')