From: "Peter Hjalmarsson" <xake@rymdraket.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/genkernel:xake commit in: defaults/
Date: Fri, 25 Mar 2011 09:28:23 +0000 (UTC) [thread overview]
Message-ID: <4f3fb890795bce02be5a8f27f87e66c4796a3541.xake@gentoo> (raw)
commit: 4f3fb890795bce02be5a8f27f87e66c4796a3541
Author: Peter Hjalmarsson <xake <AT> rymdraket <DOT> net>
AuthorDate: Thu Mar 24 12:33:03 2011 +0000
Commit: Peter Hjalmarsson <xake <AT> rymdraket <DOT> net>
CommitDate: Thu Mar 24 12:33:03 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=4f3fb890
Use the same options for proc and sysfs as Gentoo/OpenRC uses
---
defaults/initrd.scripts | 2 +-
defaults/linuxrc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index 4a12b73..b228a77 100755
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -210,7 +210,7 @@ cache_cd_contents() {
}
mount_sysfs() {
- mount -t sysfs /sys /sys >/dev/null 2>&1
+ mount -t sysfs sysfs /sys -o noexec,nosuid,nodev >/dev/null 2>&1
ret=$?
[ ${ret} -eq 0 ] || bad_msg "Failed to mount /sys!"
}
diff --git a/defaults/linuxrc b/defaults/linuxrc
index 64bb150..f5802d7 100755
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -20,7 +20,7 @@ then
exit 1
fi
-mount -t proc proc /proc >/dev/null 2>&1
+mount -t proc -o noexec,nosuid,nodev proc /proc >/dev/null 2>&1
mount -o remount,rw / >/dev/null 2>&1
# Set up symlinks
next reply other threads:[~2011-03-25 9:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-25 9:28 Peter Hjalmarsson [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-03-25 9:28 [gentoo-commits] proj/genkernel:xake commit in: defaults/ Peter Hjalmarsson
2011-03-25 9:28 Peter Hjalmarsson
2011-03-24 11:49 Peter Hjalmarsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4f3fb890795bce02be5a8f27f87e66c4796a3541.xake@gentoo \
--to=xake@rymdraket.net \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox