From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Lord Subject: Re: [PATCH] Syscalls: reboot: Add options to the reboot syscall to remount filesystems ro Date: Thu, 03 Mar 2011 13:28:01 -0500 Message-ID: <4D6FDDB1.3060209@teksavvy.com> References: <1299137483-10975-1-git-send-email-ksumrall@android.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: 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 11-03-03 12:45 PM, Linus Torvalds wrote: > > If you can change whatever user-land process that does the reboot > system call (and clearly you can, since you're adding new commands and > using those), then why the heck don't you just do the remount-ro from > that same user land? Is there a system call for emergency_remount_*() ? I've been writing to /proc/proc/sysrq-trigger to accomplish this.