mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Juergen Pabel <jpabel@akkaya.de>
To: Eric Lammerts <eric@lammerts.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Masking kernel commandline parameters (2.6.7)
Date: Sun, 8 Aug 2004 14:30:49 +0200	[thread overview]
Message-ID: <200408081430.59840.jpabel@akkaya.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0408072238570.22657@vivaldi.madbase.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> That would make that ugly kernel patch pointless, wouldn't it? Then
> why bother with it?

Also, what aspects of it do you consider ugly? -I didn't see any better way of 
implementing this feature. No, I don't like the fact that I am mangling the 
command_line and saved_command_line arrays directly, but I wanted to reuse as 
many constructs of the kernel as possible - and that means doing just that. 

The only other aspect I see that isn't real nice is the re-setting of the 
quotation mark, which was replaced with a \0 by the parse_args function - 
this requires access to a negative array index... Also note that I placed 
special emphasis on not providing opportunity for buffer overflows or other 
boundary issues.

Please elaborate on your thoughts, if there is a better way of implementing 
this, I'll surely adapt my work.

jp

ps: in case you're referring to the feature itself, what would be a more 
sensible way of passing sensitive data to the kernel? -I didn't see any other 
way.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBFhz5z6J7R+QJGuwRAqZDAJ46UglAXcpeuX/NjZSz5LSTVvhXqQCfbyBx
5tbm+DsRfhZudqWEPXHWIPA=
=Tv5d
-----END PGP SIGNATURE-----

  parent reply	other threads:[~2004-08-08 12:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-08  2:12 Juergen Pabel
2004-08-08  2:44 ` Eric Lammerts
2004-08-08 11:21   ` Juergen Pabel
2004-08-08 12:30   ` Juergen Pabel [this message]
2004-08-08 16:14     ` Eric Lammerts
2004-08-10  0:12       ` Juergen Pabel
2004-08-08 20:44 ` Andrew Morton
2004-08-10  0:12   ` Juergen Pabel

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=200408081430.59840.jpabel@akkaya.de \
    --to=jpabel@akkaya.de \
    --cc=eric@lammerts.org \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®