From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Library to do a 'luksOpen' programatically
Date: Wed, 7 Apr 2010 13:01:26 +0200 [thread overview]
Message-ID: <20100407110126.GA28219@tansi.org> (raw)
In-Reply-To: <1270634743.2807.37.camel@desa-compendia-tux>
On Wed, Apr 07, 2010 at 12:05:43PM +0200, Miguel ?ngel Garc?a Roig wrote:
> El mi??, 07-04-2010 a las 11:54 +0200, Milan Broz escribi??:
> > On 04/07/2010 11:12 AM, Miguel ??ngel Garc??a Roig wrote:
> > > I'm trying to do a :
> > >
> > > # cryptsetup luksOpen /dev/hda2 root
> > >
> > > using a library call or similar. I am not able to call cryptsetup
> > > directly due to security reasons.
> >
> > Which security reasons?
>
> If i make a exec() calling the cryptsetup binary, if a user
> connected to the machine can gain access to root account, he/she
> could see the command, no ?
Indeed. As he/she can see a full memory dump, access the kernel
space, get the crypto-keys, etc. This is not a problem of using
the command. It is a problem of a user getting root access.
I think your security analysis is flawed.
> I haven't physical control to the machine, that's the main problem.
Why is that a problem?
> I have only access to the server for installation, and then i have to
> send it to my client.
Still no reason to not use cryptsetup. The only reason I see
for using the library is convenience or integration, but
security-wise the library is not better or worse than the
stand-alone executable.
Arno
--
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name
GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans
If it's in the news, don't worry about it. The very definition of
"news" is "something that hardly ever happens." -- Bruce Schneier
prev parent reply other threads:[~2010-04-07 10:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-07 9:12 [dm-crypt] Library to do a 'luksOpen' programatically Miguel Ángel García Roig
2010-04-07 9:54 ` Milan Broz
2010-04-07 10:05 ` Miguel Ángel García Roig
2010-04-07 10:17 ` Milan Broz
2010-04-07 11:01 ` Arno Wagner [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=20100407110126.GA28219@tansi.org \
--to=arno@wagner.name \
--cc=dm-crypt@saout.de \
/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.