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 630521392EF for ; Wed, 16 Jul 2014 18:14:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 549D7E0931; Wed, 16 Jul 2014 18:14:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6C08CE0931 for ; Wed, 16 Jul 2014 18:14:42 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9689D3400BE for ; Wed, 16 Jul 2014 18:14:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 2CAAB193E6 for ; Wed, 16 Jul 2014 18:14:40 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1405529891.525d7140b12a8e259f9d919f24148e369e9ff7d1.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/devfs.in X-VCS-Directories: init.d/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 525d7140b12a8e259f9d919f24148e369e9ff7d1 X-VCS-Branch: master Date: Wed, 16 Jul 2014 18:14:40 +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: fb372387-8843-43a5-94c2-bbfec547c872 X-Archives-Hash: 7bfa39bc9794fa125884e1669ce29527 commit: 525d7140b12a8e259f9d919f24148e369e9ff7d1 Author: Jason Zaman perfinion com> AuthorDate: Tue Jul 15 18:27:33 2014 +0000 Commit: William Hubbs gentoo org> CommitDate: Wed Jul 16 16:58:11 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=525d7140 devfs: fix SELinux contexts SELinux contexts in /dev need to be fixed after it is mounted X-Gentoo-Bug: 516956 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956 --- init.d/devfs.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/init.d/devfs.in b/init.d/devfs.in index ae5f03b..196bc57 100644 --- a/init.d/devfs.in +++ b/init.d/devfs.in @@ -92,9 +92,21 @@ seed_dev() done } +restorecon_dev() +{ + if [ -x /sbin/restorecon ]; then + ebegin "Set SELinux labels in /dev" + restorecon -rF /dev >/dev/null 2>&1 + eend $? + fi + + return 0 +} + start() { mount_dev seed_dev + restorecon_dev return 0 }