bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10498: New patch for rm. Jesús Hernández Gormaz.


From: Eric Blake
Subject: bug#10498: New patch for rm. Jesús Hernández Gormaz.
Date: Fri, 13 Jan 2012 21:04:07 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0

On 01/13/2012 07:35 PM, Jesús Hernández Gormaz wrote:
> 
> Tabi included some screenshots of rm with my changes in operation,

Next time, please be careful with what you post.  You forced the mail
server to send 600k of screenshots to every subscriber of this list,
which adds up to many megabytes of traffic, when you could have just as
easily done a text capture of the contents of the windows that you were
trying to display, resulting in only 3 or 4k of traffic per subscriber.

Also, you attached DIFF as a binary file; but it is customary on this
list to send patches with MIME type text/plain so that they can be read
inline, instead of forcing readers to save off the file and open it in
an editor.

> both
> running
>   rm-fr - no-preserve-root / script_of_deception.sh running manually and in
> both
>   cases preventing the removal of the operating system without explicit user
>   confirmation.

Thanks for taking the time to write a patch, but adding this behavior to
rm would violate POSIX.  The Unix philosophy is to keep the tools
powerful, even if that means they can do dangerous things when misused,
rather than adding bloat to cripple the tools.  Meanwhile, I think that
tools like SELinux can provide the protection you are worried about, at
a much better level (SELinux is enforced by the kernel, rather than
having to add hacks to each tool in the set of shell scripting tools).

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]