From: "Van Maren, Kevin" <kevin.vanmaren@unisys.com>
To: linux-ia64@vger.kernel.org
Subject: RE: a nice way to reboot :-)
Date: Thu, 24 Jul 2003 13:53:27 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105905505204446@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105887789030732@msgid-missing>
I think we've beaten this to death: yes, it is an annoying bug, and
deserves to be fixed.
Just to clarify: I think you want to use tar with --exclude=/proc or -l;
tar doesn't have an -xdev option (that is for find, used with cpio).
I've also used --exclude-from=/nodump where /nodump lists the
directories to skip: /tmp, /proc, /dev, etc. I actually started
doing that because my IA64 Linux system rebooted when using tar to
backup (several filesystems at once) to tape :-(
Also note that those are GNU tar extension, and are not available
on SysV (but then, I've never seen a SVR4 machine reboot reading /proc).
Andreas, I don't think your analogy is even close: tar is documented
create an archive; shutdown is documented to reboot the system:
what Bruno was saying is that running tar (even on /proc) is no more
expected to reboot the system than doing an "ls" on /proc.
The UnitedLinux man page for tar makes no indication that root can
reboot the system with it... Even worse, this behavior does not
occur on other Linux/BSD systems, so people don't have a "reasonable
expectation" for it to kill the system, especially when "properly"
invoked. (Now, trying to extract an old /proc from a tarfile is
different -- I'll believe that attempting to replace /proc could
reasonably be expected to cause problems, but not reading /proc).
Kevin
-----Original Message-----
From: Andreas Schwab [mailto:schwab@suse.de]
Sent: Thursday, July 24, 2003 6:52 AM
To: Bruno Cornec
Cc: Matthew Wilcox; ia64-list; giovanni_pala@hp.com
Subject: Re: a nice way to reboot :-)
Bruno Cornec <Bruno.Cornec@hp.com> writes:
|> I just wonder if this could be used as a DOS from outside the system. In
|> which case, it would be a Bad Thing (tm :-)
|>
|> > root can crash
|> > the system any way they want.
|>
|> Yes, that's true. But it just more surprising when you think you just
|> pass a normal command ;-)
If you are already root then shutdown -h is just as effective.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2003-07-24 13:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-22 12:32 a nice way to reboot :-) Bruno Cornec
2003-07-22 13:05 ` Grant Grundler
2003-07-22 13:31 ` Bruno Cornec
2003-07-22 14:33 ` Bjorn Helgaas
2003-07-22 15:44 ` digiovanni, lucio
2003-07-23 3:50 ` Matthew Wilcox
2003-07-24 12:30 ` Bruno Cornec
2003-07-24 12:52 ` Andreas Schwab
2003-07-24 12:55 ` Matthew Wilcox
2003-07-24 13:53 ` Van Maren, Kevin [this message]
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=marc-linux-ia64-105905505204446@msgid-missing \
--to=kevin.vanmaren@unisys.com \
--cc=linux-ia64@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.