From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem Bityutskiy Subject: Re: [PATCH] Syscalls: reboot: Add options to the reboot syscall to remount filesystems ro Date: Fri, 04 Mar 2011 08:55:23 +0200 Message-ID: <1299221723.2735.6.camel@localhost> References: <1299137483-10975-1-git-send-email-ksumrall@android.com> <4D6FDDB1.3060209@teksavvy.com> Reply-To: dedekind1@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Mark Lord , Ken Sumrall , linux-kernel@vger.kernel.org, Alexander Viro , Christoph Hellwig , Andrew Morton , Jan Kara , Jens Axboe , Matthew Wilcox , Eric Paris , Dave Young , Jiri Slaby , James Morris , linux-fsdevel@vger.kernel.org To: Linus Torvalds Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, 2011-03-03 at 15:36 -0800, Linus Torvalds wrote: > But you're certainly right that it takes less code to open > /proc/sysrq-trigger and writing a single byte to it than it does to d= o > the straightforward "let's just do the normal mount thing". /proc/sysrq-trigger is sometimes simply disabled for "security reasons"= =2E I'm not sure about Android, but some systems I know do disable it. So I think /proc/mounts is a cleaner approach. --=20 Best Regards, Artem Bityutskiy (=D0=90=D1=80=D1=82=D1=91=D0=BC =D0=91=D0=B8=D1=82=D1=8E= =D1=86=D0=BA=D0=B8=D0=B9)