summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-August/007254.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/2011-August/007254.html')
-rw-r--r--zarb-ml/mageia-dev/2011-August/007254.html181
1 files changed, 181 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2011-August/007254.html b/zarb-ml/mageia-dev/2011-August/007254.html
new file mode 100644
index 000000000..5d7a359a6
--- /dev/null
+++ b/zarb-ml/mageia-dev/2011-August/007254.html
@@ -0,0 +1,181 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-dev] RM replacement
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20RM%20replacement&In-Reply-To=%3C2371759.3jfUkQGYKd%40elmo.okay.com.mx%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="007287.html">
+ <LINK REL="Next" HREF="007232.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] RM replacement</H1>
+ <B>Luis Daniel Lucio Quiroz</B>
+ <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20RM%20replacement&In-Reply-To=%3C2371759.3jfUkQGYKd%40elmo.okay.com.mx%3E"
+ TITLE="[Mageia-dev] RM replacement">dlucio at okay.com.mx
+ </A><BR>
+ <I>Fri Aug 5 18:00:02 CEST 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="007287.html">[Mageia-dev] RM replacement
+</A></li>
+ <LI>Next message: <A HREF="007232.html">[Mageia-dev] RM replacement
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#7254">[ date ]</a>
+ <a href="thread.html#7254">[ thread ]</a>
+ <a href="subject.html#7254">[ subject ]</a>
+ <a href="author.html#7254">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Le Vendredi 05 Ao&#251;t 2011 08:58:12 andre999 a &#233;crit :
+&gt;<i> Colin Guthrie a &#233;crit :
+</I>&gt;<i> &gt; 'Twas brillig, and andre999 at 05/08/11 06:50 did gyre and gimble:
+</I>&gt;<i> &gt;&gt; Luis Daniel Lucio Quiroz a &#233;crit :
+</I>&gt;<i> &gt;&gt;&gt; Le Jeudi 04 Ao&#251;t 2011 18:39:35 andre999 a &#233;crit :
+</I>&gt;<i> &gt;&gt;&gt;&gt; Luis Daniel Lucio Quiroz a &#233;crit :
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; Helo,
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt;
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; As my experience in security field, to make Mageia more
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; available in
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; enterprise environments, and specially those that are security
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; paranoid, i'm planning to port SRM. SRM is a package that does
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; a
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; &quot;secure&quot; file deleting according some security standards (i dont
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; remember right now names, i guess it is something in NIST, but
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; that
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; doesnt matter really).
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt;
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; My question is, what should be the procedure that when you
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; install srm, then the normal rm command could be replaced? i
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; was thinking in pushing an alias but what other alternatives do
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; i have?
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt;
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; please comment,
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt;
+</I>&gt;<i> &gt;&gt;&gt;&gt;&gt; LD
+</I>&gt;<i> &gt;&gt;&gt;&gt;
+</I>&gt;<i> &gt;&gt;&gt;&gt; At first glance that sounds like a reasonable approach EXCEPT -- a
+</I>&gt;<i> &gt;&gt;&gt;&gt; system-level alias would be over-ridden by a user alias.
+</I>&gt;<i> &gt;&gt;&gt;&gt; A user could innocently have an alias such as :
+</I>&gt;<i> &gt;&gt;&gt;&gt; alias rm=&quot;rm -i&quot;
+</I>&gt;<i> &gt;&gt;&gt;&gt;
+</I>&gt;<i> &gt;&gt;&gt;&gt; rm is in /bin
+</I>&gt;<i> &gt;&gt;&gt;&gt; - /bin/rm could be replaced with a link to srm, but I don't know
+</I>&gt;<i> &gt;&gt;&gt;&gt; if that would be considered acceptable.
+</I>&gt;<i> &gt;&gt;&gt;&gt; rm would have to be restored if srm were uninstalled
+</I>&gt;<i> &gt;&gt;&gt;&gt;
+</I>&gt;<i> &gt;&gt;&gt;&gt; - wouldn't a link in /usr/bin/rm be executed first ?
+</I>&gt;<i> &gt;&gt;&gt;&gt; Of course that doesn't cover execution with root privileges.
+</I>&gt;<i> &gt;&gt;&gt;&gt; An alias in root wouldn't necessarily work, as an admin could
+</I>&gt;<i> &gt;&gt;&gt;&gt; inadvertantly
+</I>&gt;<i> &gt;&gt;&gt;&gt; replace it with another. (By loading a new file with some changed
+</I>&gt;<i> &gt;&gt;&gt;&gt; alias,
+</I>&gt;<i> &gt;&gt;&gt;&gt; for example.)
+</I>&gt;<i> &gt;&gt;&gt;&gt; But probably less likely than some user doing the same on their
+</I>&gt;<i> &gt;&gt;&gt;&gt; profile.
+</I>&gt;<i> &gt;&gt;&gt;&gt;
+</I>&gt;<i> &gt;&gt;&gt;&gt; There could be other approaches as well ... :)
+</I>&gt;<i> &gt;&gt;&gt;
+</I>&gt;<i> &gt;&gt;&gt; You are right! :)
+</I>&gt;<i> &gt;&gt;&gt;
+</I>&gt;<i> &gt;&gt;&gt; Well another option could be this:
+</I>&gt;<i> &gt;&gt;&gt;
+</I>&gt;<i> &gt;&gt;&gt; a. we change coreutils to install /bin/rm as /bin/rm.vanilla (or
+</I>&gt;<i> &gt;&gt;&gt; other name,
+</I>&gt;<i> &gt;&gt;&gt; that really doesnt matter),
+</I>&gt;<i> &gt;&gt;&gt; b. i change srm to install itself in /bin instead of /usr/bin
+</I>&gt;<i> &gt;&gt;&gt; c. we place alternatives in both packages to provide /bin/rm, giving
+</I>&gt;<i> &gt;&gt;&gt; preference to srm if installed, otherwise it will use rm of
+</I>&gt;<i> &gt;&gt;&gt; coreutils
+</I>&gt;<i> &gt;&gt;&gt;
+</I>&gt;<i> &gt;&gt;&gt; LD
+</I>&gt;<i> &gt;&gt;
+</I>&gt;<i> &gt;&gt; That would probably be the ideal approach. But it might take a while
+</I>&gt;<i> &gt;&gt; to
+</I>&gt;<i> &gt;&gt; get the changes accepted in coreutils.
+</I>&gt;<i> &gt;&gt;
+</I>&gt;<i> &gt;&gt; Maybe it could be all done from srm ?
+</I>&gt;<i> &gt;&gt; On srm install,
+</I>&gt;<i> &gt;&gt; a. rename /bin/rm to /bin/rm.vanilla (or rm.original or ?)
+</I>&gt;<i> &gt;&gt; b. create /bin/rm link to /bin/srm
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; Definitely not. It's against the commandments: Thou shalt not mess with
+</I>&gt;<i> &gt; another packages' files.
+</I>&gt;<i>
+</I>&gt;<i> ok. I suspected that.
+</I>&gt;<i> It would be nice to have a list of these points for newer packagers.
+</I>&gt;<i>
+</I>&gt;<i> &gt;&gt; On srm uninstall, we ensure that
+</I>&gt;<i> &gt;&gt; a. rm /bin/rm link
+</I>&gt;<i> &gt;&gt; b. rename /bin/rm.vanilla to /bin/rm
+</I>&gt;<i> &gt;&gt;
+</I>&gt;<i> &gt;&gt; Hopefully that could be done reliably, with an uninstall script.
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; No, this is very bad.
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; It's what the alternatives system was designed to do for you, but I
+</I>&gt;<i> &gt; really don't think that something as fundamental as rm should be messed
+</I>&gt;<i> &gt; with in this way as I mentioned in my own email.
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; srm is an add on userspace tool. To implement secure deletes properly,
+</I>&gt;<i> &gt; you would want support at a lower level (i.e in the kernel/fs).
+</I>&gt;<i>
+</I>&gt;<i> makes sense.
+</I>&gt;<i>
+</I>&gt;<i> &gt; I think srm should just be a tool people use explicitly when they want
+</I>&gt;<i> &gt; to.
+</I>&gt;<i> When I think about it, deleting with a pattern instead of just zeros is
+</I>&gt;<i> probably only advantageous when a disk is being disposed of -- in which case
+</I>&gt;<i> srm being a userspace tool is not a disadvantage.
+</I>&gt;<i>
+</I>&gt;<i> &gt; Col
+</I>Good point
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="007287.html">[Mageia-dev] RM replacement
+</A></li>
+ <LI>Next message: <A HREF="007232.html">[Mageia-dev] RM replacement
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#7254">[ date ]</a>
+ <a href="thread.html#7254">[ thread ]</a>
+ <a href="subject.html#7254">[ subject ]</a>
+ <a href="author.html#7254">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
+mailing list</a><br>
+</body></html>